mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +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
|
- misspell
|
||||||
- whitespace
|
- whitespace
|
||||||
- staticcheck
|
- staticcheck
|
||||||
|
- varcheck
|
||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
pathSelf = "%s/api/user"
|
pathSelf = "%s/api/user"
|
||||||
pathFeed = "%s/api/user/feed"
|
|
||||||
pathRepos = "%s/api/user/repos"
|
pathRepos = "%s/api/user/repos"
|
||||||
pathRepo = "%s/api/repos/%s/%s"
|
pathRepo = "%s/api/repos/%s/%s"
|
||||||
pathRepoMove = "%s/api/repos/%s/%s/move?to=%s"
|
pathRepoMove = "%s/api/repos/%s/%s/move?to=%s"
|
||||||
|
@ -26,7 +25,6 @@ const (
|
||||||
pathApprove = "%s/api/repos/%s/%s/builds/%d/approve"
|
pathApprove = "%s/api/repos/%s/%s/builds/%d/approve"
|
||||||
pathDecline = "%s/api/repos/%s/%s/builds/%d/decline"
|
pathDecline = "%s/api/repos/%s/%s/builds/%d/decline"
|
||||||
pathJob = "%s/api/repos/%s/%s/builds/%d/%d"
|
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"
|
pathLogPurge = "%s/api/repos/%s/%s/logs/%d"
|
||||||
pathRepoSecrets = "%s/api/repos/%s/%s/secrets"
|
pathRepoSecrets = "%s/api/repos/%s/%s/secrets"
|
||||||
pathRepoSecret = "%s/api/repos/%s/%s/secrets/%s"
|
pathRepoSecret = "%s/api/repos/%s/%s/secrets/%s"
|
||||||
|
@ -36,8 +34,11 @@ const (
|
||||||
pathUser = "%s/api/users/%s"
|
pathUser = "%s/api/users/%s"
|
||||||
pathBuildQueue = "%s/api/builds"
|
pathBuildQueue = "%s/api/builds"
|
||||||
pathQueue = "%s/api/queue"
|
pathQueue = "%s/api/queue"
|
||||||
pathVersion = "%s/version"
|
|
||||||
pathLogLevel = "%s/api/log-level"
|
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 {
|
type client struct {
|
||||||
|
|
Loading…
Reference in a new issue