Skip to content

Commit 3acace6

Browse files
committed
fix: improvements to the linter.
1 parent 2eaf0fc commit 3acace6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/cs-linter.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
name: C# Linter
1+
name: C# Linter for Targeted Directories
22

33
on:
4-
push:
5-
branches:
6-
- feat/cs-linter-action
7-
84
workflow_dispatch: # Allows manual execution via GitHub CLI
95

106
jobs:
@@ -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!"

0 commit comments

Comments
 (0)