Skip to content

Commit f74b271

Browse files
authored
Merge pull request #98 from ekristen/chore-golangci
chore: fix golangci-lint config and use best-practices for renovate
2 parents fa76fa3 + d4d37aa commit f74b271

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/renovate.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
4-
"config:recommended"
4+
"config:recommended",
5+
"config:best-practices"
56
]
67
}

.golangci.yaml

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
run:
2+
timeout: 5m
3+
14
linters-settings:
25
dupl:
36
threshold: 100
@@ -21,12 +24,8 @@ linters-settings:
2124
- whyNoLint
2225
gocyclo:
2326
min-complexity: 15
24-
golint:
25-
min-confidence: 0
2627
lll:
2728
line-length: 140
28-
maligned:
29-
suggest-new: true
3029
misspell:
3130
locale: US
3231

@@ -38,7 +37,6 @@ linters:
3837
- bodyclose
3938
- dogsled
4039
- errcheck
41-
- exportloopref
4240
- funlen
4341
- goconst
4442
- gocritic
@@ -69,6 +67,3 @@ issues:
6967
- path: _test\.go
7068
linters:
7169
- funlen
72-
73-
run:
74-
timeout: 2m

0 commit comments

Comments
 (0)