-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rule: impossible-not
#603
Comments
Thinking more about this, and it's certainly an aggregate rule as we'll need to collect info from all packages to try and determine the type of refs. It's totally fine to just include simple rules here as that'll catch the most common mistake which is However, I'm also starting to realize that we'll want to consider an architectural improvement with regards to aggregate rules. The data collected for this rule would pretty much be identical to the data we need to determine unresolved-imports or unused-rules. We should look into an option where several rules are allowed to share data from a single aggregation rather than each having to do their own. Now, separation should still be the default, but not the only option. |
See docs in PR (and issue) for further details. Fixes #603 Signed-off-by: Anders Eknert <[email protected]>
See docs in PR (and issue) for further details. Fixes #603 Signed-off-by: Anders Eknert <[email protected]>
See docs in PR (and issue) for further details. Fixes #603 Signed-off-by: Anders Eknert <[email protected]>
This is a mistake I see devs do every now and then — it just never struck me as something we could try and prevent.
We should flag when
not
is used on anything but boolean rules / vars. This might not be possible to determine in all cases based on the AST alone, but for the cases where we can, we should.The text was updated successfully, but these errors were encountered: