logoalt Hacker News

seattle_springlast Tuesday at 9:48 PM1 replyview on HN

What are some examples of linters / static analysis catching hallucinated solutions to problems?

I feel like it would just yield a well-formatted, type safe incorrect solution, which is no better than a tangled mess.


Replies

steveklabniklast Tuesday at 10:07 PM

A specific example: for some reason, when working on Playwright scripts, Claude really likes to inject

  await page.waitForLoadState('networkidle');
But this isn't good, and is not encouraged. So much so that there's an eslint that suggests removing it. This means that by running the linter, if Claude does decide to inject this, it gets taken out, because the linter runs and then tells it so.