rspec/rules/S3222/rule.adoc

21 lines
352 B
Plaintext
Raw Normal View History

2020-06-30 12:48:39 +02:00
Shared coding conventions allow teams to collaborate effectively. This rule checks that labels match a provided regular expression.
== Noncompliant Code Example
2021-01-27 13:42:22 +01:00
With default provided regular expression ``++^[A-Z][A-Z0-9_]*$++``:
2020-06-30 12:48:39 +02:00
----
exit: // Noncompliant
doCleanup();
----
== Compliant Solution
----
EXIT: // Compliant
doCleanup();
----