linter: gocritic #2861
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
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']
|