ci: add golangci-lint and fix existing lint failures #1
Annotations
9 errors
lint:
cmd/readmevalidation/readmefiles.go#L69
regexpSimplify: can re-write `^(#{1,})(\s*)` as `^(#+)(\s*)` (gocritic)
|
lint:
cmd/readmevalidation/coderresources.go#L260
import-shadowing: The name 'errors' shadows an import name (revive)
|
lint:
cmd/readmevalidation/coderresources.go#L277
unused-parameter: parameter 'resources' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
cmd/readmevalidation/contributors.go#L223
import-shadowing: The name 'errors' shadows an import name (revive)
|
lint:
cmd/readmevalidation/readmefiles.go#L26
confusing-results: unnamed results of the same type may be confusing, consider using named results (revive)
|
lint:
cmd/readmevalidation/repostructure.go#L37
empty-lines: extra empty line at the end of a block (revive)
|
lint:
cmd/readmevalidation/coderresources.go#L113
S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (staticcheck)
|
lint:
cmd/readmevalidation/readmefiles.go#L172
const validationPhaseReadmeValidation is unused (unused)
|
lint
issues found
|