fixhunt

Hunt a rule

Examples: ruff FURB103 · biome noUselessLoneBlockStatements · eslint prefer-const · clang-tidy readability-container-size-empty

Rules with findings all findings

ruletoollabelfindingsjudged realupstreamexample
C413rufflabelled safe11relatedThe rule documentation explicitly states the fix is safe for `list()` cases because it does not change behavior, but th…
complexity/noUselessLoneBlockStatementsbiomelabelled safe11relatedThe fix removes a standalone block `{}` inside a try block that contains a `let x = 1` declaration. According to the do…
complexity/noUselessThisAliasbiomelabelled safe11relatedThe rule removed the variable declaration `var _this = this` and replaced the read of `_this` with `this`, but the read…
complexity/noUselessUndefinedbiomelabelled safe22relatedThe rule removes the initializer `undefined` from `let x = undefined`, turning it into `let x;`. In the program, a loca…
complexity/noUselessUndefinedInitializationbiomelabelled safe33duplicateThe fix removes the explicit `= undefined` initializer from a `var` declaration inside a loop. Because `var` is functio…
complexity/useRegexLiteralsbiomelabelled safe11relatedThe fix rewrites `new RegExp('a', 'xy')` to the invalid regex literal `/a/xy`, which contains illegal flags 'x' and 'y'…
complexity/useSimplifiedLogicExpressionbiomelabelled safe11duplicateThe rule rewrites 'true && function() { return 1; }()' to 'function() { return 1; }()', but a function expression in st…
F632rufflabelled safe61relatedThe rule rewrites 'd is {}' to 'd == {}', changing an identity check into a value comparison. The program defines a cla…
FURB103rufflabelled safe41duplicateThe rule rewrites a guarded write (`flag and f.write(...)`) inside a `with open` block to an unguarded `Path.write_text…
FURB110rufflabelled safe11duplicateThe rule rewrites 's.reading if s.reading else 0' to 's.reading or 0', but the property getter has a side effect (incre…
FURB129rufflabelled safe33relatedThe fix replaces `fp.readlines()` with `fp`, changing iteration from a pre-read list to a live file iterator. The loop …
no-array-constructoreslintlabelled safe11relatedThe program redefines `Array` to a custom function that returns an object with a `custom` property. The rule's document…