Skip to content

Commit

Permalink
[linter] Exclude G115 - integer overflow
Browse files Browse the repository at this point in the history
When the language has no solution to check the overflow in time of convert, so the linter shouldn't check the overflow.
  • Loading branch information
jbygdell committed Sep 9, 2024
1 parent 70f618e commit 7fa4d08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Run golangci-lint
uses: golangci/[email protected]
with:
args: -E bodyclose,gocritic,gofmt,gosec,govet,nestif,nlreturn,revive,rowserrcheck -e G401,G501,G107 --timeout 5m
args: -E bodyclose,gocritic,gofmt,gosec,govet,nestif,nlreturn,revive,rowserrcheck -e G401,G501,G107,G115 --timeout 5m
working-directory: sda-download

lint_sda:
Expand All @@ -51,5 +51,5 @@ jobs:
- name: Run golangci-lint
uses: golangci/[email protected]
with:
args: -E bodyclose,gocritic,gofmt,gosec,govet,nestif,nlreturn,rowserrcheck --timeout 5m
args: -E bodyclose,gocritic,gofmt,gosec,govet,nestif,nlreturn,rowserrcheck -e G401,G501,G107,G115 --timeout 5m
working-directory: sda

0 comments on commit 7fa4d08

Please sign in to comment.