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

DRAFT: Add DisallowShadowing rule #676

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

webwarrior-ws
Copy link
Contributor

Add DisallowShadowing rule and tests for it.

Added DisallowShadowing rule (no implementation yet). Added
tests for it.
Implemented DisallowShadowing rule.
Added config and docs for DisallowShadowing rule.
@knocte
Copy link
Collaborator

knocte commented Jan 9, 2024

@webwarrior-ws please add a test for shadowing for variables that start with underscore: in this case we don't want the rule to flag them.

In DisallowShadowing rule, ignore variables that start with
underscore (`_`). Added test for this case.
@webwarrior-ws
Copy link
Contributor Author

@webwarrior-ws please add a test for shadowing for variables that start with underscore: in this case we don't want the rule to flag them.

Added new commit with test and changes to the rule code.

@knocte knocte changed the title Add DisallowShadowing rule DRAFT: Add DisallowShadowing rule Jan 10, 2024
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.

2 participants