Skip to content

Commit

Permalink
Improve the golangci-lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
na-- committed Mar 25, 2019
1 parent 651146b commit 3b1161c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ issues:
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0

# We want to try and improve the comments in the k6 codebase, so individual
# non-golint items from the default exclusion list will gradually be addded
# to the exclude-rules below
exclude-use-default: false

exclude-rules:
# Exclude duplicate code checking in test files (due to common repeats in
# test setup code)
- path: _test\.go
linters:
- dupl


linters-settings:
govet:
Expand All @@ -20,7 +32,7 @@ linters-settings:
maligned:
suggest-new: true
dupl:
threshold: 100
threshold: 150
goconst:
min-len: 5
min-occurrences: 4
Expand Down

0 comments on commit 3b1161c

Please sign in to comment.