risdenk commented on code in PR #14216: URL: https://github.com/apache/lucene/pull/14216#discussion_r1947419002
########## gradle/validation/error-prone.gradle: ########## @@ -65,6 +65,50 @@ allprojects { prj -> return } + // Exclude certain files (generated ones, mostly). + switch (project.path) { + case ":lucene:core": + options.errorprone.excludedPaths.set(".*/StandardTokenizerImpl.java") + break + + case ":lucene:analysis:common": + options.errorprone.excludedPaths.set("" + + ".*/HTMLStripCharFilter.java|" + + ".*/UAX29URLEmailTokenizerImpl.java") + break + + case ":lucene:test-framework": + options.errorprone.excludedPaths.set("" + + ".*/EmojiTokenizationTestUnicode_11_0.java|" + + ".*/WordBreakTestUnicode_9_0_0.java") + break + + case ":lucene:expressions": + break + + case ":lucene:queryparser": + options.errorprone.excludedPaths.set("" + Review Comment: This tries to avoid checking all the generated code. The list was taken from the Spotless module and modified into regex form. -- 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