Skip to content

Commit 30ac023

Browse files
committed
Update golangci.yml
1 parent f8efd1e commit 30ac023

File tree

1 file changed

+21
-31
lines changed

1 file changed

+21
-31
lines changed

.golangci.yml

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,34 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
#
15+
version: "2"
16+
17+
# timeout for analysis
18+
timeout: 5m
1519
linters:
16-
disable-all: true
20+
default: none
1721
enable:
22+
- errcheck
1823
- goconst
19-
- gofmt
20-
- revive
21-
- gosimple
24+
- gocritic
25+
- govet
2226
- ineffassign
2327
- misspell
2428
- staticcheck
2529
- unconvert
2630
- govet
2731
- unused
28-
- errcheck
29-
- typecheck
30-
- gocritic
31-
- gci
3232

33-
run:
34-
35-
# timeout for analysis
36-
timeout: 5m
37-
38-
linters-settings:
39-
gci:
40-
sections:
41-
- standard
42-
- prefix(github.com/v3io/scaler)
43-
- default
44-
- blank
45-
- dot
46-
47-
custom-order: true
48-
49-
issues:
50-
51-
# List of regexps of issue texts to exclude
52-
exclude:
53-
- "comment on"
54-
- "error should be the last"
55-
- "should have comment"
33+
formatters:
34+
enable:
35+
- gci
36+
- gofmt
37+
settings:
38+
gci:
39+
sections:
40+
- standard
41+
- prefix(github.com/v3io/scaler)
42+
- default
43+
- blank
44+
- dot
45+
custom-order: true

0 commit comments

Comments
 (0)