rspec/rules/S115/flex/rule.adoc

15 lines
274 B
Plaintext
Raw Normal View History

2020-06-30 10:16:44 +02:00
include::../description.adoc[]
== Noncompliant Code Example
With the default regular expression <code>^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$</code>:
----
public static const first:String = "first";
----
== Compliant Solution
----
public static const FIRST:String = "first";
----