mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-11-05 06:44:11 +00:00
88 lines
1.9 KiB
YAML
88 lines
1.9 KiB
YAML
# Refer to golangci-lint's example config file for more options and information:
|
|
# https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
|
|
|
|
run:
|
|
timeout: 5m
|
|
modules-download-mode: readonly
|
|
skip-dirs:
|
|
- "coverage"
|
|
- ".github"
|
|
|
|
linters:
|
|
enable:
|
|
- errcheck
|
|
- errorlint
|
|
- gci
|
|
- gocritic
|
|
- goconst
|
|
- godot
|
|
- goimports
|
|
- govet
|
|
- gocritic
|
|
- goerr113
|
|
- gofmt
|
|
- gofumpt
|
|
- gosec
|
|
- maintidx
|
|
- makezero
|
|
- misspell
|
|
- nlreturn
|
|
- prealloc
|
|
- predeclared
|
|
- staticcheck
|
|
- tagliatelle
|
|
- whitespace
|
|
- wrapcheck
|
|
- wsl
|
|
disable:
|
|
- structcheck
|
|
- revive
|
|
- nolintlint
|
|
|
|
linters-settings:
|
|
govet:
|
|
check-shadowing: true
|
|
enable-all: true
|
|
disable-all: false
|
|
revive:
|
|
ignore-generated-header: false
|
|
severity: warning
|
|
confidence: 0.8
|
|
errorCode: 1
|
|
warningCode: 1
|
|
rules:
|
|
- name: blank-imports
|
|
- name: context-as-argument
|
|
- name: context-keys-type
|
|
- name: dot-imports
|
|
- name: duplicated-imports
|
|
- name: error-return
|
|
- name: error-strings
|
|
- name: error-naming
|
|
- name: errorf
|
|
- name: exported
|
|
- name: if-return
|
|
- name: increment-decrement
|
|
- name: modifies-value-receiver
|
|
- name: package-comments
|
|
- name: range
|
|
- name: receiver-naming
|
|
- name: time-naming
|
|
- name: unexported-return
|
|
- name: var-declaration
|
|
- name: var-naming
|
|
linters-settings:
|
|
tagliatelle:
|
|
case:
|
|
use-field-name: false
|
|
rules:
|
|
# Any struct tag type can be used.
|
|
# Support string case: `camel`, `pascal`, `kebab`, `snake`, `goCamel`, `goPascal`, `goKebab`, `goSnake`, `upper`, `lower`
|
|
json: goCamel
|
|
yaml: goCamel
|
|
xml: goCamel
|
|
|
|
issues:
|
|
exclude-use-default: false
|
|
max-issues-per-linter: 0
|
|
max-same-issues: 0
|