mirror of
https://github.com/prometheus-community/bind_exporter.git
synced 2025-04-18 13:04:01 +03:00
Cleanup golangci-lint config (#219)
* Remove obsolete go-kit exception. * Remove codespell CI step in favor of misspell plugin. * Enable sloglint plugin. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
parent
5cc1b62b9c
commit
06daa66fc4
@ -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:
|
||||
@ -36,10 +29,6 @@ workflows:
|
||||
filters:
|
||||
tags:
|
||||
only: /.*/
|
||||
- codespell:
|
||||
filters:
|
||||
tags:
|
||||
only: /.*/
|
||||
- prometheus/publish_master:
|
||||
context: org-context
|
||||
docker_hub_organization: prometheuscommunity
|
||||
|
@ -3,6 +3,7 @@ linters:
|
||||
enable:
|
||||
- misspell
|
||||
- revive
|
||||
- sloglint
|
||||
|
||||
issues:
|
||||
exclude-rules:
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user