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

Fix S3257: should not recommend removing explicit type for multidimensional array #1840

Closed
valhristov opened this issue Sep 7, 2018 · 0 comments
Assignees
Labels
Type: False Positive Rule IS triggered when it shouldn't be.
Milestone

Comments

@valhristov
Copy link
Contributor

Description

In the following example, the explicit array type is needed to compile the statement but rule S3257 recommends removing it:

var x = new int[][]
{
	new [] { 1 }
};

Original community thread:
https://community.sonarsource.com/t/s3257-incorrectly-recommends-removing-explicit-type-for-multidimensional-array/2393

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: False Positive Rule IS triggered when it shouldn't be.
Projects
None yet
Development

No branches or pull requests

2 participants