Skip to content

Commit

Permalink
add golang-ci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Feb 11, 2021
1 parent d8a15c3 commit ecf2337
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
linters:
enable:
- gocyclo
- golint
- misspell
disable:
- structcheck # too many false positives

linters-settings:
gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 20

issues:
# List of regexps of issue texts to exclude, empty list by default.
# But independently from this option we use default exclude patterns,
# it can be disabled by `exclude-use-default: false`. To list all
# excluded by default patterns execute `golangci-lint run --help`
exclude:
- SA5008 # ignore staticcheck for go-flags

0 comments on commit ecf2337

Please sign in to comment.