Skip to content

Commit 0a04738

Browse files
committed
fix: improvements to the linter.
1 parent 6cd5159 commit 0a04738

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/cs-linter.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,11 @@ jobs:
3939
echo "$FILES"
4040
echo "FILES=$FILES" >> $GITHUB_ENV
4141
42-
- name: Run Roslyn Analyzers Using `dotnet format`
42+
- name: Run Roslyn Analyzers Using `dotnet build`
4343
continue-on-error: true # Allow warnings but don’t fail the workflow
4444
run: |
45-
for file in $FILES; do
46-
echo "🔍 Running analyzers on $file"
47-
dotnet format analyze "$file" --severity info 2>&1 | tee -a lint_warnings.log
48-
done
45+
echo "🔍 Running analyzers on detected C# files..."
46+
dotnet build --no-restore -warnaserror -p:AnalysisLevel=latest 2>&1 | tee lint_warnings.log
4947
5048
- name: Print Lint Warnings
5149
run: |

0 commit comments

Comments
 (0)