Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c# 9 record raise SA1649FileNameMustMatchTypeName #3300

Closed
luboid opened this issue Feb 12, 2021 · 1 comment
Closed

c# 9 record raise SA1649FileNameMustMatchTypeName #3300

luboid opened this issue Feb 12, 2021 · 1 comment

Comments

@luboid
Copy link

luboid commented Feb 12, 2021

Package=StyleCop.Analyzers
Version=1.1.118

Code:

    public record ChannelNumber
    {
        public Channel Channel { get; set; }

        public string Number { get; set; }
    }

Exception:

CSC : warning AD0001: Analyzer 'StyleCop.Analyzers.DocumentationRules.SA1649FileNameMustMatchTypeName' threw an exception of type 'System.ArgumentException' with message 'Unhandled declaration kind: RecordDeclaration'.

image

@sharwell
Copy link
Member

Duplicate of #3213

@sharwell sharwell marked this as a duplicate of #3213 Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants