Skip to content

Conversation

dfarrell07
Copy link
Contributor

Document that the security tag is disabled by default. Also document
that there are currently no checks in the security tag, so enabling it
will fail.

$ ./gocritic check -v -enable='#security
init checkers: empty checkers set selected
$ echo $?
1

When trying to enable the tag through golangci-lint, this is the error:

ERRO Invalid gocritic settings: gocritic [enabled]tag "security" doesn't
exist

The tag was added in #989.

Signed-off-by: Daniel Farrell dfarrell@redhat.com

@dfarrell07 dfarrell07 changed the title ;rDoc security tag is disabled and fails if enabled Doc security tag is disabled and fails if enabled Feb 1, 2022
Document that the security tag is disabled by default. Also document
that there are currently no checks in the security tag, so enabling it
will fail.

$ ./gocritic check -v -enable='#security
init checkers: empty checkers set selected
$ echo $?
1

When trying to enable the tag through golangci-lint, this is the error:

ERRO Invalid gocritic settings: gocritic [enabled]tag "security" doesn't
exist

The tag was added in go-critic#989.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
@dfarrell07 dfarrell07 changed the title Doc security tag is disabled and fails if enabled README.md: Doc sec tag disabled, fails if enabled Feb 1, 2022
@quasilyte quasilyte merged commit 0ad1a33 into go-critic:master Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants