Skip to content

Commit

Permalink
Merge pull request #63 from NETWAYS/fix/update-linter-config
Browse files Browse the repository at this point in the history
Fix/update linter config
  • Loading branch information
martialblog authored Oct 21, 2024
2 parents f22a44e + 886ba4e commit d65087a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
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

0 comments on commit d65087a

Please sign in to comment.