Skip to content

Conversation

@webwarrior-ws
Copy link
Contributor

@webwarrior-ws webwarrior-ws commented Jan 9, 2024

Add DisallowShadowing rule and tests for it.

Fixes #112

Added DisallowShadowing rule (no implementation yet). Added
tests for it.
Implemented DisallowShadowing rule.
Added config and docs for DisallowShadowing rule.
@webwarrior-ws webwarrior-ws force-pushed the disallow-shadowing-squashed branch from d25dadd to f349def Compare January 9, 2024 09:40
@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.

Warning for shadowed declarations

2 participants