Skip to content

Commit 1358ad7

Browse files
authored
ci: update codacy-variation-fallback.yml
1 parent 5487dc5 commit 1358ad7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/codacy-variation-fallback.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,17 @@ jobs:
4040
4141
4242
# Extract excluded paths and add the 'codacy.yml' file itself
43-
EXCLUDES=$(yq '.exclude_paths[]' "$FILE_NAME" 2>/dev/null || true)
44-
STATIC_IGNORES=".github/**"$'\n'"$FILE_NAME"
45-
ALL_PATHS="$EXCLUDES"$'\n'"$STATIC_IGNORES"
46-
FORMATTED_LIST="relevant_files:"$'\n'"- \"**\""
47-
43+
FORMATTED_LIST="relevant_files:"$'\n'
44+
FORMATTED_LIST="$FORMATTED_LIST"$'\n'"- \"**\"" # 1. Incluir todo lo visible
45+
FORMATTED_LIST="$FORMATTED_LIST"$'\n'"- \".*/**\"" # 2. Incluir todo lo oculto (ej. .github, .vscode, .codacy.yml)
46+
4847
# Format the list
4948
while IFS= read -r line; do
5049
if [[ -n "$line" ]]; then
51-
FORMATTED_LIST="$FORMATTED_LIST"$'\n'"- \"!${line}\""
52-
fi
50+
# Generamos la negación: - "!ruta"
51+
# Mantenemos las comillas dobles para evitar el error de alias
52+
FORMATTED_LIST="$FORMATTED_LIST"$'\n'"- \"!${line}\""
53+
fi
5354
done <<< "$ALL_PATHS"
5455
5556
# Save the result on a variable

0 commit comments

Comments
 (0)