rspec/rules/S3417/java/rule.adoc
Dorian Burihabwa 1cc6413fc3 Revert "MMF-2326 Move Java rules targeting XML from Java to XML category"
This reverts commit b20fe5c6c9f3793bdc761bb3d31a839eee31cddd.
2021-08-03 16:56:14 +02:00

27 lines
657 B
Plaintext

Whether they are disallowed locally for security, license, or dependability reasons, forbidden dependencies should not be used.
This rule raises an issue when the group or artifact id of a direct dependency matches the configured forbidden dependency pattern.
== Noncompliant Code Example
With a parameter of: ``++*:.*log4j.*++``
----
<dependency> <!-- Noncompliant -->
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]