Skip to content

goconst: add ignore-strings support #4198

@tarasmadan

Description

@tarasmadan

Your feature request related to a problem? Please describe.

Some string literals may generate false positives. google/syzkaller#4323 is an example.

Describe the solution you'd like.

goconst sinve v1.7.0 supports the ignore-strings regexp.
It allows to opt-out some literals.
This new parameter is not yet supported by golangci-lint.

Describe alternatives you've considered.

  1. To opt-out specific lines by "// nolint: goconst".
  2. To add special literal.

Additional context.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions