Fix paths/paths-ignore warning that would appear unconditionally

This commit is contained in:
Henry Mercer
2024-01-11 11:54:24 +00:00
parent 3b54300140
commit 94e68911d7
3 changed files with 5 additions and 5 deletions

View File

@@ -131,8 +131,8 @@ 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?.length !== 0 ||
config.originalUserInput["paths-ignore"]?.length !== 0) &&
(config.originalUserInput.paths ||
config.originalUserInput["paths-ignore"]) &&
!config.languages.every(isScannedLanguage)
) {
logger.warning(