Fix more documentation issues

This commit is contained in:
Reinier Criel 2025-11-03 10:44:12 -08:00
parent 2accf954ca
commit f7e08bbea8
3 changed files with 2 additions and 13 deletions

View file

@ -21,6 +21,7 @@ const ecosystemSettings = {
ecoSystem: ECOSYSTEM_JS,
};
/** @returns {string} - The current ecosystem setting (ECOSYSTEM_JS or ECOSYSTEM_PY) */
export function getEcoSystem() {
return ecosystemSettings.ecoSystem;
}

View file

@ -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[]}

View file

@ -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",