Is there an existing rule that allows one to disallow the use of specific packages and/or java classes?
For instance, if I wanted to disallow the use of java.sqlStatement (I know there is already a specific to PreparedStatement… this is just an example)
Or another example would be for projects that are using SLF4J, disallow the use of log4j packages.
In the past this could be accomplished via a custom rule. Is it possible to accomplish this in SonarCloud?
When tracking disallowed classes (S3688), you can use regular expressions, such as: java.lang\..* to cover a family of classes based on their fully qualified names.