rspec/rules/S115/vb6/rule.adoc

53 lines
999 B
Plaintext
Raw Normal View History

include::../common/introduction.adoc[]
== Why is this an issue?
include::../common/why-is-this-an-issue.adoc[]
include::../common/rule-behaviour.adoc[]
=== What is the potential impact?
include::../common/what-is-the-potential-impact.adoc[]
== How to fix it
include::../common/how-to-fix-it.adoc[]
=== Code examples
2020-06-30 10:16:44 +02:00
==== Noncompliant code example
2020-06-30 10:16:44 +02:00
The following example assumes that constant names should match the default
regular expression ``++^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$++``:
[source,vb6,diff-id=1,diff-type=noncompliant]
2020-06-30 10:16:44 +02:00
----
Global Const WdgtStatusOk = 0
----
==== Compliant solution
2020-06-30 10:16:44 +02:00
[source,vb6,diff-id=1,diff-type=compliant]
2020-06-30 10:16:44 +02:00
----
Global Const WDGT_STATUS_OK = 0
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../common/message.adoc[]
include::../common/parameters.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../common/comments-and-links.adoc[]
endif::env-github,rspecator-view[]