You cannot do this by default. However, you can implement your own validation that validates these methods.
The first option is to use Miscellaneous-> Regexp. This is obviously only possible if you can find violations with regex. You will need to set illegalPattern = true. I think it would be nice to start.
The second option is to create your own validation. See Writing Checks .
There are restrictions on writing checkers. The first and most important is that you cannot see other files. There is no cross validation. On the site:
- You cannot determine the type of expression.
- You cannot see the contents of other files. (although you can save processed files for later use)
This means that you cannot perform some code verification that is available in modern IDEs such as IntelliJ IDEA. For example, you will not be able to perform a check that detects type redundancy or unused public methods.
Thus, you cannot verify, for example, that Java calls a single method that has an alternative to the language. You can use a blacklist of methods that you cannot call. So, for example, calls to the new FileWriter () will check the number of passed parameters or the like.
Matthew farwell
source share