IntelliTect / IntelliTect/CodingGuidelines

INTL0003 triggers on generated main methods

Open
#229 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
12
Forks
16
Avg merge
2m
Merged PRs (30d)
7

Description

Create a new minimal API ASP.NET Core project.
Observed: The analyzer triggers on the generated main method.

![image](https://user-images.githubusercontent.com/952248/164064604-a6156be7-7de5-4ad6-8aef-b457252e1bdc.png)

I suggest we make the analyzer ignore all methods that do not start with a letter or underscore (Full language spec here: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#643-identifiers)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.