We have an Android/Blackberry project with a common part. That part, obviously, is written to compile to both Android and Blackberry targets, and, consequently, cannot use some of the newer Java features (e.g., Integer.valueOf). I’d like to skip some of the rules specifically for that part. Is there a way to do this?
We have an Android/Blackberry project with a common part. That part, obviously, is written
Share
If you separate the common part to an own project you can add a new Quality Profile in Sonar (where you deactivated these rules) and assign it to your common project.
Apart from that you can use the
comment to supress a warning on a single line (see FAQ).