Commit graph

23 commits

Author SHA1 Message Date
Charlie Marsh
7445d00b88
Implement B023 (function uses loop variable) (#907) 2022-11-25 18:29:54 -05:00
Charlie Marsh
965918744b
Replace FNV with rustc-hash (#837) 2022-11-20 15:38:31 -05:00
Jonathan Plasse
e63ea704f0
Adjust U011 start location (#828) 2022-11-20 10:13:29 -05:00
Charlie Marsh
99f7854d8c
Mark nonlocal variables as used in parent scopes (#822) 2022-11-19 19:21:02 -05:00
Charlie Marsh
66ae4db6cd
Ignore globals when checking local variable names (#800) 2022-11-17 17:19:01 -05:00
Charlie Marsh
b4e1563517
Avoid allocations for binding values (#764) 2022-11-16 08:55:35 -05:00
Charlie Marsh
62d4096be3
Move bindings to FNV map (#747) 2022-11-14 21:42:57 -05:00
Harutaka Kawamura
bd3b40688f
Implement B010 (#683) 2022-11-11 10:26:37 -05:00
Charlie Marsh
85b882fc54
Remove CheckLocator abstraction (#627) 2022-11-06 17:42:10 -05:00
Charlie Marsh
1cd82d588b
Categorize functions in pep8-naming (#624) 2022-11-06 15:29:49 -05:00
Harutaka Kawamura
f7780eb720
Implement B008 (#594) 2022-11-05 14:05:04 -04:00
Charlie Marsh
79ca66ace5
Use nightly rustfmt with rustfmt.toml (#536) 2022-11-01 20:34:38 -04:00
Charlie Marsh
edefa5219c
Update RustPython to get main versions of end_location etc. (#445) 2022-10-17 11:52:40 -04:00
Charlie Marsh
aafe7c0c39
Mark aliased submodule imports as used (#374) 2022-10-09 17:01:14 -04:00
Charlie Marsh
b049cced04
Automatically remove unused imports (#298) 2022-10-03 14:08:16 -04:00
Charlie Marsh
83f18193c2
Add an end location to Check (#299) 2022-10-02 12:50:42 -04:00
Charlie Marsh
65d29d9734
Adjust line numbers when reporting rules in f-strings (#244) 2022-09-21 13:42:58 -04:00
Charlie Marsh
d827e6e36a
Implement F405 (#243) 2022-09-21 12:13:40 -04:00
Harutaka Kawamura
71d9b2ac5f
Implement F402 (#221) 2022-09-21 11:12:55 -04:00
Charlie Marsh
afe7a04211
Ignore F841 violations when locals() is in scope (#226) 2022-09-19 20:13:55 -06:00
Charlie Marsh
592c53c8bf
Use binding location when reporting F821 errors (#200) 2022-09-14 22:51:07 -04:00
Charlie Marsh
43e1f20b28
Allow unused assignments in for loops and unpacking (#163) 2022-09-11 21:53:45 -04:00
Charlie Marsh
b536159541
Pull check logic out of check_ast.rs (#135) 2022-09-08 22:46:42 -04:00