Files
gh-action-readme/.golangci.yml
Ismo Vuorinen ce02d36929 feat: add comprehensive security scanning and EditorConfig integration
- Add govulncheck, Snyk, and Trivy vulnerability scanning
- Create security workflow for automated scanning on push/PR/schedule
- Add gitleaks for secrets detection and prevention
- Implement EditorConfig linting with eclint and editorconfig-checker
- Update Makefile with security and formatting targets
- Create SECURITY.md with vulnerability reporting guidelines
- Configure Dependabot for automated dependency updates
- Fix all EditorConfig violations across codebase
- Update Go version to 1.23.10 to address stdlib vulnerabilities
- Add tests for internal/helpers package (80% coverage)
- Remove deprecated functions and migrate to error-returning patterns
- Fix YAML indentation in test fixtures to resolve test failures
2025-08-03 20:12:18 +03:00

75 lines
1.2 KiB
YAML

# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json
version: "2"
run:
timeout: 5m
go: "1.23"
linters:
default: standard
enable:
# Additional linters beyond standard
- misspell
- gocyclo
- goconst
- gocritic
- revive
- bodyclose
- contextcheck
- errname
- exhaustive
- forcetypeassert
- nilerr
- nolintlint
- prealloc
- godot
- predeclared
- lll
disable:
# Disable noisy linters
- funlen
- gocognit
- nestif
- cyclop
- wsl
- nlreturn
- wrapcheck
settings:
lll:
line-length: 120
misspell:
locale: US
gocyclo:
min-complexity: 10
goconst:
min-len: 2
min-occurrences: 3
formatters:
enable:
- gofmt
- goimports
- golines
settings:
golines:
max-len: 120
gofmt:
simplify: true
rewrite-rules:
- pattern: 'interface{}'
replacement: 'any'
- pattern: 'a[b:len(a)]'
replacement: 'a[b:]'
goimports:
local-prefixes:
- github.com/ivuorinen/gh-action-readme
issues:
max-issues-per-linter: 50
max-same-issues: 3
fix: true