53 lines
1.0 KiB
Plaintext
53 lines
1.0 KiB
Plaintext
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
|
|
|
|
==== Noncompliant code example
|
|
|
|
The following example assumes that constant names should match the default
|
|
regular expression ``++^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$++``:
|
|
|
|
[source,flex,diff-id=1,diff-type=noncompliant]
|
|
----
|
|
public static const first:String = "first";
|
|
----
|
|
|
|
==== Compliant solution
|
|
|
|
[source,flex,diff-id=1,diff-type=compliant]
|
|
----
|
|
public static const FIRST:String = "first";
|
|
----
|
|
|
|
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[]
|