Add linter varcheck (#538)

This commit is contained in:
Lukas 2021-11-26 00:03:19 +01:00 committed by GitHub
parent f2b6a5c9c5
commit 71485a8a3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -18,7 +18,7 @@ linters:
- misspell
- whitespace
- staticcheck
- varcheck
run:
timeout: 5m

View file

@ -15,7 +15,6 @@ import (
const (
pathSelf = "%s/api/user"
pathFeed = "%s/api/user/feed"
pathRepos = "%s/api/user/repos"
pathRepo = "%s/api/repos/%s/%s"
pathRepoMove = "%s/api/repos/%s/%s/move?to=%s"
@ -26,7 +25,6 @@ const (
pathApprove = "%s/api/repos/%s/%s/builds/%d/approve"
pathDecline = "%s/api/repos/%s/%s/builds/%d/decline"
pathJob = "%s/api/repos/%s/%s/builds/%d/%d"
pathLog = "%s/api/repos/%s/%s/logs/%d/%d"
pathLogPurge = "%s/api/repos/%s/%s/logs/%d"
pathRepoSecrets = "%s/api/repos/%s/%s/secrets"
pathRepoSecret = "%s/api/repos/%s/%s/secrets/%s"
@ -36,8 +34,11 @@ const (
pathUser = "%s/api/users/%s"
pathBuildQueue = "%s/api/builds"
pathQueue = "%s/api/queue"
pathVersion = "%s/version"
pathLogLevel = "%s/api/log-level"
// TODO: implement endpoints
// pathLog = "%s/api/repos/%s/%s/logs/%d/%d"
// pathFeed = "%s/api/user/feed"
// pathVersion = "%s/version"
)
type client struct {