rspec/rules/S2336/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

56 lines
942 B
Plaintext

== Why is this an issue?
To improve code readability, at least one blank line should separate properties and method definitions.
=== Noncompliant code example
[source,text]
----
Module Module1
Public Property Foo() As String ' Compliant
Get
Return ""
End Get
Set(ByVal value As String)
End Set
End Property
Sub Bar() ' Non-Compliant
End Sub
End Module
----
=== Compliant solution
[source,text]
----
Module Module1
Public Property Foo() As String ' Compliant
Get
Return ""
End Get
Set(ByVal value As String)
End Set
End Property
Sub Bar() ' Compliant
End Sub
End Module
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Add a blank line after this property.
endif::env-github,rspecator-view[]