Skip to content

Add an option to globally disable rule #165

Description

@MrQubo

I configured my editor to run statix automatically on every .nix files. But I don't agree with "repeated_keys" warning and I would want to disable it by default.

Currently, this requires creating statix.toml in root directory. But this requires root permission, so might not be available in some setups, and also I don't want to put random files in my root directory.

I think, best approach, would be to search for statix.toml in $XDG_CONFIG_HOME/statix/ and /etc/statix/ (in that order), after failing to find one in that loop.

Alternatively, add an option to pass fallback config via command line argument. Currently it's possible to provide config via --config, but it will take priority over one found in current working directory.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions