mirror of https://github.com/matrix-org/go-neb.git
Browse Source
Replace golint with staticcheck
Replace golint with staticcheck
golint has been deprecated and archived. There's no 1:1 match for it, but staticcheck is a checker the golint README recommends and has tons of useful checks. This commit enables all checks, and then disables: * ST1000: Incorrect or missing package comment * ST1005: Incorrectly formatted error string, necessary due to the fact that all our error strings are capitalised, which they should not be * SA1019: Locally in goneb.go because we have to rework how we use the prometheus package there It also fixes a number of other errors surfaced by staticheck.pull/350/head
Daniele Sluijters
4 years ago
16 changed files with 47 additions and 73 deletions
-
4Dockerfile
-
4README.md
-
22api/handlers/auth.go
-
4api/handlers/service.go
-
12clients/bot_client.go
-
2goneb.go
-
2hooks/pre-commit
-
4polling/polling.go
-
3services/giphy/giphy.go
-
4services/github/client/client.go
-
31services/github/github_webhook.go
-
1services/github/webhook/webhook_test.go
-
18services/rssbot/rssbot.go
-
6services/slackapi/message.go
-
1staticcheck.conf
-
2types/actions.go
@ -0,0 +1 @@ |
|||
checks = ["all", "-ST1000", "-ST1005"] |
Write
Preview
Loading…
Cancel
Save
Reference in new issue