ctubbsii commented on code in PR #15:
URL: 
https://github.com/apache/accumulo-classloaders/pull/15#discussion_r1073133930


##########
pom.xml:
##########
@@ -340,11 +350,19 @@
                   </module>
                   <module name="RegexpSinglelineJava">
                     <property name="format" 
value="junit[.]framework[.]TestCase" />
-                    <property name="message" value="Use JUnit4+ @Test 
annotation instead of TestCase" />
+                    <property name="message" value="Use JUnit5+ @Test 
annotation instead of TestCase" />
+                  </module>
+                  <module name="RegexpSinglelineJava">
+                    <property name="format" value="org[.]junit[.][^jupiter]" />
+                    <property name="message" value="Use JUnit5 (JUnit Jupiter) 
instead of JUnit4 (or lower)" />

Review Comment:
   I don't think that's the correct regex. That is a character set negation, 
not a negative lookaround. I think you're trying to go for:
   
   ```suggestion
                       <property name="format" 
value="org[.]junit[.](?!jupiter)" />
                       <property name="message" value="Use JUnit5 (JUnit 
Jupiter) instead of JUnit4 (or lower)" />
   ```
   
   However, I don't know if that works.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to