Files
Jonathan Stacks c9eb45f8d9 chore(deps): Use golangci-lint from nixpkgs (#725)
* chore(deps): Use golangci-lint from nixpkgs

This also updates the version of golangci-lint we are using to v2 and removes it from the bootstrapable tools

* chore(deps): Update developer-guide with PR feedback

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

---------

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>
2025-12-10 20:29:39 +00:00

66 lines
1.3 KiB
YAML

version: "2"
linters:
enable:
- gocritic
- govet
- staticcheck
- errcheck
- ineffassign
- unused
- unconvert
- misspell
- revive
settings:
staticcheck:
checks:
- "all"
- "-ST*"
- "-QF*"
revive:
rules:
- name: atomic
- name: blank-imports
- name: comment-spacings
- name: confusing-naming
- name: confusing-results
- name: constant-logical-expr
- name: datarace
- name: defer
- name: duplicated-imports
- name: early-return
- name: empty-block
- name: identical-branches
- name: if-return
- name: indent-error-flow
- name: unconditional-recursion
- name: unhandled-error
arguments:
- fmt.Printf
- name: unnecessary-stmt
- name: unreachable-code
- name: unused-parameter
- name: use-errors-new
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofmt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$