
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.
56 lines
942 B
Plaintext
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[]
|