mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-03-11 06:59:44 +00:00
- 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
75 lines
1.2 KiB
YAML
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
|