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

SA1013 seems to be unaware of object initializers #1078

Closed
RalfKoban opened this issue Jul 28, 2015 · 2 comments
Closed

SA1013 seems to be unaware of object initializers #1078

RalfKoban opened this issue Jul 28, 2015 · 2 comments
Assignees
Milestone

Comments

@RalfKoban
Copy link
Contributor

Hi,

I'm using StyleCopAnalyzers 1.0.0-beta2 (but also on beta1).
It seems that the checks for rule SA1013 is not aware of an object initializers, as in following snippet:

var obj = new MyObject { Something = 42 }.As<ISomething>();

It reports that there is a space missing between the } and . but actually there should be no space in between (which then would violate SA1019).

BR,
Ralf

@pdelvo
Copy link
Member

pdelvo commented Jul 28, 2015

Im going to take a look at it

@RalfKoban
Copy link
Contributor Author

Works. :)

BTW: Cool tool. 👍

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

3 participants