mirror of https://github.com/stashapp/stash.git
73 lines
1.6 KiB
YAML
73 lines
1.6 KiB
YAML
|
# options for analysis running
|
||
|
run:
|
||
|
timeout: 3m
|
||
|
modules-download-mode: vendor
|
||
|
|
||
|
issues:
|
||
|
# Rev at which the linter was introduced. Older bugs are still
|
||
|
# present, but should not be considered validation errors for now
|
||
|
new-from-rev: b14d5c56504dfcea2f5a7b86706b0ecdafd0b68c
|
||
|
|
||
|
linters-settings:
|
||
|
gofmt:
|
||
|
simplify: false
|
||
|
|
||
|
revive:
|
||
|
ignore-generated-header: true
|
||
|
severity: error
|
||
|
confidence: 0.8
|
||
|
error-code: 1
|
||
|
warning-code: 1
|
||
|
rules:
|
||
|
- name: blank-imports
|
||
|
disabled: true
|
||
|
- name: context-as-argument
|
||
|
- name: context-keys-type
|
||
|
- name: dot-imports
|
||
|
- name: error-return
|
||
|
- name: error-strings
|
||
|
- name: error-naming
|
||
|
- name: exported
|
||
|
disabled: true
|
||
|
- name: if-return
|
||
|
disabled: true
|
||
|
- name: increment-decrement
|
||
|
- name: var-naming
|
||
|
disabled: true
|
||
|
- name: var-declaration
|
||
|
- name: package-comments
|
||
|
- name: range
|
||
|
- name: receiver-naming
|
||
|
- name: time-naming
|
||
|
- name: unexported-return
|
||
|
disabled: true
|
||
|
- name: indent-error-flow
|
||
|
disabled: true
|
||
|
- name: errorf
|
||
|
- name: empty-block
|
||
|
disabled: true
|
||
|
- name: superfluous-else
|
||
|
- name: unused-parameter
|
||
|
disabled: true
|
||
|
- name: unreachable-code
|
||
|
- name: redefines-builtin-id
|
||
|
|
||
|
linters:
|
||
|
disable-all: true
|
||
|
enable:
|
||
|
# Default set of linters from golangci-lint
|
||
|
- deadcode
|
||
|
- errcheck
|
||
|
- gosimple
|
||
|
- govet
|
||
|
- ineffassign
|
||
|
- staticcheck
|
||
|
- structcheck
|
||
|
- typecheck
|
||
|
- unused
|
||
|
- varcheck
|
||
|
# Linters added by the stash project
|
||
|
- gofmt
|
||
|
- revive
|
||
|
|