Skip to content

Commit

Permalink
Fix S2094 FP: type specifications, attributes and conditional compila…
Browse files Browse the repository at this point in the history
…tion (#6784)

Co-authored-by: Andrei Epure <andrei.epure@sonarsource.com>
  • Loading branch information
1 parent af2652f commit a06e58f
Show file tree
Hide file tree
Showing 31 changed files with 227 additions and 114 deletions.
Expand Up @@ -2,7 +2,7 @@
"issues": [
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\Ember-MM\Ember.Plugins\PluginActionContext.cs",
"region": {
Expand Down
14 changes: 7 additions & 7 deletions analyzers/its/expected/Net5/Net5--net5.0-S2094.json
Expand Up @@ -2,7 +2,7 @@
"issues": [
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\Net5\Net5\ModuleInitializers.cs",
"region": {
Expand All @@ -15,7 +15,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\Net5\Net5\ParameterValidation.cs",
"region": {
Expand All @@ -28,7 +28,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\Net5\Net5\S2330.cs",
"region": {
Expand All @@ -41,7 +41,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\Net5\Net5\S3240.cs",
"region": {
Expand All @@ -54,7 +54,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\Net5\Net5\S3247.cs",
"region": {
Expand All @@ -67,7 +67,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\Net5\Net5\S3453.cs",
"region": {
Expand All @@ -80,7 +80,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\Net5\Net5\StaticLambdas.cs",
"region": {
Expand Down
2 changes: 1 addition & 1 deletion analyzers/its/expected/Net7/Net7--net7.0-S2094.json
Expand Up @@ -2,7 +2,7 @@
"issues": [
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\Net7\Net7\features\WarningWave7.cs",
"region": {
Expand Down
30 changes: 15 additions & 15 deletions analyzers/its/expected/akka.net/Akka--netstandard2.0-S2094.json
Expand Up @@ -2,7 +2,7 @@
"issues": [
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\Actor\ActorSelection.cs",
"region": {
Expand All @@ -15,7 +15,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\Actor\FSM.cs",
"region": {
Expand All @@ -28,7 +28,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\Event\LoggerInitialized.cs",
"region": {
Expand All @@ -41,7 +41,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\Event\Logging.cs",
"region": {
Expand All @@ -54,7 +54,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\IO\Dns.cs",
"region": {
Expand All @@ -67,7 +67,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\IO\Inet.cs",
"region": {
Expand All @@ -80,7 +80,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\IO\Tcp.cs",
"region": {
Expand All @@ -93,7 +93,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\IO\Tcp.cs",
"region": {
Expand All @@ -106,7 +106,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\IO\Tcp.cs",
"region": {
Expand All @@ -119,7 +119,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\IO\Udp.cs",
"region": {
Expand All @@ -132,7 +132,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\IO\Udp.cs",
"region": {
Expand All @@ -145,7 +145,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\IO\UdpConnected.cs",
"region": {
Expand All @@ -158,7 +158,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\Pattern\BackoffOptions.cs",
"region": {
Expand All @@ -171,7 +171,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\Routing\Listeners.cs",
"region": {
Expand All @@ -184,7 +184,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka\Routing\RouterMsg.cs",
"region": {
Expand Down
Expand Up @@ -2,7 +2,7 @@
"issues": [
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\benchmark\Akka.Benchmarks\IO\TcpOperationsBenchmarks.cs",
"region": {
Expand All @@ -15,7 +15,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\benchmark\Akka.Benchmarks\IO\TcpOperationsBenchmarks.cs",
"region": {
Expand Down
Expand Up @@ -2,7 +2,7 @@
"issues": [
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka.Cluster\ClusterDaemon.cs",
"region": {
Expand All @@ -15,7 +15,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka.Cluster\ClusterHeartbeat.cs",
"region": {
Expand Down
Expand Up @@ -2,7 +2,7 @@
"issues": [
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\contrib\dependencyinjection\Akka.DI.TestKit\DiResolverSpec.cs",
"region": {
Expand All @@ -15,7 +15,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\contrib\dependencyinjection\Akka.DI.TestKit\DiResolverSpec.cs",
"region": {
Expand All @@ -28,7 +28,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\contrib\dependencyinjection\Akka.DI.TestKit\DiResolverSpec.cs",
"region": {
Expand All @@ -41,7 +41,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\contrib\dependencyinjection\Akka.DI.TestKit\DiResolverSpec.cs",
"region": {
Expand Down
Expand Up @@ -2,7 +2,7 @@
"issues": [
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka.MultiNodeTestRunner\Program.cs",
"region": {
Expand All @@ -15,7 +15,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka.MultiNodeTestRunner\Program.cs",
"region": {
Expand Down
Expand Up @@ -2,7 +2,7 @@
"issues": [
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka.MultiNodeTestRunner\Program.cs",
"region": {
Expand All @@ -15,7 +15,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka.MultiNodeTestRunner\Program.cs",
"region": {
Expand Down
Expand Up @@ -2,7 +2,7 @@
"issues": [
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka.MultiNodeTestRunner\Program.cs",
"region": {
Expand All @@ -15,7 +15,7 @@
},
{
"id": "S2094",
"message": "Remove this empty class, or add members to it.",
"message": "Remove this empty class, write its code or make it an "interface".",
"location": {
"uri": "sources\akka.net\src\core\Akka.MultiNodeTestRunner\Program.cs",
"region": {
Expand Down

0 comments on commit a06e58f

Please sign in to comment.