I currently played through the Custom Rules 101 and it worked great (havent imported it into our project yet though)
But now I wanted to create my first actual rule which is about analyzing the annotations a method has and whats inside the brackets of this annotation.
ive found that inside of SymbolMetadata.java there is “isAnnotatedWith” and “valuesForAnnotation” but I dont quite understand where to get the content of the brackets of an anotation.
To specify I want to check for @Transactional and see if it has "rollbackFor = " inside the brackets.
A nother question following up:
Is there a blank template which has all necessary classes built in, where you just would need to add the classes described in the tutorial. Because the Custom Rules 101 template has a lot of stuff and rules already built in, which I dont need.