2022-05-27 23:11:12 +02:00
|
|
|
# Copyright 2022 wanderer <a_mirre at utb dot cz>
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
---
|
|
|
|
run:
|
|
|
|
go: 1.17.10
|
|
|
|
tests: true
|
|
|
|
|
|
|
|
issues:
|
|
|
|
max-issues-per-linter: 0
|
|
|
|
max-same-issues: 0
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- bidichk
|
|
|
|
- bodyclose
|
|
|
|
- dupl
|
|
|
|
- deadcode
|
|
|
|
- decorder
|
|
|
|
- dogsled
|
|
|
|
- exportloopref
|
|
|
|
- forbidigo
|
|
|
|
- gas
|
|
|
|
- gocognit
|
|
|
|
- goconst
|
|
|
|
- gocritic
|
|
|
|
- godot
|
2022-05-29 23:43:56 +02:00
|
|
|
- govet
|
2022-05-27 23:11:12 +02:00
|
|
|
- gofmt
|
|
|
|
- gofumpt
|
|
|
|
- goimports
|
|
|
|
- goprintffuncname
|
|
|
|
- gosec
|
|
|
|
- ineffassign
|
|
|
|
# - ifshort
|
|
|
|
- misspell
|
|
|
|
- prealloc
|
|
|
|
- revive
|
|
|
|
- rowserrcheck
|
|
|
|
- sqlclosecheck
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- varcheck
|
|
|
|
- whitespace
|
|
|
|
- wsl
|
|
|
|
|
|
|
|
linter-settings:
|
|
|
|
gofumpt:
|
|
|
|
extra-rules: true
|
|
|
|
lang-version: "1.18"
|
|
|
|
revive:
|
|
|
|
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: error-return
|
|
|
|
- name: error-strings
|
|
|
|
- name: error-naming
|
|
|
|
- name: exported
|
|
|
|
- name: if-return
|
|
|
|
- name: increment-decrement
|
|
|
|
- name: var-naming
|
|
|
|
- name: var-declaration
|
|
|
|
- name: package-comments
|
|
|
|
- name: range
|
|
|
|
- name: receiver-naming
|
|
|
|
- name: time-naming
|
|
|
|
- name: unexported-return
|
|
|
|
- name: indent-error-flow
|
|
|
|
- name: errorf
|
|
|
|
- name: duplicated-imports
|
|
|
|
- name: modifies-value-receiver
|
|
|
|
...
|