rspec/rules/S820/vb6/rule.adoc

28 lines
479 B
Plaintext
Raw Normal View History

2020-06-30 12:50:59 +02:00
Explicitly declaring a function's return data type makes it easier to use the function correctly.
== Noncompliant Code Example
----
Function BinarySearch(. . .)
[. . .]
End Function
----
== Compliant Solution
----
Function BinarySearch(. . .) As Boolean
[. . .]
End Function
----
include::../see.adoc[]
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]