-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
) (cherry picked from commit c6a9699) Co-authored-by: Jacob Walls <[email protected]>
- Loading branch information
1 parent
b738d23
commit 08359be
Showing
4 changed files
with
32 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Exclude if/else branches containing terminating functions (e.g. `sys.exit()`) | ||
from `possibly-used-before-assignment` checks. | ||
|
||
Closes #9627 |
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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
used-before-assignment:5:19:5:22::Using variable 'MSG' before assignment:HIGH | ||
used-before-assignment:7:20:7:24::Using variable 'MSG2' before assignment:HIGH | ||
used-before-assignment:10:4:10:9:outer:Using variable 'inner' before assignment:HIGH | ||
used-before-assignment:19:20:19:40:ClassWithProperty:Using variable 'redefine_time_import' before assignment:HIGH | ||
used-before-assignment:23:0:23:9::Using variable 'calculate' before assignment:HIGH | ||
used-before-assignment:31:10:31:14:redefine_time_import:Using variable 'time' before assignment:HIGH | ||
used-before-assignment:45:3:45:7::Using variable 'VAR2' before assignment:INFERENCE | ||
possibly-used-before-assignment:63:3:63:7::Possibly using variable 'VAR4' before assignment:INFERENCE | ||
possibly-used-before-assignment:73:3:73:7::Possibly using variable 'VAR5' before assignment:INFERENCE | ||
used-before-assignment:78:3:78:7::Using variable 'VAR6' before assignment:INFERENCE | ||
used-before-assignment:113:6:113:11::Using variable 'VAR10' before assignment:INFERENCE | ||
possibly-used-before-assignment:119:6:119:11::Possibly using variable 'VAR12' before assignment:CONTROL_FLOW | ||
used-before-assignment:144:10:144:14::Using variable 'SALE' before assignment:INFERENCE | ||
used-before-assignment:176:10:176:18::Using variable 'ALL_DONE' before assignment:INFERENCE | ||
used-before-assignment:187:6:187:24::Using variable 'NOT_ALWAYS_DEFINED' before assignment:INFERENCE | ||
used-before-assignment:6:19:6:22::Using variable 'MSG' before assignment:HIGH | ||
used-before-assignment:8:20:8:24::Using variable 'MSG2' before assignment:HIGH | ||
used-before-assignment:11:4:11:9:outer:Using variable 'inner' before assignment:HIGH | ||
used-before-assignment:20:20:20:40:ClassWithProperty:Using variable 'redefine_time_import' before assignment:HIGH | ||
used-before-assignment:24:0:24:9::Using variable 'calculate' before assignment:HIGH | ||
used-before-assignment:32:10:32:14:redefine_time_import:Using variable 'time' before assignment:HIGH | ||
used-before-assignment:46:3:46:7::Using variable 'VAR2' before assignment:INFERENCE | ||
possibly-used-before-assignment:64:3:64:7::Possibly using variable 'VAR4' before assignment:INFERENCE | ||
possibly-used-before-assignment:74:3:74:7::Possibly using variable 'VAR5' before assignment:INFERENCE | ||
used-before-assignment:79:3:79:7::Using variable 'VAR6' before assignment:INFERENCE | ||
used-before-assignment:114:6:114:11::Using variable 'VAR10' before assignment:INFERENCE | ||
possibly-used-before-assignment:120:6:120:11::Possibly using variable 'VAR12' before assignment:CONTROL_FLOW | ||
used-before-assignment:151:10:151:14::Using variable 'SALE' before assignment:INFERENCE | ||
used-before-assignment:183:10:183:18::Using variable 'ALL_DONE' before assignment:INFERENCE | ||
used-before-assignment:194:6:194:24::Using variable 'NOT_ALWAYS_DEFINED' before assignment:INFERENCE |