Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/update linter config #63

Merged
merged 4 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
run:
timeout: 5m
tests: false
skip-files:

issues.skip-files:
- 'internal/config/http_config.go'
- 'internal/config/config.go'

linters:
enable-all: true
disable:
- execinquery
- exportloopref
- godot
- cyclop
- depguard
- dupl
- exhaustivestruct
- exhaustruct
- forbidigo
- forcetypeassert
- gci
- gochecknoglobals
- gochecknoinits
- godox
- goerr113
- err113
- gofumpt
- gomnd
- mnd
Expand Down
2 changes: 1 addition & 1 deletion cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func loadFromEnv(config interface{}) {
configValue := reflect.ValueOf(config).Elem()
configType := configValue.Type()

for i := 0; i < configValue.NumField(); i++ {
for i := range configValue.NumField() {
field := configType.Field(i)
tag := field.Tag.Get("env")

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/NETWAYS/check_elasticsearch

go 1.21
go 1.22

require (
github.com/NETWAYS/go-check v0.6.2
Expand Down