File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1- name : C# Linter
1+ name : C# Linter for Targeted Directories
22
33on :
4- push :
5- branches :
6- - feat/cs-linter-action
7-
84 workflow_dispatch : # Allows manual execution via GitHub CLI
95
106jobs :
@@ -33,12 +29,12 @@ jobs:
3329 continue-on-error : true # Allow warnings but don’t fail the workflow
3430 run : |
3531 for file in $FILES; do
36- echo "Analyzing $file"
37- dotnet build --no-restore /warnaserror /p:AnalysisLevel=latest "$file"
32+ echo "🔍 Analyzing $file"
33+ dotnet build --no-restore -p:TreatWarningsAsErrors=false "$file" 2>&1 | tee -a lint_warnings.log
3834 done
3935
4036 - name : Print Lint Warnings
4137 if : env.FILES != ''
4238 run : |
4339 echo "⚠️ Lint warnings detected:"
44- cat lint_warnings.log || echo "No warnings found!"
40+ cat lint_warnings.log || echo "No warnings found!"
You can’t perform that action at this time.
0 commit comments