Skip to content

Commit

Permalink
New rule S3878: Arrays should not be created for params parameters (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cristian-ambrosini-sonarsource committed Feb 1, 2023
1 parent 7edf4a7 commit 49f172c
Show file tree
Hide file tree
Showing 41 changed files with 2,297 additions and 37 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -12,7 +12,7 @@ languages in [SonarQube](http://www.sonarqube.org/), [SonarCloud](https://sonarc

## Features

* [370+ C# rules](https://rules.sonarsource.com/csharp) and [170+ VB.​NET rules](https://rules.sonarsource.com/vbnet)
* [380+ C# rules](https://rules.sonarsource.com/csharp) and [170+ VB.​NET rules](https://rules.sonarsource.com/vbnet)
* Metrics (cognitive complexity, duplications, number of lines etc.)
* Import of [test coverage reports](https://community.sonarsource.com/t/9871) from Visual Studio Code Coverage, dotCover, OpenCover, Coverlet, Altcover.
* Import of third party Roslyn Analyzers results
Expand Down
@@ -0,0 +1,342 @@
{
"issues": [
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 6583,
"startColumn": 71,
"endLine": 6583,
"endColumn": 102
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 6881,
"startColumn": 47,
"endLine": 6881,
"endColumn": 94
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 6882,
"startColumn": 47,
"endLine": 6882,
"endColumn": 130
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 6883,
"startColumn": 47,
"endLine": 6883,
"endColumn": 130
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 6884,
"startColumn": 47,
"endLine": 6884,
"endColumn": 132
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 6885,
"startColumn": 47,
"endLine": 6885,
"endColumn": 79
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7017,
"startColumn": 47,
"endLine": 7017,
"endColumn": 93
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7018,
"startColumn": 47,
"endLine": 7018,
"endColumn": 94
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7019,
"startColumn": 47,
"endLine": 7019,
"endColumn": 83
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7020,
"startColumn": 47,
"endLine": 7020,
"endColumn": 83
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7021,
"startColumn": 47,
"endLine": 7021,
"endColumn": 80
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7022,
"startColumn": 47,
"endLine": 7022,
"endColumn": 84
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7023,
"startColumn": 47,
"endLine": 7023,
"endColumn": 80
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7024,
"startColumn": 47,
"endLine": 7024,
"endColumn": 82
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7025,
"startColumn": 47,
"endLine": 7025,
"endColumn": 80
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7026,
"startColumn": 47,
"endLine": 7026,
"endColumn": 97
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7027,
"startColumn": 47,
"endLine": 7027,
"endColumn": 101
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7028,
"startColumn": 47,
"endLine": 7028,
"endColumn": 97
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7107,
"startColumn": 43,
"endLine": 7107,
"endColumn": 137
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7109,
"startColumn": 47,
"endLine": 7109,
"endColumn": 141
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7111,
"startColumn": 43,
"endLine": 7111,
"endColumn": 75
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7193,
"startColumn": 47,
"endLine": 7193,
"endColumn": 96
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7194,
"startColumn": 47,
"endLine": 7194,
"endColumn": 130
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7195,
"startColumn": 47,
"endLine": 7195,
"endColumn": 130
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7196,
"startColumn": 47,
"endLine": 7196,
"endColumn": 134
}
}
},
{
"id": "S3878",
"message": "Remove this array creation and simply pass the elements.",
"location": {
"uri": "sources\Ember-MM\Ember%20Media%20Manager\frmMain.vb",
"region": {
"startLine": 7197,
"startColumn": 47,
"endLine": 7197,
"endColumn": 79
}
}
}
]
}

0 comments on commit 49f172c

Please sign in to comment.