File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -33,27 +33,22 @@ jobs:
3333 run : |
3434 FILE_NAME=".codacy.yml"
3535
36- # --- 1. EXTRACCIÓN Y DEFINICIÓN DE RUTAS ---
37-
38- # 1. Rutas dinámicas (yq)
36+ # 1. Rutas dinámicas
3937 EXCLUDES=$(yq '.exclude_paths[]' "$FILE_NAME" 2>/dev/null || true)
4038
41- # 2. Definimos las rutas estáticas de control (¡USANDO /* * / * PARA MÁXIMA EXCLUSIÓN !)
39+ # 2. Rutas estáticas (¡Usando /* * / * y el nombre correcto del fichero !)
4240 STATIC_IGNORES=".github/**/*"$'\n'"$FILE_NAME"
4341
44- # 3. Concatenamos todas las rutas
42+ # 3. Concatenamos
4543 ALL_PATHS="$EXCLUDES"$'\n'"$STATIC_IGNORES"
4644
4745 if [ ! -f "$FILE_NAME" ]; then
4846 echo "::warning::File $FILE_NAME not found. Basic ignored configuration file will be used."
4947 fi
5048
51- # --- 2. GENERACIÓN DEL FORMATO YAML ---
52-
53- # 4. Inicializamos la lista: Inclusión Global y de Carpetas Ocultas
49+ # 4. Inicializamos la lista de salida: Inclusión solo de lo Visible
5450 FORMATTED_LIST="relevant_files:"$'\n'
55- FORMATTED_LIST="$FORMATTED_LIST"$'\n'"- \"**\""
56- FORMATTED_LIST="$FORMATTED_LIST"$'\n'"- \".*/**\"" # Inclusión de dot directories
51+ FORMATTED_LIST="$FORMATTED_LIST"$'\n'"- \"**\"" # SOLO Incluir archivos y carpetas visibles (src/, build/, etc.)
5752
5853 # 5. Iteramos sobre todas las rutas para añadir las exclusiones
5954 while IFS= read -r line; do
You can’t perform that action at this time.
0 commit comments