rspec/rules/S3598/vbnet/rule.adoc

44 lines
846 B
Plaintext
Raw Normal View History

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