turash/models/.golangci.yml
Damir Mukimov 4a2fda96cd
Initial commit: Repository setup with .gitignore, golangci-lint v2.6.0, and code quality checks
- Initialize git repository
- Add comprehensive .gitignore for Go projects
- Install golangci-lint v2.6.0 (latest v2) globally
- Configure .golangci.yml with appropriate linters and formatters
- Fix all formatting issues (gofmt)
- Fix all errcheck issues (unchecked errors)
- Adjust complexity threshold for validation functions
- All checks passing: build, test, vet, lint
2025-11-01 07:36:22 +01:00

56 lines
824 B
YAML

version: "2"
run:
timeout: 5m
tests: true
skip-dirs:
- bin
- vendor
linters:
enable:
- errcheck
- govet
- ineffassign
- staticcheck
- unused
- misspell
- gocyclo
settings:
errcheck:
check-type-assertions: true
check-blank: true
gocyclo:
min-complexity: 20
govet:
enable:
- shadow
misspell:
locale: US
formatters:
enable:
- gofmt
- goimports
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
- path: _test\.go
linters:
- errcheck
- path: (params|validator)/.*\.go
text: "cyclomatic complexity .* of func .* is high"
linters:
- gocyclo
output:
formats:
text:
path: stdout
print-issued-lines: true