rmuir commented on PR #14808: URL: https://github.com/apache/lucene/pull/14808#issuecomment-2985574748
Thank you @dweiss, I was just slow, was testing it out. I set the property locally, and added rule and test: ```yaml --- # yaml-language-server: $schema=https://raw.githubusercontent.com/ast-grep/ast-grep/refs/heads/main/schemas/rule.json id: java-syntax language: java rule: kind: ERROR message: Syntax Error severity: error ``` ```yaml --- # test the parser is working id: java-syntax valid: - x = 1; ``` I introduced bogus syntax to a file and the build then failed quickly on the problem (it is just an example and we probably should not do this): ``` > Task :testAstGrepRules Running 1 tests ----------- Case Details ----------- PASS java-syntax . test result: ok. 1 passed; 0 failed; > Task :applyAstGrepRules error[java-syntax]: Syntax Error ┌─ lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java:145:50 │ 145 │ public List<LeafReaderContext> getLeafContexts([) { │ ^ Error: 1 error(s) found in code. Help: Scan succeeded and found error level diagnostics in the codebase. > Task :applyAstGrepRules FAILED ``` -- 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