mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-12 02:15:01 +00:00
Ignore unused-parameter on revive/golangci-lint (#23656)
This commit is contained in:
+7
-2
@@ -43,8 +43,6 @@ linters-settings:
|
||||
- github.com/siddontang/go-log/log: 'use "github.com/sirupsen/logrus" instead'
|
||||
- github.com/siddontang/go/log: 'use "github.com/sirupsen/logrus" instead'
|
||||
- go.uber.org/atomic: 'use "sync/atomic" instead'
|
||||
misspell:
|
||||
locale: US
|
||||
gci:
|
||||
sections:
|
||||
- standard # Standard section: captures all standard packages.
|
||||
@@ -52,10 +50,17 @@ linters-settings:
|
||||
- prefix(github.com/gravitational/teleport) # Custom section: groups all imports with the specified Prefix.
|
||||
skip-generated: true # Skip generated files.
|
||||
custom-order: true # Required for "sections" to take effect.
|
||||
misspell:
|
||||
locale: US
|
||||
nolintlint:
|
||||
allow-unused: true # Enabled because of conditional builds / build tags.
|
||||
require-explanation: true
|
||||
require-specific: true
|
||||
revive:
|
||||
rules:
|
||||
- name: unused-parameter
|
||||
disabled: true
|
||||
|
||||
output:
|
||||
uniq-by-line: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user