Skip to content

Commit d65087a

Browse files
authored
Merge pull request #63 from NETWAYS/fix/update-linter-config
Fix/update linter config
2 parents f22a44e + 886ba4e commit d65087a

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.golangci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
run:
22
timeout: 5m
33
tests: false
4-
skip-files:
4+
5+
issues.skip-files:
56
- 'internal/config/http_config.go'
67
- 'internal/config/config.go'
78

89
linters:
910
enable-all: true
1011
disable:
12+
- execinquery
13+
- exportloopref
14+
- godot
1115
- cyclop
1216
- depguard
1317
- dupl
14-
- exhaustivestruct
1518
- exhaustruct
1619
- forbidigo
1720
- forcetypeassert
1821
- gci
1922
- gochecknoglobals
2023
- gochecknoinits
2124
- godox
22-
- goerr113
25+
- err113
2326
- gofumpt
2427
- gomnd
2528
- mnd

cmd/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func loadFromEnv(config interface{}) {
3838
configValue := reflect.ValueOf(config).Elem()
3939
configType := configValue.Type()
4040

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

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/NETWAYS/check_elasticsearch
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
github.com/NETWAYS/go-check v0.6.2

0 commit comments

Comments
 (0)