Skip to content

Commit

Permalink
Rule S4142: Duplicate values should not be passed as arguments (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalb-sonar authored Aug 25, 2017
1 parent a4bbade commit feb4016
Show file tree
Hide file tree
Showing 30 changed files with 3,209 additions and 5,073 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"issues": [
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 1st argument.",
"location": [
{
"uri": "sources\Nancy\src\Nancy\TinyIoc\TinyIoC.cs",
"region": {
"startLine": 1170,
"startColumn": 103,
"endLine": 1170,
"endColumn": 115
}
},
{
"uri": "sources\Nancy\src\Nancy\TinyIoc\TinyIoC.cs",
"region": {
"startLine": 1170,
"startColumn": 89,
"endLine": 1170,
"endColumn": 101
}
}
]
},
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 1st argument.",
"location": [
{
"uri": "sources\Nancy\src\Nancy\TinyIoc\TinyIoC.cs",
"region": {
"startLine": 1181,
"startColumn": 95,
"endLine": 1181,
"endColumn": 107
}
},
{
"uri": "sources\Nancy\src\Nancy\TinyIoc\TinyIoC.cs",
"region": {
"startLine": 1181,
"startColumn": 81,
"endLine": 1181,
"endColumn": 93
}
}
]
},
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 1st argument.",
"location": [
{
"uri": "sources\Nancy\src\Nancy\TinyIoc\TinyIoC.cs",
"region": {
"startLine": 3099,
"startColumn": 92,
"endLine": 3099,
"endColumn": 96
}
},
{
"uri": "sources\Nancy\src\Nancy\TinyIoc\TinyIoC.cs",
"region": {
"startLine": 3099,
"startColumn": 86,
"endLine": 3099,
"endColumn": 90
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"issues": [
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 1st argument.",
"location": [
{
"uri": "sources\Nancy\src\Nancy.Demo.Hosting.Aspnet\Piratizer4000.cs",
"region": {
"startLine": 90,
"startColumn": 82,
"endLine": 90,
"endColumn": 115
}
},
{
"uri": "sources\Nancy\src\Nancy.Demo.Hosting.Aspnet\Piratizer4000.cs",
"region": {
"startLine": 90,
"startColumn": 47,
"endLine": 90,
"endColumn": 80
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"issues": [
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 1st argument.",
"location": [
{
"uri": "sources\Nancy\src\Nancy.Tests\Unit\BeforePipelineFixture.cs",
"region": {
"startLine": 68,
"startColumn": 33,
"endLine": 68,
"endColumn": 39
}
},
{
"uri": "sources\Nancy\src\Nancy.Tests\Unit\BeforePipelineFixture.cs",
"region": {
"startLine": 68,
"startColumn": 25,
"endLine": 68,
"endColumn": 31
}
}
]
},
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 1st argument.",
"location": [
{
"uri": "sources\Nancy\src\Nancy.Tests\Unit\Routing\DefaultRoutePatternMatcherFixture.cs",
"region": {
"startLine": 180,
"startColumn": 67,
"endLine": 180,
"endColumn": 86
}
},
{
"uri": "sources\Nancy\src\Nancy.Tests\Unit\Routing\DefaultRoutePatternMatcherFixture.cs",
"region": {
"startLine": 180,
"startColumn": 46,
"endLine": 180,
"endColumn": 65
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
{
"issues": [
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 3rd argument.",
"location": [
{
"uri": "sources\akka.net\src\core\Akka\Actor\ActorRef.cs",
"region": {
"startLine": 412,
"startColumn": 85,
"endLine": 412,
"endColumn": 90
}
},
{
"uri": "sources\akka.net\src\core\Akka\Actor\ActorRef.cs",
"region": {
"startLine": 412,
"startColumn": 75,
"endLine": 412,
"endColumn": 80
}
}
]
},
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 1st argument.",
"location": [
{
"uri": "sources\akka.net\src\core\Akka\Actor\FSM.cs",
"region": {
"startLine": 193,
"startColumn": 76,
"endLine": 193,
"endColumn": 83
}
},
{
"uri": "sources\akka.net\src\core\Akka\Actor\FSM.cs",
"region": {
"startLine": 193,
"startColumn": 67,
"endLine": 193,
"endColumn": 74
}
}
]
},
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 3rd argument.",
"location": [
{
"uri": "sources\akka.net\src\core\Akka\Event\TraceLogger.cs",
"region": {
"startLine": 26,
"startColumn": 154,
"endLine": 26,
"endColumn": 162
}
},
{
"uri": "sources\akka.net\src\core\Akka\Event\TraceLogger.cs",
"region": {
"startLine": 26,
"startColumn": 144,
"endLine": 26,
"endColumn": 152
}
}
]
},
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 1st argument.",
"location": [
{
"uri": "sources\akka.net\src\core\Akka\IO\SimpleDnsManager.cs",
"region": {
"startLine": 34,
"startColumn": 101,
"endLine": 34,
"endColumn": 109
}
},
{
"uri": "sources\akka.net\src\core\Akka\IO\SimpleDnsManager.cs",
"region": {
"startLine": 34,
"startColumn": 91,
"endLine": 34,
"endColumn": 99
}
}
]
},
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 1st argument.",
"location": [
{
"uri": "sources\akka.net\src\core\Akka\Util\Internal\Collections\ImmutableTreeSet.cs",
"region": {
"startLine": 36,
"startColumn": 33,
"endLine": 36,
"endColumn": 38
}
},
{
"uri": "sources\akka.net\src\core\Akka\Util\Internal\Collections\ImmutableTreeSet.cs",
"region": {
"startLine": 36,
"startColumn": 26,
"endLine": 36,
"endColumn": 31
}
}
]
},
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 1st argument.",
"location": [
{
"uri": "sources\akka.net\src\core\Akka\Util\Internal\Collections\ImmutableTreeSet.cs",
"region": {
"startLine": 62,
"startColumn": 18,
"endLine": 62,
"endColumn": 23
}
},
{
"uri": "sources\akka.net\src\core\Akka\Util\Internal\Collections\ImmutableTreeSet.cs",
"region": {
"startLine": 62,
"startColumn": 11,
"endLine": 62,
"endColumn": 16
}
}
]
},
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 3rd argument.",
"location": [
{
"uri": "sources\akka.net\src\core\Akka\Util\MatchHandler\MatchExpressionBuilder.cs",
"region": {
"startLine": 58,
"startColumn": 113,
"endLine": 58,
"endColumn": 127
}
},
{
"uri": "sources\akka.net\src\core\Akka\Util\MatchHandler\MatchExpressionBuilder.cs",
"region": {
"startLine": 58,
"startColumn": 83,
"endLine": 58,
"endColumn": 97
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"issues": [
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 1st argument.",
"location": [
{
"uri": "sources\akka.net\src\core\Akka.Cluster\ClusterDaemon.cs",
"region": {
"startLine": 1455,
"startColumn": 59,
"endLine": 1455,
"endColumn": 76
}
},
{
"uri": "sources\akka.net\src\core\Akka.Cluster\ClusterDaemon.cs",
"region": {
"startLine": 1455,
"startColumn": 40,
"endLine": 1455,
"endColumn": 57
}
}
]
},
{
"id": "S4142",
"message": "Verify that this is the intended value; it is the same as the 1st argument.",
"location": [
{
"uri": "sources\akka.net\src\core\Akka.Cluster\ClusterDaemon.cs",
"region": {
"startLine": 1865,
"startColumn": 114,
"endLine": 1865,
"endColumn": 137
}
},
{
"uri": "sources\akka.net\src\core\Akka.Cluster\ClusterDaemon.cs",
"region": {
"startLine": 1865,
"startColumn": 89,
"endLine": 1865,
"endColumn": 112
}
}
]
}
]
}
Loading

0 comments on commit feb4016

Please sign in to comment.