-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added config and docs for DisallowShadowing rule.
- Loading branch information
1 parent
6432d8f
commit d25dadd
Showing
4 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: FL0084 | ||
category: how-to | ||
hide_menu: true | ||
--- | ||
|
||
# DisallowShadowing (FL0084) | ||
|
||
*Introduced in `0.23.8`* | ||
|
||
## Cause | ||
|
||
A variable or parameter shadows another one with the same name. | ||
|
||
## Rationale | ||
|
||
Sometimes shadowing can cause confusion. | ||
|
||
## How To Fix | ||
|
||
Rename varaible or parameter in question so it has unique name in its scope. | ||
|
||
## Rule Settings | ||
|
||
{ | ||
"disallowShadowing": { | ||
"enabled": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters