I am primarily a Java developer. I have learned a lot of Groovy, and keep learning more every day. One challenge I have is validating my code reliably. Static analysis tools are abundant in the Java world, and I have even located one for Groovy that is a plug-in for Microsoft VSCode.
What are you guys using to validate your code, and check for common mistakes in code? The generic Groovy linters are not well adapted for Hubitat or ST development given that our groovy files are not true groovy from what I can tell, but rather a type of object class definition supplemented with concrete functions.
This makes it challenging, since the preferences, and metadata create weird behavior in the linter. In addition, the general use of "def" for defining a function or variable loosely results in a lot of warning in the linter. Sure, I can ignore a lot of these, but I am curious what others are using.