Skip to content

Commit

Permalink
Add golangci-lint for formatting code (apache#21)
Browse files Browse the repository at this point in the history
* Add golangci-lint for formatting code
  • Loading branch information
wolfstudy authored and sijie committed Jul 16, 2019
1 parent 090b251 commit c53f30d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Make sure golangci-lint is installed.
# https://github.com/golangci/golangci-lint#install
# We can execute `golangci-lint run` for code checking.
run:
tests: true
skip-dirs:
- _examples

output:
print-issued-lines: false

linters:
enable-all: true
disable:
- maligned
- megacheck
- lll
- gocyclo
- gochecknoglobals

linters-settings:
govet:
check-shadowing: true
gocyclo:
min-complexity: 10
dupl:
threshold: 100
goconst:
min-len: 8
min-occurrences: 3

0 comments on commit c53f30d

Please sign in to comment.