rspec/rules/S3419/java/rule.adoc

28 lines
489 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Shared naming conventions allow teams to collaborate effectively. This rule raises an issue when the a pom's ``++groupId++`` does not match the provided regular expression.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
With the default regular expression: ``++(com|org)(\.[a-z][a-z-0-9]*)+++``
----
<project ...>
<groupId>myCo</groupId> <!-- Noncompliant -->
<!-- ... -->
</project>
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
<project ...>
<groupId>com.myco</groupId>
<!-- ... -->
</project>
----