Skip to content

Commit

Permalink
fix linter config
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Sep 10, 2024
1 parent bb7c763 commit 3c7e19e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ run:
# on Windows.
skip-dirs:

# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: false

# which files to skip: they will be analyzed, but issues from them
# won't be reported. Default value is empty list, but there is
# no need to include all autogenerated files, we confidently recognize
Expand All @@ -56,7 +52,7 @@ run:
# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number
formats: colored-line-number

# print lines of code with issue, default is true
print-issued-lines: true
Expand Down Expand Up @@ -113,7 +109,7 @@ linters-settings:
min-confidence: 0.8
govet:
# report about shadowed variables
check-shadowing: true
shadow: true

# settings per analyzer
settings:
Expand Down Expand Up @@ -153,8 +149,9 @@ linters-settings:
- name: constant-logical-expr
disabled: false
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#context-as-argument
# TODO reenable linter when it is compatible. https://github.com/golangci/golangci-lint/issues/3280
- name: context-as-argument
disabled: false
disabled: true
arguments:
allowTypesBefore: "*testing.T"
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#context-keys-type
Expand Down Expand Up @@ -292,7 +289,7 @@ linters:
enable:
- depguard
- errcheck
- exportloopref
- copyloopvar
- godot
- gofmt
- goimports
Expand Down Expand Up @@ -322,3 +319,4 @@ issues:
- path: \.pb\.go
linters:
- govet
exclude-dirs-use-default: false

0 comments on commit 3c7e19e

Please sign in to comment.