Skip to content

Commit 633e524

Browse files
committed
fix: correct style and diff handling in lint workflow
1 parent 7965b5a commit 633e524

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/reusable-lint-cs-files.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
- name: Collect Style Violations Log
134134
id: violations-log
135135
run: |
136-
output=$(dotnet format style TempProject.csproj --verify-no-changes 2>&1 || echo "Style violation detected")
136+
output=$(dotnet format style TempProject.csproj 2>&1 || echo "Style violation detected")
137137
138138
if [ -z "$output" ]; then
139139
echo "::notice::No issues were found in the code"
@@ -213,6 +213,7 @@ jobs:
213213
run: |
214214
reviewdog -f=sarif \
215215
-name="StyleCop" \
216+
-diff="git diff FETCH_HEAD"
216217
-reporter=${{ inputs.review-reporter }} \
217218
-filter-mode=nofilter \
218219
-level=${{ inputs.review-level }} \

0 commit comments

Comments
 (0)