uschindler commented on PR #13227:
URL: https://github.com/apache/lucene/pull/13227#issuecomment-2022932644

   > @uschindler How can i exclude the org.tartarus code from this check (or 
really all checks) without touching it?
   > 
   > ```
   > Forbidden method invocation: java.util.Arrays#copyOf(**) [Prefer using 
ArrayUtil as Arrays#copyOf fills zeros for bad bounds]
   > > Task :lucene:analysis:common:forbiddenApisMain FAILED
   >   in org.tartarus.snowball.SnowballProgram (SnowballProgram.java:337)
   > Scanned 653 class file(s) for forbidden API invocations (in 0.81s), 1 
error(s).
   > ```
   
   Yes you can, something like that in forbiddenapis.gradle:
   
   ```
   allprojects { prj ->
     plugins.withId("java", {
        //.....
       if (prj.path==:lucene:analysis:common') {
         forbiddenApisMain.exclude('org/tartarus/**')
       }
       //....
     }
   }
   ```


-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to