Closed phip1611 closed 1 year ago
Run deadnix with -L
, --no-lambda-pattern-names
Would that work for you?
Side note: because that flag is already needed when deadnixing nixpkgs, it would have been smarter to make it default behavior, with opt-in to checking. Too late now. I don't like breaking changes.
yes, thanks. That helps
Hi,
Suppose the following code snippet (with focus on
makeGenericEnvironment
):The idea is to force users to always provide
testNamePrefix
andisNative
. Apart from that, arbitrary attributes can be passed. InsidemakeGenericEnvironment
, the provided attribute set is merged with some predefined attributes (here,foobar
).However,
deadnix
tells thattestNamePrefix
andisNative
are unused. Well, regarding the AST, they are technically. To satisfy deadnix, I have to addinherit testNamePrefix isNative;
.Is there a solution how deadnix can find out that this is valid?