Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[repo-updater] push golangcilint.yml #145

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading