Martin Fischer
43db446dfa
structs 6/9: Automatically change CheckKind::* to violations::*
...
The changes in this commit were generated by running:
for f in $(find src -name '*.rs'); do sed -Ei 's/use crate::registry::.*;/\0use crate::violations;/g' $f; done
for f in $(find src -name '*.rs'); do sed -Ei 's/CheckKind::([A-Z])/violations::\1/g' $f; done
git checkout src/registry.rs src/lib.rs src/lib_wasm.rs src/violations.rs
cargo +nightly fmt
2023-01-07 15:14:58 -05:00
Charlie Marsh
3f84746d66
Remove add_check methods ( #1705 )
2023-01-06 21:58:21 -05:00
Charlie Marsh
8647bec3cb
Rename checks.rs to registry.rs ( #1566 )
2023-01-02 17:26:51 -05:00
Charlie Marsh
a86c57a832
Support multi-line noqa directives for 'import from' ( #1479 )
2022-12-30 11:16:50 -05:00
Charlie Marsh
3061a35e7c
Use more precise ranges for class and function checks ( #1476 )
2022-12-30 07:39:20 -05:00
Charlie Marsh
5ad77fbc8d
Move checkers into their own module ( #1268 )
2022-12-16 22:55:47 -05:00
Charlie Marsh
d6e765877e
Enable autofix for __init__ method with missing None-return ( #1265 )
2022-12-16 14:28:56 -05:00
Charlie Marsh
bb67fbb73a
Implement unused argument detection (ARG) ( #1126 )
...
Detect unused arguments
2022-12-07 12:15:41 -05:00
Charlie Marsh
5c26777e4c
Avoid flagging ANN errors in @overload implementations ( #1110 )
2022-12-06 12:46:38 -05:00
Anders Kaseorg
dbb1a6e44b
Remove sloppy match_name_or_attr helper ( #1027 )
2022-12-04 09:12:03 -05:00
Charlie Marsh
7445d00b88
Implement B023 (function uses loop variable) ( #907 )
2022-11-25 18:29:54 -05:00
Anders Kaseorg
6b935121a7
Fix clippy::explicit_deref_methods (pedantic)
...
https://rust-lang.github.io/rust-clippy/master/index.html#explicit_deref_methods
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2022-11-21 23:22:28 -05:00
Anders Kaseorg
7a61edbe46
Fix clippy::default-trait-access (pedantic) ( #867 )
2022-11-21 21:00:38 -05:00
Charlie Marsh
7d8360a1de
Change all &Option<> to Option<&> ( #768 )
2022-11-16 09:40:01 -05:00
Charlie Marsh
ea03a59b72
De-alias Literal checks ( #748 )
2022-11-14 22:53:23 -05:00
Charlie Marsh
8961da7b89
Add support for import alias tracking ( #746 )
2022-11-14 21:29:30 -05:00
Charlie Marsh
f67727b13c
Improve performance of import matching code ( #744 )
2022-11-14 17:14:22 -05:00
Edgar R. M
24aa177912
Implement ANN401 ( #657 )
2022-11-08 09:49:44 -05:00
Charlie Marsh
da39cddccb
Include function and argument names in ANN checks ( #648 )
2022-11-07 15:27:03 -05:00
Charlie Marsh
8fc435bad9
Fix --ignore for ANN101 and ANN102 ( #637 )
2022-11-07 09:03:09 -05:00
Charlie Marsh
dd20b23576
Infer plugins based on per-file-ignores, ignores, etc. ( #632 )
2022-11-06 22:39:06 -05:00
Charlie Marsh
da8ee1df3e
Add TODO in flake8_annotations
2022-11-06 21:24:46 -05:00
Charlie Marsh
99d9aa61bf
Implement flake8-annotations ( #625 )
2022-11-06 17:25:49 -05:00