Skip to content

Commit

Permalink
ci(lint): add goconst exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Dec 13, 2023
1 parent b2455ec commit 93e53c0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ issues:
linters: [revive, stylecheck]
text: "comment"

- path: 'internal/promcompliance'
- path: "internal/promcompliance"
linters: [revive]
text: "exported:"

- path: 'internal/promcompliance'
- path: "internal/promcompliance"
linters: [gocritic]
text: "ifElseChain:"

Expand All @@ -137,12 +137,6 @@ issues:
linters: [gosec]
text: "G(306|301|204)"

# False positive.
- path: internal/cmp
linters: [gocritic]
source: "return x != x"
text: "dupSubExpr"

# False positive.
- linters: [govet]
source: func.+Seek\(.+int64\).+chunkenc\.ValueType
Expand All @@ -151,3 +145,6 @@ issues:
# Not gonna use const, does not make any sense.
- linters: [goconst]
text: "(Int64|int)"
- path: "internal/logparser"
linters: [goconst]
text: "(trace|span)_?[Ii][Dd]"

0 comments on commit 93e53c0

Please sign in to comment.