Handle empty lists as well as undefined ones
This commit is contained in:
parent
94e68911d7
commit
30597e33ea
6 changed files with 71 additions and 7 deletions
|
|
@ -127,12 +127,15 @@ export async function runInit(
|
|||
return await getCombinedTracerConfig(config);
|
||||
}
|
||||
|
||||
function printPathFiltersWarning(config: configUtils.Config, logger: Logger) {
|
||||
export function printPathFiltersWarning(
|
||||
config: configUtils.Config,
|
||||
logger: Logger,
|
||||
) {
|
||||
// Index include/exclude/filters only work in javascript/python/ruby.
|
||||
// If any other languages are detected/configured then show a warning.
|
||||
if (
|
||||
(config.originalUserInput.paths ||
|
||||
config.originalUserInput["paths-ignore"]) &&
|
||||
(config.originalUserInput.paths?.length ||
|
||||
config.originalUserInput["paths-ignore"]?.length) &&
|
||||
!config.languages.every(isScannedLanguage)
|
||||
) {
|
||||
logger.warning(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue