Closed SuperSandro2000 closed 2 years ago
i think the preferred behavior would be to not raise the lint if comments are present?
It should probably raise that still since the let in is unused but this is probably not auto fixable or should move the comment outside the let in.
understood, just pushed v0.5.6 for this issue. the behaviour is as follows:
currently there is no way for the user to accept/reject fixes interactively, but ideally, that would be nice for this case.
While debugging a package in nixpkgs I noticed the following oddity: when you format a file which has only comments in the let in, all comments get deleted. Since the comments can be actual code I don't think that is intended.
Before:
after:
statix 0.5.4