-
Notifications
You must be signed in to change notification settings - Fork 231
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 S1694 FP: Cconstructors and fields #9504
Fix S1694 FP: Cconstructors and fields #9504
Conversation
130a17e
to
eb8ec58
Compare
eb8ec58
to
2ae8d67
Compare
{ | ||
"Id": "S1694", | ||
"Message": "Convert this \u0027abstract\u0027 class to an interface.", | ||
"Uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/Projects/akka.net/src/core/Akka/Dispatch/Mailbox.cs#L554", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FP: the class has fields, it cannot be converted to an interface.
{ | ||
"Id": "S1694", | ||
"Message": "Convert this \u0027abstract\u0027 class to an interface.", | ||
"Uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/Projects/akka.net/src/core/Akka/Pattern/BackoffOptions.cs#L77", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FP: the class cannot be converted to an interface, because in .NET Standard 2.0 interfaces cannot have members with internal visibility.
{ | ||
"Id": "S1694", | ||
"Message": "Convert this \u0027abstract\u0027 class to an interface.", | ||
"Uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/Projects/akka.net/src/core/Akka.Remote/FailureDetector.cs#L17", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FP: the class cannot be converted to an interface, because in .NET Standard 2.0 interfaces cannot have readonly static fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with the expectation that the behavior related to #9421 will be reverted, as discussed directly.
|
|
Fixes #9494