mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
- 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
56 lines
824 B
YAML
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
|
|
|