ci: finally use golangci

This commit is contained in:
Aleksandr Razumov
2019-02-17 23:31:22 +03:00
parent d7d0e9b81c
commit e55d9b2836

View File

@@ -26,30 +26,7 @@ fuzz-test:
fuzz-reset-setters:
rm -f -v -r stun-setters-fuzz.zip fuzz/stun-setters
lint:
@echo "linting on $(PROCS) cores"
@gometalinter \
--enable-all \
-e "_test.go.+(gocyclo|errcheck|dupl)" \
-e "attributes\.go.+credentials,.+,LOW.+\(gas\)" \
-e "Message.+\(aligncheck\)" \
-e "arg .+ for .+ verb %. of wrong type" \
-e "error return value not checked \(fmt.Fprint\(h, k\)\) " \
-e "parameter xorBytes - result 0 \(int\) is never used" \
-e "cmd\/" \
-e "e2e\/.+(gocyclo|errcheck|dupl)" \
-e "internal\/hmac\/hmac_test.+(lll)" \
-e "internal\/hmac\/.+Errors unhandled" \
-e "blocksize always receives 64" \
-e "result 0 \(int\) is never used" \
-e "cyclomatic complexity \d+ of function \(\*Client\)\.handleAgentCallback\(\)" \
-e "Blacklisted import crypto/sha1" \
-e "SA9004" \
--enable="lll" --line-length=100 \
--disable="gochecknoglobals" \
--deadline=300s \
-j $(PROCS) \
./...
@gocritic check ./..
@golangci-lint run
@echo "ok"
escape:
@echo "Not escapes, except autogenerated:"