49 lines
830 B
Plaintext
49 lines
830 B
Plaintext
Shared naming conventions allow teams to collaborate effectively. This rule raises an issue when a pom's ``++artifactId++`` does not match the provided regular expression.
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
With the default regular expression: ``++[a-z][a-z-0-9]+++``
|
|
|
|
[source,xml]
|
|
----
|
|
<project ...>
|
|
<artifactId>My_Project</artifactId> <!-- Noncompliant -->
|
|
|
|
<!-- ... -->
|
|
</project>
|
|
----
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
[source,xml]
|
|
----
|
|
<project ...>
|
|
<artifactId>my-project</artifactId>
|
|
|
|
<!-- ... -->
|
|
</project>
|
|
----
|
|
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::message.adoc[]
|
|
|
|
include::parameters.adoc[]
|
|
|
|
include::highlighting.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::comments-and-links.adoc[]
|
|
endif::env-github,rspecator-view[]
|