Fix golangci-lint v2.5.0 config format (bd-91)
This commit is contained in:
102
.golangci.yml
102
.golangci.yml
@@ -1,4 +1,4 @@
|
|||||||
version: 2
|
version: "2"
|
||||||
|
|
||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
@@ -14,56 +14,52 @@ linters:
|
|||||||
- revive
|
- revive
|
||||||
- unconvert
|
- unconvert
|
||||||
- unparam
|
- unparam
|
||||||
|
settings:
|
||||||
linters-settings:
|
dupl:
|
||||||
dupl:
|
threshold: 100
|
||||||
threshold: 100
|
errcheck:
|
||||||
errcheck:
|
check-type-assertions: true
|
||||||
check-type-assertions: true
|
check-blank: false
|
||||||
check-blank: false
|
exclude-functions:
|
||||||
exclude-functions:
|
- (*database/sql.DB).Close
|
||||||
- (*database/sql.DB).Close
|
- (*database/sql.Rows).Close
|
||||||
- (*database/sql.Rows).Close
|
- (*database/sql.Tx).Rollback
|
||||||
- (*database/sql.Tx).Rollback
|
goconst:
|
||||||
goconst:
|
min-len: 3
|
||||||
min-len: 3
|
min-occurrences: 3
|
||||||
min-occurrences: 3
|
gocyclo:
|
||||||
gocyclo:
|
min-complexity: 15
|
||||||
min-complexity: 15
|
misspell:
|
||||||
misspell:
|
locale: US
|
||||||
locale: US
|
revive:
|
||||||
revive:
|
rules:
|
||||||
|
- name: var-naming
|
||||||
|
- name: exported
|
||||||
|
exclusions:
|
||||||
rules:
|
rules:
|
||||||
- name: var-naming
|
- path: _test\.go
|
||||||
- name: exported
|
linters:
|
||||||
|
- dupl
|
||||||
issues:
|
- errcheck
|
||||||
max-issues-per-linter: 0
|
- goconst
|
||||||
max-same-issues: 0
|
- gocyclo
|
||||||
exclude-rules:
|
- path: (.+)\.go$
|
||||||
- path: _test\.go
|
text: Error return value.*\.Close.*is not checked
|
||||||
linters:
|
- path: (.+)\.go$
|
||||||
- dupl
|
text: Error return value.*\.Rollback.*is not checked
|
||||||
- errcheck
|
- path: (.+)\.go$
|
||||||
- goconst
|
text: Error return value.*\.RemoveAll.*is not checked
|
||||||
- gocyclo
|
- path: (.+)\.go$
|
||||||
- path: (.+)\.go$
|
text: 'unused-parameter: parameter ''cmd'' seems to be unused'
|
||||||
text: Error return value.*\.Close.*is not checked
|
- path: (.+)\.go$
|
||||||
- path: (.+)\.go$
|
text: 'unused-parameter: parameter ''args'' seems to be unused'
|
||||||
text: Error return value.*\.Rollback.*is not checked
|
- path: (.+)\.go$
|
||||||
- path: (.+)\.go$
|
text: 'var-naming: avoid meaningless package names'
|
||||||
text: Error return value.*\.RemoveAll.*is not checked
|
- path: (.+)\.go$
|
||||||
- path: (.+)\.go$
|
text: exported.*SQLiteStorage.*stutters
|
||||||
text: 'unused-parameter: parameter ''cmd'' seems to be unused'
|
- path: (.+)\.go$
|
||||||
- path: (.+)\.go$
|
text: 'G201: SQL string formatting'
|
||||||
text: 'unused-parameter: parameter ''args'' seems to be unused'
|
- path: (.+)\.go$
|
||||||
- path: (.+)\.go$
|
text: G304.*file inclusion via variable
|
||||||
text: 'var-naming: avoid meaningless package names'
|
- path: (.+)\.go$
|
||||||
- path: (.+)\.go$
|
text: 'G301: Expect directory permissions'
|
||||||
text: exported.*SQLiteStorage.*stutters
|
|
||||||
- path: (.+)\.go$
|
|
||||||
text: 'G201: SQL string formatting'
|
|
||||||
- path: (.+)\.go$
|
|
||||||
text: G304.*file inclusion via variable
|
|
||||||
- path: (.+)\.go$
|
|
||||||
text: 'G301: Expect directory permissions'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user