Skip to main content
Participant
September 22, 2009
Answered

Is there a way to suppress warnings in FlexPMD?

  • September 22, 2009
  • 1 reply
  • 6317 views

In PMD there is the @SuppressWarnings java annotation that can be used to suppress all or individual warnings in a class. Is there anything similar that can be added in an AS or MXML file with FlexPMD?

This topic has been closed for replies.
Correct answer Xavier Agnetti

So there is a way to suppress one or all violations in a given line by appending // NO PMD or // NO PMD ruleName

There is no way at the moment to ignore every violation at a class level, or function level using metadata.

Feel free to add a feature request if you think it is needed.

Xavier

1 reply

Xavier AgnettiCorrect answer
Adobe Employee
September 23, 2009

So there is a way to suppress one or all violations in a given line by appending // NO PMD or // NO PMD ruleName

There is no way at the moment to ignore every violation at a class level, or function level using metadata.

Feel free to add a feature request if you think it is needed.

Xavier

Participant
September 23, 2009

Thanks Xavier. That worked well.

Adobe Employee
September 23, 2009

Glad to hear that.

To be more accurate, // NO PMD ruleName has been added in Rc4, that has been released today

Cheers,

Xavier