SonarQube Custom Java Checks
This project provides a few simple checks for Java to demonstrate the
implementation and use of custom rules in SonarQube.
NullableReturnCheck
- Shows an issue on INFO
level to the developerjava.util.Optional
or io.vavr.control.Option
NullnessAnnotationCheck
- Forbids the use of any nullness annotationsVavrPublicSignatureCheck
- Forbid the use of vavr.ioCheck the setup page to
get a brief overview of how to install this plugin.
It seems that Sonar is not able to catch type annotations. Both theNullnessAnnotationCheck
as well as the OOTB template “Track uses of
disallowed classes“ are not able to match the use of a forbidden annotation.