Skip to content

Commit 70db344

Browse files
authored
fix linter in tpg (#3284)
1 parent 4955f49 commit 70db344

File tree

2 files changed

+59
-24
lines changed

2 files changed

+59
-24
lines changed

.golangci.yml

Lines changed: 59 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
run:
22
deadline: 2m30s
33

4-
issues:
5-
max-per-linter: 0
6-
max-same-issues: 0
7-
84
linters:
95
disable-all: true
106
enable:
@@ -24,3 +20,62 @@ linters:
2420
linters-settings:
2521
errcheck:
2622
ignore: github.com/hashicorp/terraform-plugin-sdk/helper/schema:ForceNew|Set,fmt:.*,io:Close,github.com/hashicorp/terraform-provider-google-beta/google-beta:Set
23+
24+
issues:
25+
max-per-linter: 0
26+
max-same-issues: 0
27+
exclude-rules:
28+
- linters:
29+
- gosimple
30+
text: "S1002:"
31+
- linters:
32+
- gosimple
33+
text: "S1007:"
34+
- linters:
35+
- gosimple
36+
text: "S1008:"
37+
- linters:
38+
- gosimple
39+
text: "S1009:"
40+
- linters:
41+
- gosimple
42+
text: "S1019:"
43+
- linters:
44+
- gosimple
45+
text: "S1021:"
46+
- linters:
47+
- gosimple
48+
text: "S1025:"
49+
- linters:
50+
- gosimple
51+
text: "S1034:"
52+
- linters:
53+
- gosimple
54+
text: "S1039:"
55+
- linters:
56+
- stylecheck
57+
text: "ST1000:"
58+
- linters:
59+
- stylecheck
60+
text: "ST1003:"
61+
- linters:
62+
- stylecheck
63+
text: "ST1005:"
64+
- linters:
65+
- stylecheck
66+
text: "ST1017:"
67+
- linters:
68+
- staticcheck
69+
text: "SA1019:"
70+
- linters:
71+
- staticcheck
72+
text: "SA4006:"
73+
- linters:
74+
- staticcheck
75+
text: "SA4010:"
76+
- linters:
77+
- staticcheck
78+
text: "SA6000:"
79+
- linters:
80+
- staticcheck
81+
text: "SA6005:"

staticcheck.conf

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)