Charlie Marsh
b36d4a15b0
Modify visibility and shuffle around some modules ( #1807 )
2023-01-11 23:57:05 -05:00
Charlie Marsh
59155ce9f6
Rename `checks` and `plugins` to `rules` ( #1739 )
2023-01-09 01:39:51 -05:00
Charlie Marsh
09dc3c7225
Rename `Check` to `Diagnostic` ( #1725 )
...
Along with:
- `CheckKind` -> `DiagnosticKind`
- `CheckCode` -> `RuleCode`
- `CheckCodePrefix` -> `RuleCodePrefix`
2023-01-08 17:46:20 -05:00
Martin Fischer
6a723b50c7
structs 8/9: Run cargo fix and cargo fmt
2023-01-07 15:14:58 -05:00
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
8647bec3cb
Rename checks.rs to registry.rs ( #1566 )
2023-01-02 17:26:51 -05:00
Reiner Gerecke
ba9cf70917
Adjust `test_path` helper to detect round-trip autofix issues ( #1501 )
2022-12-31 08:02:13 -05:00
Maksudul Haque
781bbbc286
[pygrep-hooks] Adds Check for Blanket `# noqa` ( #1440 )
2022-12-29 12:43:16 -05:00
Reiner Gerecke
87465daacc
pygrep-hooks - deprecated use of logging.warn & no blanket type ignore ( #1275 )
2022-12-18 18:04:21 -05:00
Charlie Marsh
e4d36bae57
Replace `ignore_noqa` and `autofix` booleans with enums ( #1264 )
2022-12-16 14:01:25 -05:00
Jonathan Plasse
117fcb6936
Add no-eval rule from pygrep-hooks ( #994 )
2022-12-02 12:59:06 -05:00