Skip to content

Commit

Permalink
chore: remove/comment duplicit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
alespour committed Aug 21, 2024
1 parent ac24703 commit d3c7db8
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ linters:
- wsl

linters-settings:
gosec:
excludes:
- G104
lll:
# Max line length, lines longer will be reported.
# '\t' is counted as 1 character by default, and can be changed with the tab-width option.
Expand Down Expand Up @@ -50,16 +53,20 @@ linters-settings:
disabled: true
- name: function-length
disabled: true
# same as lll
- name: line-length-limit
disabled: true
- name: max-public-structs
disabled: true
- name: nested-structs
disabled: true
- name: use-any
# same as errcheck
- name: unhandled-error
disabled: true
- name: unused-receiver
disabled: true
- name: use-any
disabled: true
tenv:
# The option `all` will run against whole test files (`_test.go`) regardless of method/function signatures.
# Otherwise, only methods that take `*testing.T`, `*testing.B`, and `testing.TB` as arguments are checked.
Expand All @@ -85,14 +92,10 @@ issues:
- thelper
- tparallel
- unparam
- path: _test\.go
text: "G104: Errors unhandled" #gosec:G104
- path: _test\.go
text: "G404: Use of weak random number generator" #gosec:G404
- path: _test\.go
text: "Error return value of .((os.)?std(out|err)..*|.*Close.*|.*Flush|.*Disconnect|.*Clear|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not checked"
- path: _test\.go
text: "Unhandled error in call to function (os.(Un)?Setenv)"
text: "G404: Use of weak random number generator" #gosec:G404
- path: _test\.go
text: "unused-parameter:" #revive:unused-parameter
- path: _test\.go
Expand Down

0 comments on commit d3c7db8

Please sign in to comment.