Skip to content

Changing default severity #537

Open
Open
@rudolfvesely

Description

Thank you for very much @inclyc for this fantastic project!

Is your feature request related to a problem? Please describe.

Recently I noticed issue 525 since I had a similar problem. My Nix code shows a lot of sema-def-not-used which sometimes is an issue and sometimes it is deliberate:

map ({this, should, be, there}:
  "${toString this}:${toString there}")
  [{this = 1; should = 1; be = 1; there = 1;}]

Describe the solution you'd like

It would be handy to add a dictionary with all definitions (keys) and with severity (value) that could be changed by a user.

Describe alternatives you've considered

Warning sema-def-not-used seems to be the only warning that in some cases is wrong and therefore the easiest solution would be to change severity from warning to informational (blue squiggly line). That means forgotten bindings would be easy to locate within the code but wouldn't be too glaring.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestidea-approvedProposed idea is approved by at least 1 maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions