rmuir commented on code in PR #14812:
URL: https://github.com/apache/lucene/pull/14812#discussion_r2156626300


##########
gradle/validation/ast-grep/rules/java-patterns.yml:
##########
@@ -0,0 +1,24 @@
+# Banned Lucene source patterns
+# Historically implemented as regexes which are more difficult
+---
+# yaml-language-server: 
$schema=https://raw.githubusercontent.com/ast-grep/ast-grep/refs/heads/main/schemas/java_rule.json
+id: java-lang-import
+language: java
+rule:
+  pattern: import java.lang.$REF
+  kind: import_declaration
+fix: ""

Review Comment:
   just nvim + lang server. the ast-grep lang-server will provide diagnostics 
and code action fixes.
   
   you can get similar setup easily / without hassle with just vscode + lang 
server. the help/IDEs has the setup procedure. In this case you would also want 
to install and configure ast-grep extension.



-- 
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