Add an explicit comment about CPD being brain-dead 39/43239/2
authorRobert Varga <rovarga@cisco.com>
Fri, 5 Aug 2016 14:57:40 +0000 (16:57 +0200)
committerRobert Varga <rovarga@cisco.com>
Fri, 5 Aug 2016 15:05:21 +0000 (17:05 +0200)
This is a follow-up to the reverted CPD commit. Appropriate
configuration is added to mdsal's binding parent.

Change-Id: I38616d2e1b7e4340d31bb977d07c2e7858a352ca
Signed-off-by: Robert Varga <rovarga@cisco.com>
odlparent/pom.xml

index 9bd013d2bcc5fd9eee39d043d67e040127616fd1..b3ea8744bea1e381f9e0f2203331c34d88215bb1 100644 (file)
                 <minimumTokens>101</minimumTokens>
                 <printFailingErrors>true</printFailingErrors>
                 <excludeRoots>
-                  <excludeRoot>${basedir}/target/generated-sources/mdsal-binding</excludeRoot>
+                  <!-- FIXME: this should be a wildcard, but PMD is brain-damaged and does
+                              not understand path prefixes nor wildcards. Details are available
+                              at http://stackoverflow.com/questions/15647771/pmd-exclude-not-working
+                              Hence people introducing new generated sources have to include
+                              PMD config too.
+                   -->
+                  <excludeRoot>${basedir}/target/generated-sources</excludeRoot>
                 </excludeRoots>
                 <linkXRef>false</linkXRef>
               </configuration>