rspec/rules/S4159/vbnet/rule.adoc
Antonio Aversa 9711d241b9 Modify rule S4159: LaYC format (#2036)
Adapts the rule to LaYC format level 2, for dotnet languages (csharp,
vbnet).
2023-06-07 12:01:33 +02:00

41 lines
679 B
Plaintext

== Why is this an issue?
include::../why.adoc[]
== How to fix it
=== Code examples
==== Noncompliant code example
[source,vbnet,diff-id=1,diff-type=noncompliant]
----
<Export(GetType(ISomeType))>
Public Class SomeType ' Noncompliant: doesn't implement 'ISomeType'.
End Class
----
==== Compliant solution
[source,vbnet,diff-id=1,diff-type=compliant]
----
<Export(GetType(ISomeType))>
Public Class SomeType
Inherits ISomeType
End Class
----
include::../resources.adoc[]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../highlighting.adoc[]
endif::env-github,rspecator-view[]