Skip to content

Commit

Permalink
Fix analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminMichaelis committed Jan 10, 2024
1 parent 91d8514 commit f2ccdb4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System;
using System.Collections.Immutable;
using System.Linq;
using System.Xml.Linq;
using IntelliTect.Analyzer.Naming;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
Expand Down Expand Up @@ -77,6 +78,12 @@ private static void AnalyzeSymbol(SymbolAnalysisContext context)
default: return;
}

// Common symbols for generated code to use, including the main method for top-level statements.
if (name.Contains('<') || name.Contains('>'))
{
return;
}

if (Casing.IsPascalCase(name))
{
return;
Expand Down

0 comments on commit f2ccdb4

Please sign in to comment.