mirror of
https://github.com/kjanat/articulate-parser.git
synced 2026-01-16 08:22:09 +01:00
chore(lint): fix golangci-lint issues
- Remove duplicate package comments (godoclint) - Improve code style (gocritic: assignOp, elseif, emptyStringTest) - Extract repeated format strings to constants (goconst) - Fix naming conventions: OriginalUrl -> OriginalURL (revive) - Wrap external errors with context (wrapcheck) - Disable gocognit for test files in .golangci.yml Remaining issues by design: - funlen: getDefaultCSS (CSS content) - revive: interfaces package name (meaningful in context)
This commit is contained in:
@ -154,6 +154,7 @@ linters:
|
|||||||
- goconst
|
- goconst
|
||||||
- funlen
|
- funlen
|
||||||
- goerr113
|
- goerr113
|
||||||
|
- gocognit
|
||||||
|
|
||||||
# Exclude benchmarks from some linters
|
# Exclude benchmarks from some linters
|
||||||
- path: _bench_test\.go
|
- path: _bench_test\.go
|
||||||
|
|||||||
Reference in New Issue
Block a user