rspec/rules/S116/java/rule.adoc

48 lines
1.0 KiB
Plaintext
Raw Normal View History

== Why is this an issue?
2020-06-30 10:16:44 +02:00
include::../description.adoc[]
Using the regular expression ``++^[a-z][a-zA-Z0-9]*$++``, the noncompliant code below:
2020-06-30 10:16:44 +02:00
[source,java,diff-id=1,diff-type=noncompliant]
2020-06-30 10:16:44 +02:00
----
class MyClass {
private int my_field;
}
----
Should be replaced with:
2020-06-30 10:16:44 +02:00
[source,java,diff-id=1,diff-type=compliant]
2020-06-30 10:16:44 +02:00
----
class MyClass {
private int myField;
}
----
== Resources
=== Documentation
* Oracle - https://www.oracle.com/java/technologies/javase/codeconventions-namingconventions.html[Java SE Naming Conventions]
* Geeksforgeeks - https://www.geeksforgeeks.org/java-naming-conventions/[Java Naming Conventions]
* Wikipedia - https://en.wikipedia.org/wiki/Naming_convention_(programming)[Naming Convention (programming)]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../parameters.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]