mirror of
https://github.com/gortc/stun.git
synced 2025-09-26 20:41:36 +08:00
ci: finally use golangci
This commit is contained in:
25
Makefile
25
Makefile
@@ -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:"
|
||||
|
Reference in New Issue
Block a user