Hunt a rule
Examples: ruff FURB103 · biome noUselessLoneBlockStatements · eslint prefer-const · clang-tidy readability-container-size-emptyruff on demo/repo · biome on demo/repo · eslint on demo/repo · clang-tidy on demo/repo
job
log
Rules with findings all findings
| rule | tool | label | findings | judged real | upstream | example |
|---|---|---|---|---|---|---|
| C413 | ruff | labelled safe | 1 | 1 | related | The rule documentation explicitly states the fix is safe for `list()` cases because it does not change behavior, but th… |
| complexity/noUselessLoneBlockStatements | biome | labelled safe | 1 | 1 | related | The fix removes a standalone block `{}` inside a try block that contains a `let x = 1` declaration. According to the do… |
| complexity/noUselessThisAlias | biome | labelled safe | 1 | 1 | related | The rule removed the variable declaration `var _this = this` and replaced the read of `_this` with `this`, but the read… |
| complexity/noUselessUndefined | biome | labelled safe | 2 | 2 | related | The rule removes the initializer `undefined` from `let x = undefined`, turning it into `let x;`. In the program, a loca… |
| complexity/noUselessUndefinedInitialization | biome | labelled safe | 3 | 3 | duplicate | The fix removes the explicit `= undefined` initializer from a `var` declaration inside a loop. Because `var` is functio… |
| complexity/useRegexLiterals | biome | labelled safe | 1 | 1 | related | The fix rewrites `new RegExp('a', 'xy')` to the invalid regex literal `/a/xy`, which contains illegal flags 'x' and 'y'… |
| complexity/useSimplifiedLogicExpression | biome | labelled safe | 1 | 1 | duplicate | The rule rewrites 'true && function() { return 1; }()' to 'function() { return 1; }()', but a function expression in st… |
| F632 | ruff | labelled safe | 6 | 1 | related | The rule rewrites 'd is {}' to 'd == {}', changing an identity check into a value comparison. The program defines a cla… |
| FURB103 | ruff | labelled safe | 4 | 1 | duplicate | The rule rewrites a guarded write (`flag and f.write(...)`) inside a `with open` block to an unguarded `Path.write_text… |
| FURB110 | ruff | labelled safe | 1 | 1 | duplicate | The rule rewrites 's.reading if s.reading else 0' to 's.reading or 0', but the property getter has a side effect (incre… |
| FURB129 | ruff | labelled safe | 3 | 3 | related | The fix replaces `fp.readlines()` with `fp`, changing iteration from a pre-read list to a live file iterator. The loop … |
| no-array-constructor | eslint | labelled safe | 1 | 1 | related | The program redefines `Array` to a custom function that returns an object with a `custom` property. The rule's document… |