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

SA1500 reported for new arrays #2607

Closed
sharwell opened this issue Jan 28, 2018 · 2 comments
Closed

SA1500 reported for new arrays #2607

sharwell opened this issue Jan 28, 2018 · 2 comments

Comments

@sharwell
Copy link
Member

Starting in 1.1.0-beta005 (currently unlisted from NuGet due to this bug), SA1500 is getting reported for lines like the following:

yield return new object[] { $"class Foo\r\n{{\r\n}}" };

It appears to apply to any case of the following:

new Type[] { object, ... }
@JimBobSquarePants
Copy link

I'm still seeing this for multiline arrays in 1.1.0-beta006

e.g.

        private static readonly float[,] AtkinsonMatrix =
            new float[,]
            {
               { 0, 0, 1, 1 },
               { 1, 1, 1, 0 },
               { 0, 1, 0, 0 }
            };

@vweijsters
Copy link
Contributor

Confirmed. As this is a closed issue, I'll file a new one for it.

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