Skip to content

Commit

Permalink
Merge pull request prometheus#517 from prometheus/superq/golangci
Browse files Browse the repository at this point in the history
Add golangci-lint config
  • Loading branch information
SuperQ committed Oct 18, 2023
2 parents c59927e + 8a72a0c commit 6ff0400
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .golangci.yml
@@ -0,0 +1,18 @@
linters:
enable:
- misspell
- revive

issues:
exclude-rules:
- path: _test.go
linters:
- errcheck

linters-settings:
revive:
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
- name: unused-parameter
severity: warning
disabled: true

0 comments on commit 6ff0400

Please sign in to comment.