rspec/rules/S3505/java/rule.adoc

39 lines
907 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
There is no need to declare the same dependency or plugin twice in a project. In fact, doing so is likely to cause errors in the future when maintainers try to change or upgrade the plugin or dependency.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
<dependency>
<groupId>com.mygroup</groupId>
<artifactId>myartifact</artifactId>
<version>1.0</version>
<scope>runtime</scope>
</dependency>
<!-- ... -->
<dependency> <!-- Noncompliant -->
<groupId>com.mygroup</groupId>
<artifactId>myartifact</artifactId>
<version>1.0</version>
<type>jar</type>
</dependency>
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
include::highlighting.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]