Skip to content

linter: gocritic

linter: gocritic #2861

Re-run triggered August 7, 2023 00:17
Status Failure
Total duration 1m 5s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 3 warnings
lint (ubuntu-latest): caddy.go#L889
string `unknown` has 4 occurrences, make it a constant (goconst)
lint (ubuntu-latest): listeners.go#L185
string `tcp` has 3 occurrences, make it a constant (goconst)
lint (ubuntu-latest): caddyconfig/caddyfile/parse.go#L217
string `import` has 3 occurrences, make it a constant (goconst)
lint (ubuntu-latest): cmd/commandfuncs.go#L428
string `Caddyfile` has 3 occurrences, make it a constant (goconst)
lint (ubuntu-latest): caddyconfig/httpcaddyfile/options.go#L301
string `off` has 7 occurrences, but such constant `off` already exists (goconst)
lint (ubuntu-latest): caddyconfig/httpcaddyfile/builtins.go#L903
string `format` has 3 occurrences, make it a constant (goconst)
lint (ubuntu-latest): caddyconfig/httpcaddyfile/serveroptions.go#L190
string `insecure_off` has 4 occurrences, make it a constant (goconst)
lint (ubuntu-latest): modules/caddyhttp/caddyauth/caddyfile.go#L47
string `bcrypt` has 3 occurrences, make it a constant (goconst)
lint (ubuntu-latest): modules/caddyhttp/reverseproxy/selectionpolicies.go#L515
string `fallback` has 3 occurrences, make it a constant (goconst)
lint (ubuntu-latest): modules/caddyhttp/reverseproxy/caddyfile.go#L1016
string `resolvers` has 3 occurrences, make it a constant (goconst)
lint (windows-latest)
The job was canceled because "ubuntu-latest" failed.
lint (windows-latest)
The operation was canceled.
lint (macos-latest)
The job was canceled because "ubuntu-latest" failed.
lint (macos-latest)
The operation was canceled.
lint (ubuntu-latest)
Unexpected input(s) 'skip-pkg-cache', valid inputs are ['go-version', 'go-version-file', 'check-latest', 'token', 'cache', 'cache-dependency-path', 'architecture']
lint (windows-latest)
Unexpected input(s) 'skip-pkg-cache', valid inputs are ['go-version', 'go-version-file', 'check-latest', 'token', 'cache', 'cache-dependency-path', 'architecture']
lint (macos-latest)
Unexpected input(s) 'skip-pkg-cache', valid inputs are ['go-version', 'go-version-file', 'check-latest', 'token', 'cache', 'cache-dependency-path', 'architecture']