Skip to main content
Participant
Sep 22, 2009 9:25 PM UTC
Answered

Is there a way to suppress warnings in FlexPMD?

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 is closed to new replies. Start a new post to keep the conversation going.
Xavier AgnettiCorrect answer
Inspiring
Sep 23, 2009 6:24 AM UTC

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

8 replies

Xavier AgnettiCorrect answer
Inspiring
Sep 23, 2009 6:24 AM UTC

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

Translate
Participant
Sep 23, 2009 2:18 PM UTC

Thanks Xavier. That worked well.

Translate
Inspiring
Sep 23, 2009 2:45 PM UTC

Glad to hear that.

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

Cheers,

Xavier

Translate