rspec/rules/S116/java/rule.adoc

19 lines
261 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-zA-Z0-9]*$</code>:
----
class MyClass {
private int my_field;
}
----
== Compliant Solution
----
class MyClass {
private int myField;
}
----