<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rohan San</title>
    <description>The latest articles on DEV Community by Rohan San (@rohan_san_54b7ab7e50faa83).</description>
    <link>https://dev.to/rohan_san_54b7ab7e50faa83</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3797871%2Fb0f0d2b0-ed91-4161-b1a8-e747080ef8cd.png</url>
      <title>DEV Community: Rohan San</title>
      <link>https://dev.to/rohan_san_54b7ab7e50faa83</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rohan_san_54b7ab7e50faa83"/>
    <language>en</language>
    <item>
      <title>How I built a tool that detects AI slop in codebases (and what patterns I found)</title>
      <dc:creator>Rohan San</dc:creator>
      <pubDate>Sat, 07 Mar 2026 02:48:08 +0000</pubDate>
      <link>https://dev.to/rohan_san_54b7ab7e50faa83/how-i-built-a-tool-that-detects-ai-slop-in-codebases-and-what-patterns-i-found-gmc</link>
      <guid>https://dev.to/rohan_san_54b7ab7e50faa83/how-i-built-a-tool-that-detects-ai-slop-in-codebases-and-what-patterns-i-found-gmc</guid>
      <description>&lt;p&gt;The Problem&lt;/p&gt;

&lt;p&gt;I've been using AI coding assistants heavily for the past year — Cursor, Copilot, Claude through various interfaces. They're incredible for velocity, but I kept noticing the same lazy patterns slipping through code review:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;TODO&lt;/code&gt; comments everywhere, often contradicting the actual implementation&lt;/li&gt;
&lt;li&gt;Placeholder variable names like &lt;code&gt;data2&lt;/code&gt;, &lt;code&gt;temp&lt;/code&gt;, &lt;code&gt;result_final&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Empty &lt;code&gt;except&lt;/code&gt; blocks with just &lt;code&gt;pass&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Entire blocks of commented-out code&lt;/li&gt;
&lt;li&gt;Functions named &lt;code&gt;handle_it&lt;/code&gt;, &lt;code&gt;do_stuff&lt;/code&gt;, &lt;code&gt;process_data&lt;/code&gt; that do three unrelated things&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The worst part? These patterns are &lt;em&gt;invisible&lt;/em&gt; to traditional linters. pylint doesn't care if your function is called &lt;code&gt;processData&lt;/code&gt; or &lt;code&gt;handleStuff&lt;/code&gt;. flake8 won't flag a TODO comment. But every human reviewer immediately spots them and questions whether you actually understand the code you're submitting.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://github.com/Rohan5commit/roast-my-code" rel="noopener noreferrer"&gt;roast-my-code&lt;/a&gt; — a CLI that specifically hunts for these patterns.&lt;br&gt;
The Detection Rules&lt;/p&gt;

&lt;p&gt;The analyzer is built around three categories: &lt;strong&gt;AI Slop&lt;/strong&gt;, &lt;strong&gt;Code Quality&lt;/strong&gt;, and &lt;strong&gt;Style&lt;/strong&gt;. Each category has weighted scoring, with AI Slop counting for 50% of the overall score.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI Slop Patterns (High Severity)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
# Detect TODO/FIXME/HACK comments
TODO_PATTERN = re.compile(r'#\s*(TODO|FIXME|HACK|XXX)', re.IGNORECASE)

# Placeholder variable detection
PLACEHOLDER_NAMES = {
    'foo', 'bar', 'baz', 'temp', 'data2', 'result2', 
    'test123', 'foo_bar', 'test_var'
}

# Hallucinated imports (common fake packages AI invents)
FAKE_IMPORTS = {
    'magiclib', 'utils2', 'helpers.everything', 
    'common_utils', 'my_helpers'
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
