mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Fix more documentation issues
This commit is contained in:
parent
2accf954ca
commit
f7e08bbea8
3 changed files with 2 additions and 13 deletions
|
|
@ -19,11 +19,9 @@ import { hasDryRunArg } from "../utils/pipCommands.js";
|
|||
* @property {(args: string[]) => boolean} shouldScan
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {{ ignoreDryRun?: boolean }} [options]
|
||||
*/
|
||||
/**
|
||||
* @param {ScannerOptions} [options]
|
||||
*
|
||||
* @returns {CommandArgumentScanner}
|
||||
*/
|
||||
export function commandArgumentScanner(options = {}) {
|
||||
|
|
@ -36,9 +34,6 @@ export function commandArgumentScanner(options = {}) {
|
|||
return shouldScanDependencies(args, ignoreDryRun);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string[]} args
|
||||
*/
|
||||
/**
|
||||
* @param {string[]} args
|
||||
* @returns {Promise<ScanResult[]> | ScanResult[]}
|
||||
|
|
@ -61,9 +56,6 @@ function shouldScanDependencies(args, ignoreDryRun) {
|
|||
return ignoreDryRun || !hasDryRunArg(args);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string[]} args
|
||||
*/
|
||||
/**
|
||||
* @param {string[]} args
|
||||
* @returns {Promise<ScanResult[]> | ScanResult[]}
|
||||
|
|
@ -72,9 +64,6 @@ function scanDependencies(args) {
|
|||
return checkChangesFromArgs(args);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string[]} args
|
||||
*/
|
||||
/**
|
||||
* @param {string[]} args
|
||||
* @returns {Promise<ScanResult[]> | ScanResult[]}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@ export function parsePackagesFromInstallArgs(args) {
|
|||
function isPipOptionWithParameter(arg) {
|
||||
|
||||
// Check if a pip flag takes a parameter
|
||||
// TODO it would be better to query pip itself for this info
|
||||
const optionsWithParameters = [
|
||||
// Install options
|
||||
"-r",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue