rspec/rules/S1147/vbnet/rule.adoc

33 lines
788 B
Plaintext
Raw Normal View History

2021-01-27 13:42:22 +01:00
``++End++`` statements exit the control flow of the program in an unstructured way. This statement stops code execution immediately without executing ``++Dispose++`` or ``++Finalize++`` methods, or executing ``++Finally++`` blocks. Therefore, it should be avoided.
2020-06-30 12:47:33 +02:00
== Noncompliant Code Example
----
Module Module1
Sub Print(ByVal str As String)
Try
...
End ' Noncompliant
Finally
' do something important here
...
End Try
End Sub
End Module
----
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[]