2023-05-03 11:06:20 +02:00
|
|
|
== Why is this an issue?
|
|
|
|
|
2020-12-21 15:38:52 +01:00
|
|
|
To improve code readability, at least one blank line should separate properties and method definitions.
|
|
|
|
|
|
|
|
|
2023-05-03 11:06:20 +02:00
|
|
|
=== Noncompliant code example
|
2020-12-21 15:38:52 +01:00
|
|
|
|
2022-02-04 17:28:24 +01:00
|
|
|
[source,text]
|
2020-12-21 15:38:52 +01:00
|
|
|
----
|
|
|
|
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
|
|
|
|
----
|
|
|
|
|
|
|
|
|
2023-05-03 11:06:20 +02:00
|
|
|
=== Compliant solution
|
2020-12-21 15:38:52 +01:00
|
|
|
|
2022-02-04 17:28:24 +01:00
|
|
|
[source,text]
|
2020-12-21 15:38:52 +01:00
|
|
|
----
|
|
|
|
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
|
|
|
|
----
|
|
|
|
|
2022-01-25 18:36:46 +01:00
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
|
|
|
|
'''
|
|
|
|
== Implementation Specification
|
|
|
|
(visible only on this page)
|
|
|
|
|
2023-05-25 14:18:12 +02:00
|
|
|
=== Message
|
|
|
|
|
|
|
|
Add a blank line after this property.
|
|
|
|
|
2022-01-25 18:36:46 +01:00
|
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|