improve debug messages for gitlab #167
Annotations
10 errors and 8 warnings
lint:
go/src/github.com/cooperspencer/gickup/local/local.go#L381
Function 'cloneRepository' is too long (80 > 60) (funlen)
|
lint:
go/src/github.com/cooperspencer/gickup/local/local.go#L506
Function 'TempClone' is too long (95 > 60) (funlen)
|
lint:
go/src/github.com/cooperspencer/gickup/local/local.go#L604
Function 'CreateRemotePush' is too long (102 > 60) (funlen)
|
lint:
go/src/github.com/cooperspencer/gickup/local/local.go#L428
elseif: can replace 'else {if cond {}}' with 'else if cond {}' (gocritic)
|
lint:
go/src/github.com/cooperspencer/gickup/local/local.go#L522
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(repo.URL, "http://", fmt.Sprintf("***", repo.Token), -1)` (gocritic)
|
lint:
go/src/github.com/cooperspencer/gickup/local/local.go#L526
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(repo.URL, "https://", fmt.Sprintf("***", repo.Token), -1)` (gocritic)
|
lint:
go/src/github.com/cooperspencer/gickup/local/local.go#L431
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(url, "http://", fmt.Sprintf("ht<...>repo.Origin.Username, repo.Origin.Password), -1)` (gocritic)
|
lint:
go/src/github.com/cooperspencer/gickup/local/local.go#L422
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(url, "http://", fmt.Sprintf("***", repo.Token), -1)` (gocritic)
|
lint:
go/src/github.com/cooperspencer/gickup/local/local.go#L669
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(url, "http://", fmt.Sprintf("***", token), -1)` (gocritic)
|
lint:
go/src/github.com/cooperspencer/gickup/local/local.go#L435
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(url, "https://", fmt.Sprintf("h<...>repo.Origin.Username, repo.Origin.Password), -1)` (gocritic)
|
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-go@v2, actions/checkout@v2, actions/cache@v2, golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v2, actions/checkout@v2, actions/cache@v2, golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint:
go/src/github.com/cooperspencer/gickup/gitea/gitea.go#L305
superfluous-else: if block ends with a continue statement, so drop this else and outdent its block (revive)
|
lint:
go/src/github.com/cooperspencer/gickup/gitea/gitea.go#L451
superfluous-else: if block ends with a continue statement, so drop this else and outdent its block (revive)
|
lint:
go/src/github.com/cooperspencer/gickup/gitlab/gitlab.go#L534
unused-parameter: parameter 'repo' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
go/src/github.com/cooperspencer/gickup/gitlab/gitlab.go#L249
superfluous-else: if block ends with a continue statement, so drop this else and outdent its block (revive)
|