121 lines
2.1 KiB
YAML
121 lines
2.1 KiB
YAML
# AngelaMos | 2026
|
|
# .golangci.yml
|
|
|
|
version: "2"
|
|
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- gosec
|
|
- bodyclose
|
|
- nilerr
|
|
- errorlint
|
|
- exhaustive
|
|
- gocritic
|
|
- funlen
|
|
- gocognit
|
|
- dupl
|
|
- goconst
|
|
- ineffassign
|
|
- unused
|
|
- unconvert
|
|
- unparam
|
|
- testifylint
|
|
- fatcontext
|
|
|
|
exclusions:
|
|
rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- funlen
|
|
- dupl
|
|
- goconst
|
|
- gosec
|
|
- path: builtin\.go
|
|
linters:
|
|
- funlen
|
|
- dupl
|
|
- goconst
|
|
paths:
|
|
- vendor
|
|
- testdata
|
|
max-same-issues: 50
|
|
|
|
settings:
|
|
errcheck:
|
|
check-type-assertions: true
|
|
check-blank: true
|
|
|
|
funlen:
|
|
lines: 120
|
|
statements: 60
|
|
|
|
gocognit:
|
|
min-complexity: 25
|
|
|
|
govet:
|
|
enable-all: true
|
|
disable:
|
|
- fieldalignment
|
|
|
|
revive:
|
|
rules:
|
|
- name: blank-imports
|
|
- name: context-as-argument
|
|
- name: context-keys-type
|
|
- name: error-return
|
|
- name: error-strings
|
|
- name: error-naming
|
|
- name: exported
|
|
- name: increment-decrement
|
|
- name: var-declaration
|
|
- name: package-comments
|
|
disabled: true
|
|
- name: range
|
|
- name: receiver-naming
|
|
- name: time-naming
|
|
- name: unexported-return
|
|
- name: indent-error-flow
|
|
- name: errorf
|
|
- name: empty-block
|
|
- name: superfluous-else
|
|
- name: unreachable-code
|
|
|
|
staticcheck:
|
|
checks:
|
|
- all
|
|
|
|
gosec:
|
|
excludes:
|
|
- G104
|
|
- G401
|
|
- G505
|
|
|
|
sloglint:
|
|
no-mixed-args: true
|
|
kv-only: true
|
|
context: all
|
|
|
|
formatters:
|
|
enable:
|
|
- gci
|
|
- gofumpt
|
|
- golines
|
|
settings:
|
|
golines:
|
|
max-len: 80
|
|
reformat-tags: true
|
|
goimports:
|
|
local-prefixes:
|
|
- github.com/CarterPerez-dev/portia
|
|
gci:
|
|
sections:
|
|
- standard
|
|
- default
|
|
- prefix(github.com/CarterPerez-dev)
|
|
custom-order: true
|
|
gofumpt:
|
|
extra-rules: true
|