From 71485a8a3f3e4c191f34aa279472afd83200247f Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 26 Nov 2021 00:03:19 +0100 Subject: [PATCH] Add linter varcheck (#538) --- .golangci.yml | 2 +- woodpecker-go/woodpecker/client.go | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index be99f740c..b504a4fec 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -18,7 +18,7 @@ linters: - misspell - whitespace - staticcheck - + - varcheck run: timeout: 5m diff --git a/woodpecker-go/woodpecker/client.go b/woodpecker-go/woodpecker/client.go index 49c2c9ca7..b89f298fb 100644 --- a/woodpecker-go/woodpecker/client.go +++ b/woodpecker-go/woodpecker/client.go @@ -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 {