PHP - Ability to suppress warnings in source code

510 views
Skip to first unread message

david....@investopedia.com

unread,
Jul 21, 2016, 4:01:25 PM7/21/16
to SonarQube
Am looking for a way to suppress specific warnings in our source code much like the Java Plugin (http://docs.sonarqube.org/display/PLUG/Java+Plugin)

I know about the NOSONAR usage and it works - but it also all encompassing and will suppress other errors.

An example is my current class is over the 200 line limit and I want to suppress it for this class.

something like:

/**
* Class PageTemplateTests
* @SuppressWarnings("php:S2042")
*/
class PageTemplateTests extends BaseTest {

vilchi...@gmail.com

unread,
Oct 10, 2016, 3:58:11 AM10/10/16
to SonarQube
Hello,

These are the options provided by SQ:
 2) mark issue as "won't fix" in SQ UI

I don't think there will be a feature similar to Java in PHP plugin. 

Elena VILCHIK | SonarSource
Language Team
Reply all
Reply to author
Forward
0 new messages