News for hackers. Stuff that matters.
Re:Show HN: Refurb – A tool for refurbishing and modernizing... by BerislavLopac on Wednesday September 28, 2022 @05:17AM (#33006008)
As I understand, the snippets in the suggestions are not supposed to be applied verbatim, but as generic proposals that need to be tweaked for the specific example (or ignored completely).

Note that it doesn't say to replace `.read(100)` with `.read_text()`; it uses the default version (without arguments) for both. (That being said, `read_text` doesn't have a limit argument, but that is a completely different issue.)

So you're right - if you're applying the suggestion verbatim without thinking, you will get incorrect results; but the suggestions were not intended for that.

Re:Show HN: Refurb – A tool for refurbishing and modernizing... by kevincox on Wednesday September 28, 2022 @09:32AM (#33007695)
I find that linters that have a non-trivial false-positive rate get very annoying very quick.