rspec/rules/S3419/rule.adoc
2021-01-27 13:42:22 +01:00

28 lines
489 B
Plaintext

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.
== Noncompliant Code Example
With the default regular expression: ``++(com|org)(\.[a-z][a-z-0-9]*)+++``
----
<project ...>
<groupId>myCo</groupId> <!-- Noncompliant -->
<!-- ... -->
</project>
----
== Compliant Solution
----
<project ...>
<groupId>com.myco</groupId>
<!-- ... -->
</project>
----