File tree Expand file tree Collapse file tree 8 files changed +38
-405
lines changed Expand file tree Collapse file tree 8 files changed +38
-405
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,11 @@ updates:
4
4
directory : " /"
5
5
schedule :
6
6
interval : " monthly"
7
+ - package-ecosystem : " gomod"
8
+ directory : " /examples/middleware"
9
+ schedule :
10
+ interval : " monthly"
11
+ - package-ecosystem : " gomod"
12
+ directory : " /tutorial/whatsup"
13
+ schedule :
14
+ interval : " monthly"
Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ jobs:
25
25
- name : Checkout repository
26
26
uses : actions/checkout@v3
27
27
- name : install Go
28
- uses : actions/setup-go@v2
28
+ uses : actions/setup-go@v3
29
29
with :
30
- go-version : 1.18 .x
30
+ go-version : 1.20 .x
31
31
- name : Install snmp_exporter/generator dependencies
32
32
run : sudo apt-get update && sudo apt-get -y install libsnmp-dev
33
33
if : github.repository == 'prometheus/snmp_exporter'
34
34
- name : Lint
35
35
36
36
with :
37
37
args : --verbose
38
- version : v1.51.2
38
+ version : v1.53.3
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
---
2
-
3
2
run :
4
3
deadline : 5m
4
+ skip-files :
5
+ # Skip autogenerated files.
6
+ - ^.*\.(pb|y)\.go$
5
7
6
8
output :
7
9
sort-results : true
8
10
9
11
linters :
10
12
enable :
11
- - deadcode
12
13
- depguard
13
14
- durationcheck
14
15
- errorlint
@@ -23,10 +24,8 @@ linters:
23
24
- predeclared
24
25
- revive
25
26
- staticcheck
26
- - structcheck
27
27
- unconvert
28
28
- unused
29
- - varcheck
30
29
- wastedassign
31
30
32
31
issues :
@@ -39,9 +38,29 @@ issues:
39
38
- structcheck
40
39
41
40
linters-settings :
41
+ depguard :
42
+ rules :
43
+ main :
44
+ deny :
45
+ # - pkg: "sync/atomic"
46
+ # desc: "Use go.uber.org/atomic instead of sync/atomic"
47
+ - pkg : " github.com/stretchr/testify/assert"
48
+ desc : " Use github.com/stretchr/testify/require instead of github.com/stretchr/testify/assert"
49
+ - pkg : " github.com/go-kit/kit/log"
50
+ desc : " Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
51
+ - pkg : " io/ioutil"
52
+ desc : " Use corresponding 'os' or 'io' functions instead."
53
+ # - pkg: "regexp"
54
+ # desc: "Use github.com/grafana/regexp instead of regexp"
42
55
errcheck :
43
56
exclude : scripts/errcheck_excludes.txt
44
57
goimports :
45
58
local-prefixes : github.com/prometheus/client_golang
46
59
gofumpt :
47
60
extra-rules : true
61
+ revive :
62
+ rules :
63
+ # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
64
+ - name : unused-parameter
65
+ severity : warning
66
+ disabled : true
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ test-short: deps common-test-short
24
24
VERSIONS := 1.19 1.20 1.21
25
25
generate-go-collector-test-files :
26
26
for GO_VERSION in $( VERSIONS) ; do \
27
- docker run --rm -v $(PWD ) :/workspace -w /workspace golang:$$GO_VERSION go run prometheus/gen_go_collector_metrics_set.go; \
27
+ docker run --rm -v $(PWD ) :/workspace -w /workspace golang:$$ GO_VERSION go run prometheus/gen_go_collector_metrics_set.go; \
28
28
mv -f go_collector_metrics* prometheus; \
29
- done
29
+ done
30
30
31
31
.PHONY : fmt
32
32
fmt : common-format
Original file line number Diff line number Diff line change 1
1
module github.com/jessicalins/instrumentation-practices-examples/middleware
2
2
3
- go 1.17
3
+ go 1.19
4
4
5
5
require github.com/prometheus/client_golang v1.13.1
6
6
Original file line number Diff line number Diff line change 1
1
module github.com/prometheus/client_golang
2
2
3
- go 1.17
3
+ go 1.19
4
4
5
5
require (
6
6
github.com/beorn7/perks v1.0.1
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments