mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-22 09:51:01 +00:00
Add linter varcheck (#538)
This commit is contained in:
parent
f2b6a5c9c5
commit
71485a8a3f
2 changed files with 5 additions and 4 deletions
|
@ -18,7 +18,7 @@ linters:
|
|||
- misspell
|
||||
- whitespace
|
||||
- staticcheck
|
||||
|
||||
- varcheck
|
||||
run:
|
||||
timeout: 5m
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue