rspec/rules/S2094/vbnet/rule.adoc
2024-04-15 10:51:00 +02:00

50 lines
788 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,vbnet]
----
Public Class Empty ' Noncompliant
End Class
----
=== Compliant solution
[source,vbnet]
----
Public Interface IEmpty
End Interface
----
=== Exceptions
include::../exceptions-dotnet.adoc[]
[source,vbnet]
----
Imports Microsoft.AspNetCore.Mvc.RazorPages
Public Class EmptyPageModel ' Compliant - an empty PageModel can be fully functional, the VB code can be in the vbhtml file
Inherits PageModel
End Class
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]