1
0
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:
Ben Kochie 2024-11-07 09:39:07 +00:00 committed by GitHub
parent 5cc1b62b9c
commit 06daa66fc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 13 deletions

View File

@ -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

View File

@ -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