Commits
Click on a commit to change the comparison rangetest(linter): make sure all auto-fixing rules have fixer test (#6378)
Testing will now fail If a rule advertises an auto-fix capability but no fixer test cases are added.
This behavior may be bypassed using `intentionally_allow_no_fix_tests`. This should only be used in certain conditions, and we can check that it's not being abused in PR reviews.
```rs
declare_oxc_lint!(
/// Some docs
SomeRule,
correctness,
fix
);
#[test]
fn test() {
use crate::tester::Tester;
let pass = vec![/* ... */];
let fail = vec![/* ... */];
// now fails, since `fix` is reported but no cases are passed to `.expect_fix()`
Tester::new(SomeRule::NAME, pass, fail).test_and_snapshot();
}