<?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: Carsten Riedel</title>
    <description>The latest articles on DEV Community by Carsten Riedel (@carsten_riedel).</description>
    <link>https://dev.to/carsten_riedel</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4132772%2F9d0eecee-5c9b-4abe-a86c-5940cd019a3c.png</url>
      <title>DEV Community: Carsten Riedel</title>
      <link>https://dev.to/carsten_riedel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/carsten_riedel"/>
    <language>en</language>
    <item>
      <title>AI-generated code brought typography into my repository, so I wrote a Roslyn analyzer</title>
      <dc:creator>Carsten Riedel</dc:creator>
      <pubDate>Sat, 19 Sep 2026 10:49:41 +0000</pubDate>
      <link>https://dev.to/carsten_riedel/ai-generated-code-brought-typography-into-my-repository-so-i-wrote-a-roslyn-analyzer-2p03</link>
      <guid>https://dev.to/carsten_riedel/ai-generated-code-brought-typography-into-my-repository-so-i-wrote-a-roslyn-analyzer-2p03</guid>
      <description>&lt;p&gt;I kept running into characters like:&lt;/p&gt;

&lt;p&gt;— “ ” ’ … −&lt;/p&gt;

&lt;p&gt;They usually arrive through copy/paste, documentation tools, or AI-generated content.&lt;/p&gt;

&lt;p&gt;Most of the time, the compiler does not care. But diffs, searches, reviews and repository consistency sometimes do.&lt;/p&gt;

&lt;p&gt;So I built a small Roslyn analyzer for it:&lt;/p&gt;

&lt;p&gt;Coree.Analyzers.Typography&lt;/p&gt;

&lt;p&gt;It detects configurable typographic Unicode characters during development and build, and it can also inspect additional project files such as Markdown, JSON or YAML.&lt;/p&gt;

&lt;p&gt;NuGet:&lt;br&gt;
&lt;a href="https://www.nuget.org/packages/Coree.Analyzers.Typography/" rel="noopener noreferrer"&gt;https://www.nuget.org/packages/Coree.Analyzers.Typography/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Source:&lt;br&gt;
&lt;a href="https://github.com/carsten-riedel/Coree.Analyzers" rel="noopener noreferrer"&gt;https://github.com/carsten-riedel/Coree.Analyzers&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The goal is not to ban Unicode. It is simply to make accidental typography visible and let the project decide what is acceptable.&lt;/p&gt;

&lt;p&gt;And if enough of us install it, maybe the .NET ecosystem can still be saved from the em dash. Or at least our README files and AI summaries. :)&lt;/p&gt;

&lt;p&gt;Useful little guardrail, or pure developer pedantry?&lt;/p&gt;

&lt;p&gt;Also curious: which characters or edge cases would you expect something like this to catch?&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>csharp</category>
      <category>ai</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
