Skip to content

Consider formatters.exclusions.warn-unused settings and feature #5667

Closed
@ccoVeille

Description

@ccoVeille

Welcome

How did you install golangci-lint?

Brew

Your feature request related to a problem? Please describe

Following #5339

Where an option was added for linters (very useful BTW)

There is a new option linters.exclusions.warn-unused that emits a warning if a linters.exclusions.rules or linters.exclusions.paths is unused.

I would like to get the same things for formatters

Thanks

Describe the solution you'd like

I would like to be able to report unused formatters exclusions via formatters.exclusions.warn-unused that emits a warning if a formatters.exclusions.rules or formatters.exclusions.paths is unused.

Thanks

Describe alternatives you've considered

checking code and PR about this setting

but I found nothing in :

  • the jsonschema reference
  • code
  • issues/PR

Additional context

I'm looking for a having a way to check if exclusion imported from migrate have a need.

Supporter

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions