Skip to content

Commit

Permalink
Cleanup golangci-lint config (#219)
Browse files Browse the repository at this point in the history
* Remove obsolete go-kit exception.
* Remove codespell CI step in favor of misspell plugin.
* Enable sloglint plugin.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ authored Nov 7, 2024
1 parent 5cc1b62 commit 06daa66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
11 changes: 0 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ jobs:
- run: make
- prometheus/store_artifact:
file: bind_exporter
codespell:
docker:
- image: cimg/python:3.11
steps:
- checkout
- run: pip install codespell
- run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum,*pem" -L uint,packages\',uptodate
workflows:
version: 2
bind_exporter:
Expand All @@ -36,10 +29,6 @@ workflows:
filters:
tags:
only: /.*/
- codespell:
filters:
tags:
only: /.*/
- prometheus/publish_master:
context: org-context
docker_hub_organization: prometheuscommunity
Expand Down
3 changes: 1 addition & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ linters:
enable:
- misspell
- revive
- sloglint

issues:
exclude-rules:
Expand All @@ -15,8 +16,6 @@ linters-settings:
exclude-functions:
# Used in HTTP handlers, any error is handled by the server itself.
- (net/http.ResponseWriter).Write
# Never check for logger errors.
- (github.com/go-kit/log.Logger).Log
revive:
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
Expand Down

0 comments on commit 06daa66

Please sign in to comment.