Modify S3466,S3598,S3927(vbnet): Fix diff typos (#2827)
## Review A dedicated reviewer checked the rule description successfully for: - [ ] logical errors and incorrect information - [ ] information gaps and missing content - [ ] text style and tone - [ ] PR summary and labels follow [the guidelines](https://github.com/SonarSource/rspec/#to-modify-an-existing-rule)
This commit is contained in:
parent
5aa384f99e
commit
17f6634cc9
@ -6,7 +6,7 @@ include::../description.adoc[]
|
||||
|
||||
==== Noncompliant code example
|
||||
|
||||
[source,vbnet,diff-id=1,diff-type=noncompliant]]
|
||||
[source,vbnet,diff-id=1,diff-type=noncompliant]
|
||||
----
|
||||
Public Class BaseClass
|
||||
Public Overridable Sub MyMethod(ByVal Optional i As Integer = 1)
|
||||
@ -31,7 +31,7 @@ End Class
|
||||
|
||||
==== Compliant solution
|
||||
|
||||
[source,vbnet,diff-id=1,diff-type=compliant]]
|
||||
[source,vbnet,diff-id=1,diff-type=compliant]
|
||||
----
|
||||
Public Class BaseClass
|
||||
Public Overridable Sub MyMethod(ByVal Optional i As Integer = 1)
|
||||
|
@ -19,7 +19,7 @@ End Interface
|
||||
|
||||
==== Compliant solution
|
||||
|
||||
[source,vbnet,diff-id=1,diff-type=noncompliant]
|
||||
[source,vbnet,diff-id=1,diff-type=compliant]
|
||||
----
|
||||
<ServiceContract>
|
||||
Interface IMyService
|
||||
|
@ -34,7 +34,7 @@ End Class
|
||||
|
||||
==== Compliant solution
|
||||
|
||||
[source,vbnet,diff-id=1,diff-type=noncompliant]
|
||||
[source,vbnet,diff-id=1,diff-type=compliant]
|
||||
----
|
||||
<Serializable>
|
||||
Public Class Foo
|
||||
|
Loading…
x
Reference in New Issue
Block a user