nix-linter icon indicating copy to clipboard operation
nix-linter copied to clipboard

Consider inline switches to activate/deactivate checks for expressions

Open NobbZ opened this issue 4 years ago • 1 comments

Flakes require that their overlays arguments are named final and prev, despite if they are used or not.

Having them named differently (even _, _final or _prev) makes nix flake check fail.

Even though I already filed NixOS/nix#4416, I think the following proposal could help mitigate the flake issue as well as #41:

Give control over checks to comments in source code. Similar to python linters allow for magic comments, or how elixirs credo does as well and probably a lot of other linters do.

NobbZ avatar Jan 01 '21 22:01 NobbZ

Would be nice, but this currently doesn't parse comments so I don't see a way to do this.

Synthetica9 avatar Apr 20 '21 17:04 Synthetica9