Skip to content

Commit

Permalink
New rule S1133: Deprecated code should be removed (#6669)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-strecker-sonarsource committed Feb 2, 2023
1 parent ec2c200 commit 68b93a2
Show file tree
Hide file tree
Showing 30 changed files with 1,652 additions and 2 deletions.
@@ -0,0 +1,173 @@
{
"issues": [
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 572,
"startColumn": 10,
"endLine": 572,
"endColumn": 80
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 583,
"startColumn": 10,
"endLine": 583,
"endColumn": 90
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 592,
"startColumn": 10,
"endLine": 592,
"endColumn": 98
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 686,
"startColumn": 10,
"endLine": 686,
"endColumn": 83
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 697,
"startColumn": 10,
"endLine": 697,
"endColumn": 89
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 705,
"startColumn": 10,
"endLine": 705,
"endColumn": 95
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 748,
"startColumn": 10,
"endLine": 748,
"endColumn": 98
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 760,
"startColumn": 10,
"endLine": 760,
"endColumn": 92
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 782,
"startColumn": 10,
"endLine": 782,
"endColumn": 95
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 794,
"startColumn": 10,
"endLine": 794,
"endColumn": 90
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 1543,
"startColumn": 10,
"endLine": 1543,
"endColumn": 84
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 1554,
"startColumn": 10,
"endLine": 1554,
"endColumn": 90
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Ember-MM\EmberAPI\clsAPIMediaContainers.vb",
"region": {
"startLine": 1562,
"startColumn": 10,
"endLine": 1562,
"endColumn": 96
}
}
}
]
}
17 changes: 17 additions & 0 deletions analyzers/its/expected/Net5/Net5--net5.0-S1133.json
@@ -0,0 +1,17 @@
{
"issues": [
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Net5\Net5\AttributesOnLocalFunctions.cs",
"region": {
"startLine": 11,
"startColumn": 14,
"endLine": 11,
"endColumn": 22
}
}
}
]
}
30 changes: 30 additions & 0 deletions analyzers/its/expected/Net7/Net7--net7.0-S1133.json
@@ -0,0 +1,30 @@
{
"issues": [
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Net7\Net7\features\ExtendedNameofScope.cs",
"region": {
"startLine": 5,
"startColumn": 10,
"endLine": 5,
"endColumn": 35
}
}
},
{
"id": "S1133",
"message": "Do not forget to remove this deprecated code someday.",
"location": {
"uri": "sources\Net7\Net7\features\ExtendedNameofScope.cs",
"region": {
"startLine": 11,
"startColumn": 10,
"endLine": 11,
"endColumn": 38
}
}
}
]
}

0 comments on commit 68b93a2

Please sign in to comment.