Skip to content

Commit

Permalink
fix: exclud lint
Browse files Browse the repository at this point in the history
  • Loading branch information
somaz94 committed Jun 24, 2024
1 parent e3b23cb commit a7090bd
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
22 changes: 22 additions & 0 deletions .github/linters/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .golangci.yml
linters:
enable:
- govet
- errcheck
- staticcheck
- unused
- gofmt
- goimports
disable:
- goanalysis_metalinter

issues:
exclude-rules:
- path: "github.com/prometheus/client_golang/api"
text: "no export data for"
linters:
- goanalysis_metalinter

# General exclude patterns can also be defined
exclude:
- "could not load export data: no export data for"
4 changes: 4 additions & 0 deletions .github/linters/.lintconfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# lintconfig.yml
exclude:
- '**/templates/*.txt'
- '**/minio/templates/_helper_*.txt'
6 changes: 1 addition & 5 deletions .github/linters/.shellcheckrc
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
disable=SC1054
disable=SC1072
disable=SC1073
disable=SC1074
disable=SC1083
disable=SC1054,SC1056,SC1072,SC1073,SC1074,SC1083

0 comments on commit a7090bd

Please sign in to comment.