35 lines
624 B
Plaintext
35 lines
624 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>
|
|
----
|
|
|
|
|
|
|
|
ifdef::rspecator-view[]
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::comments-and-links.adoc[]
|
|
endif::rspecator-view[]
|