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

SA1111 not triggered on record constructor #3785

Closed
bjornhellander opened this issue Jan 23, 2024 · 0 comments · Fixed by #3791
Closed

SA1111 not triggered on record constructor #3785

bjornhellander opened this issue Jan 23, 2024 · 0 comments · Fixed by #3791

Comments

@bjornhellander
Copy link
Contributor

I expect the following code to trigger SA1111 (closing parenthesis must be on line of last parameter), but it does not:

public record MyType(int X, int y
    )
{
}

Tested with version 1.2.0-beta.556

bjornhellander added a commit to bjornhellander/StyleCopAnalyzers that referenced this issue Jan 30, 2024
bjornhellander added a commit to bjornhellander/StyleCopAnalyzers that referenced this issue Jan 30, 2024
bjornhellander added a commit to bjornhellander/StyleCopAnalyzers that referenced this issue Feb 9, 2024
bjornhellander added a commit to bjornhellander/StyleCopAnalyzers that referenced this issue Feb 10, 2024
bjornhellander added a commit to bjornhellander/StyleCopAnalyzers that referenced this issue Feb 10, 2024
bjornhellander added a commit to bjornhellander/StyleCopAnalyzers that referenced this issue Feb 10, 2024
@sharwell sharwell changed the title SA1111 not triggered on primary constructor SA1111 not triggered on record constructor Mar 8, 2024
@sharwell sharwell added c# 11 and removed c# 12 labels Mar 8, 2024
bjornhellander added a commit to bjornhellander/StyleCopAnalyzers that referenced this issue Mar 21, 2024
bjornhellander added a commit to bjornhellander/StyleCopAnalyzers that referenced this issue Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants