Skip to content
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

Improve use-assignment-operator rule #175

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

anderseknert
Copy link
Member

Using missing location attribute as an indicator of a "generated" boolean assignment, we're now able to finish the cases where this was previously not possible to discern from the AST alone. The use-assignment-operator rule now additionally flags unification in the following cases:

  • foo = bar
  • foo(x) = bar

Using missing location attribute as an indicator of a
"generated" boolean assignment, we're now able to finish
the cases where this was previously not possible to discern
from the AST alone. The `use-assignment-operator` rule now
additionally flags unification in the following cases:

- `foo = bar`
- `foo(x) = bar`

Signed-off-by: Anders Eknert <anders@styra.com>
@anderseknert anderseknert merged commit 16f1894 into main Jun 27, 2023
1 check passed
@anderseknert anderseknert deleted the use-assignment-op-improvements branch June 27, 2023 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants