Hacker News new | ask | show | jobs
by hightrix 13 days ago
Linting is also trivial for LLMs. I’d argue linting is one of the easiest and best use cases for coding assistants.

This story doesn’t add up.

2 comments

The person running the Ai needs to know to set up linting in the first place and have it be applied. It's not a default.

Ive had ai make code that doesn't pass a linter and make code look like hand aligned code.

Shameless plug - I've been working on a general repo linting tool alint [0], which helps keep a repo cleanly structured and hygienic - essentially a linter for everything in a repo that a language-specific linter doesn't cover. It also has some considerations for integrating/playing nicely with agentic coding [1]. This started as a replacement to a bunch of scripts I had in repos that did similar things - but more cohesive, readable and much faster.

[0] https://github.com/asamarts/alint

[1] https://alint.org/agent-friendly-linter/

You'd have to know what a linter is and tell the LLM to set it up though, right? Or just get lucky and have it suggest setting it up/set one up without asking.