We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7544dbc commit 4e3be55Copy full SHA for 4e3be55
extractors/cds/tools/index-files.sh
@@ -76,12 +76,12 @@ fi
76
# Check if LGTM_INDEX_FILTERS is already set
77
# This typically happens if "paths" or "paths-ignore" are set in the LGTM.yml file
78
if [ -z "${LGTM_INDEX_FILTERS:-}" ]; then
79
+ exclude_filters=""
80
+else
81
# If it is set, we will try to honour the paths-ignore filter
82
# Split by \n and find all the entries that start with exclude, excluding "exclude:**/*" and "exclude:**/*.*"
83
# and then join them back together with \n
84
exclude_filters="\n$(grep '^exclude' "$LGTM_INDEX_FILTERS" | grep -v 'exclude:**/\*\|exclude:**/\*\.\*')"
-else
- exclude_filters=""
85
fi
86
87
# Enable extraction of the cds.json files only
0 commit comments