You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Convert newline-separated list into a comma-separated list
51
+
FILES_CSV=$(echo "$FILES" | tr '\n' ',' | sed 's/,$//')
52
+
53
+
echo "Files to analyze: $FILES_CSV"
54
+
echo "FILES=$FILES_CSV" >> $GITHUB_ENV
53
55
54
56
- name: Run Roslyn Analyzers Using `dotnet format`
55
57
continue-on-error: true # Allow warnings but don’t fail the workflow
56
58
run: |
57
-
for file in $FILES; do
58
-
echo "🔍 Running analyzers on $file"
59
-
dotnet format style --verify-no-changes --include "$file" --severity info --no-restore --verbosity diagnostic "workspace.sln" 2>&1 | tee -a lint_warnings.log
60
-
done
59
+
echo "🔍 Running analyzers on multiple files..."
60
+
dotnet format style --verify-no-changes --include "$FILES" --severity info --no-restore --verbosity diagnostic "workspace.sln" 2>&1 | tee -a lint_warnings.log
0 commit comments