mirror of
https://github.com/jimeh/go-render.git
synced 2026-02-19 03:16:39 +00:00
Upgrade main development to use Go 1.23, while still running CI against 1.20 and later. Also update golangci-lint to v2.
100 lines
1.6 KiB
YAML
100 lines
1.6 KiB
YAML
---
|
|
version: "2"
|
|
run:
|
|
modules-download-mode: readonly
|
|
allow-parallel-runners: true
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- asciicheck
|
|
- bodyclose
|
|
- durationcheck
|
|
- errcheck
|
|
- errorlint
|
|
- exhaustive
|
|
- funlen
|
|
- gochecknoinits
|
|
- goconst
|
|
- gocritic
|
|
- gocyclo
|
|
- godot
|
|
- goprintffuncname
|
|
- gosec
|
|
- govet
|
|
- importas
|
|
- ineffassign
|
|
- lll
|
|
- misspell
|
|
- nakedret
|
|
- nilerr
|
|
- nlreturn
|
|
- noctx
|
|
- nolintlint
|
|
- prealloc
|
|
- predeclared
|
|
- revive
|
|
- rowserrcheck
|
|
- sqlclosecheck
|
|
- staticcheck
|
|
- tparallel
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- wastedassign
|
|
- whitespace
|
|
settings:
|
|
funlen:
|
|
lines: 100
|
|
statements: 150
|
|
goconst:
|
|
min-occurrences: 5
|
|
gocyclo:
|
|
min-complexity: 20
|
|
govet:
|
|
disable:
|
|
- fieldalignment
|
|
enable-all: true
|
|
lll:
|
|
line-length: 80
|
|
tab-width: 4
|
|
misspell:
|
|
locale: US
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
rules:
|
|
- linters:
|
|
- dupl
|
|
- funlen
|
|
path: _test\.go
|
|
- linters:
|
|
- lll
|
|
source: "^//go:generate "
|
|
- linters:
|
|
- lll
|
|
source: "`json:"
|
|
- linters:
|
|
- lll
|
|
source: "`xml:"
|
|
- linters:
|
|
- lll
|
|
source: "`yaml:"
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gofumpt
|
|
- goimports
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|