Skip to content

Instantly share code, notes, and snippets.

@m-bodmer
Created November 14, 2023 16:38
Show Gist options
  • Save m-bodmer/64dd9b6f242438e3238fbc08b301fd43 to your computer and use it in GitHub Desktop.
Save m-bodmer/64dd9b6f242438e3238fbc08b301fd43 to your computer and use it in GitHub Desktop.
golangci config
run:
timeout: 5m
modules-download-mode: readonly
skip-files:
- pkg/gql_types/gql_types.go
linters:
# We'll track the golangci-lint default linters manually
# instead of letting them change without our control.
disable-all: true
enable:
- goimports
- revive
- govet
- staticcheck
- ineffassign
- gosimple
- unused
# - errcheck TODO: enable errcheck
issues:
# Don't ignore some of the issues that golangci-lint considers okay.
# This includes documenting all exported entities.
exclude-use-default: false
# Print all issues reported by all linters.
max-issues-per-linter: 0
max-same-issues: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment