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

SA1009 conflicts with SA1024 on C# 9 records inheritance #3248

Closed
wiciok opened this issue Nov 20, 2020 · 0 comments · Fixed by #3260
Closed

SA1009 conflicts with SA1024 on C# 9 records inheritance #3248

wiciok opened this issue Nov 20, 2020 · 0 comments · Fixed by #3260

Comments

@wiciok
Copy link

wiciok commented Nov 20, 2020

Inheritance on positional records in single line causes SA1009:
image

Removing space, as suggested by SA1009 causes SA1024 to appear:
image

Only form not causing any warning is with inheritance statement moved to next line:
image
I assume that enforcing this style is not an expected behavior of SA1009 and SA1024, and SA1009 should be fixed to include such case.

Version: StyleCop.Analyzers.Unstable 1.2.0.261

@sharwell sharwell self-assigned this Dec 5, 2020
sharwell added a commit to sharwell/StyleCopAnalyzers that referenced this issue Dec 5, 2020
sharwell added a commit to sharwell/StyleCopAnalyzers that referenced this issue Dec 5, 2020
@sharwell sharwell added this to the 1.2-beta.next milestone Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants