Skip to content

Annotation to turn off false positive SecretsUsedInArgOrEnv #3059

@jonapich

Description

@jonapich

Description

I am getting a SecretsUsedInArgOrEnv warning on non-sensitive data.

The variables are named instance_types_file_key and static_variables_file_key. Since this is a refactor I can't rename them just like that and will have to live with the warning.

It would be great if there was a way to annotate the line to acknowledge the false positive. For instance, some linters let you use # noqa at the minimum to disable these warnings, while some others are more specific e.g. # noqa: ignore[index-error]

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions