Linting fixes.

This commit is contained in:
2019-10-16 23:29:53 +05:00
parent 008908029b
commit 99f305ddff
7 changed files with 41 additions and 5 deletions

26
.golangci.yml Normal file
View File

@@ -0,0 +1,26 @@
run:
deadline: 5m
linters:
enable-all: true
disable:
# Because globals might exist, but according to our codestyle they
# should be lowercased and considered as unexported.
- gochecknoglobals
# While it might be useful it'll create more problems that will solve.
- gocritic
# Complains about main() lengths, which isn't an issue.
- funlen
linters-settings:
lll:
line-length: 420
gocyclo:
min-complexity: 40
issues:
exclude-rules:
# gosec says that there is a "Potential HTTP request made with
# variable URL". Well, he's right, we're composing webhook URL
# based on user's input. We do not need that linting here.
- linters:
- gosec
text: "G107: "