-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: Improve no-loop-func rule description and message (#11046)
The rule does not disallow declaring functions in loops, it disallows making unsafe references inside said functions. The current description is misleading and might lead someone to dismiss the rule as irrelevant/unnecessary, when in fact it's protecting against a subtle but nasty source of bugs.
- Loading branch information
1 parent
608a02c
commit 5cfdc2d
Showing
2 changed files
with
43 additions
and
33 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