rspec/rules/S3598/vbnet/rule.adoc
Loris S 17f6634cc9
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)
2023-08-08 14:23:00 +02:00

44 lines
846 B
Plaintext

include::../description.adoc[]
include::../exceptions.adoc[]
== How to fix it
=== Code examples
==== Noncompliant code example
[source,vbnet,diff-id=1,diff-type=noncompliant]
----
<ServiceContract>
Interface IMyService
<OperationContract(IsOneWay:=True)>
Function SomethingHappened(ByVal parameter As Integer) As Integer ' Noncompliant
End Interface
----
==== Compliant solution
[source,vbnet,diff-id=1,diff-type=compliant]
----
<ServiceContract>
Interface IMyService
<OperationContract(IsOneWay:=True)>
Sub SomethingHappened(ByVal parameter As Integer)
End Interface
----
include::../resources.adoc[]
ifdef::env-github,rspecator-view,env-vscode[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../highlighting.adoc[]
endif::env-github,rspecator-view,env-vscode[]