Skip to content

Commit

Permalink
[repo-updater] push update golangcilint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dops-sre committed Dec 9, 2023
1 parent 4292c3d commit c32c1b9
Showing 1 changed file with 58 additions and 2 deletions.
60 changes: 58 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,61 @@
run:
timeout: 5m

output:
format: github-actions
linters:
enable:
- containedctx
- contextcheck
- errchkjson
- durationcheck
- forcetypeassert
- goconst
- makezero
- sloglint
- wastedassign
- bodyclose
- dogsled
- errorlint
- exhaustive
- exportloopref
- gocognit
- gocritic
- gocyclo
- godot
- gofumpt
- goimports
- gosec
- misspell
- nakedret
- nestif
- nolintlint
- prealloc
- sqlclosecheck
- staticcheck
- stylecheck
- unconvert
- unparam

linters-settings:
errcheckjson:
# report warning when checking error when not required
check-error-free-encoding: true
# encoding of struct with no exported fields
report-no-exported: true
sloglint:
# only allow attribute style formatting instead of kv
attr-only: true
# only allow static messages
static-msg: true
# arguments on separate lines required
args-on-sep-lines: true
nolintlint:
# Enable to ensure that nolint directives are all used. Default is true.
allow-unused: false
# Disable to ensure that nolint directives don't have a leading space. Default is true.
allow-leading-space: false
# Enable to require nolint directives to mention the specific linter being suppressed. Default is false.
require-specific: true
godot:
# List of regexps for excluding particular comment lines from check.
exclude:
- "@Router"

0 comments on commit c32c1b9

Please sign in to comment.