Live data from Hacker News

Show HN: AISlop, a CLI for catching AI generated code smells

github.com

61–70 of 70 posts

Re: Show HN: AISlop, a CLI for catching AI generated code smells

#62
I've tried it on my repository; for go if function is in format `func(...) (T, bool)` and you use it as `object, _ := func(...)` it reports as `Error return value is being ignored` even though it's clearly not an error being ignored (and ignoring the bool ok is a common pattern in go).

Re: Show HN: AISlop, a CLI for catching AI generated code smells

#63

Nice job. Somewhat related, but one "AI smell" (if you can call it that) is LLMs' desire to add layers of redundant safeguards with things like null coalescing operators and defensive fallbacks so that there’s always some default value. LLMs often seem to struggle with the distinction between happy/unhappy paths and often end up treating everything as optional and "safe". I’m a much bigger fan of surfacing problems l…

Happy to share your AGENTS.md?

Re: Show HN: AISlop, a CLI for catching AI generated code smells

#64
post #63

Nice job. Somewhat related, but one "AI smell" (if you can call it that) is LLMs' desire to add layers of redundant safeguards with things like null coalescing operators and defensive fallbacks so that there’s always some default value. LLMs often seem to struggle with the distinction between happy/unhappy paths and often end up treating everything as optional and "safe". I’m a much bigger fan of surfacing problems l…

Happy to share your AGENTS.md?

Sure. I have about half a dozen that I use in rotation depending on the language, project, etc., but this one is probably my most common for web development.

https://gist.github.com/scpedicini/1407c776b82945b723199a91a...

Re: Show HN: AISlop, a CLI for catching AI generated code smells

#67
post #62

I've tried it on my repository; for go if function is in format `func(...) (T, bool)` and you use it as `object, _ := func(...)` it reports as `Error return value is being ignored` even though it's clearly not an error being ignored (and ignoring the bool ok is a common pattern in go).

This is a false positive, can you please create an issue on GitHub and I will fix this.

Re: Show HN: AISlop, a CLI for catching AI generated code smells

#69

I’m eager to test this out. I have agent instructions to try to limit the worst of this already, but patterns still sneak through. I have a review agent run after every single edit looking for all of the following if you need more ideas for checks: - DRY principle violations, multiple definitions of the same helpers or utilities. - Changes that deviate from existing patterns and architecture already in the code, espe…

[flagged]
Post reply on HN