Skip to content

Commit

Permalink
fix/lint-action: minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhuie19 committed Nov 17, 2023
1 parent 094dede commit a371de9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Run golangci-lint
run: docker run --rm -v ${{ github.workspace }}:/app -w /app golangci/golangci-lint:v1.54.2 golangci-lint run --max-issues-per-linter 0 --max-same-issues 0 --out-format checkstyle:golangci-lint-results.xml,json:golangci-lint-results.json || true

- name: Check golangci-lint JSON report for errors
- name: Check golangci-lint report for errors
run: |
if jq -e '.Issues | length > 0' golangci-lint-results.json; then
echo "Lint issues found:"
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sonar.projectKey=smartcontractkit_chainlink-common
sonar.sources=.

# Full exclusions from the static analysis
sonar.exclusions=**/mocks/**/*, **/testdata/**/*, **/script/**/*, **/generated/**/*, **/fixtures/**/*, **/docs/**/*, **/tools/**/*, **/*.pb.go, **/*report.xml, **/*.txt, **/*.abi, **/*.bin
sonar.exclusions=**/mocks/**/*, **/testdata/**/*, **/script/**/*, **/generated/**/*, **/fixtures/**/*, **/docs/**/*, **/tools/**/*, **/*.pb.go, **/*results, **/*.txt, **/*.abi, **/*.bin
# Coverage exclusions
sonar.coverage.exclusions=**/*_test.go

Expand Down

0 comments on commit a371de9

Please sign in to comment.