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

SA1516 reports violation between fields if the first one has an attribute #1595

Closed
appel1 opened this issue Oct 5, 2015 · 2 comments
Closed
Assignees
Milestone

Comments

@appel1
Copy link

appel1 commented Oct 5, 2015

I don't think the following code should cause an SA1516 violation.

public class SomeClass
{
  [CanBeNull]
  private Foo foo;
  private bool bar;
}
@sharwell
Copy link
Member

sharwell commented Oct 5, 2015

@oatkins @vweijsters Is this a regression from StyleCop "classic"?

@oatkins
Copy link
Contributor

oatkins commented Oct 5, 2015

Yes. Legacy StyleCop doesn't report anything here.

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

4 participants