Skip to content

Commit 227f88c

Browse files
committed
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)
1 parent b56c9fa commit 227f88c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ linters:
154154
- goconst
155155
- funlen
156156
- goerr113
157+
- gocognit
157158

158159
# Exclude benchmarks from some linters
159160
- path: _bench_test\.go

0 commit comments

Comments
 (0)