Skip to main content
Participant
August 5, 2010
Answered

Suppressing flexPMD

  • August 5, 2010
  • 2 replies
  • 1213 views

I am trying to suppress flexPMD warnings in my applicaiton. I am using flex1.1 and i already tried

// NO PMD rule name and other suggestions but it doesnt work. Would like some help on this topic. Is it because // no pmd command is not compatible with flexpmd 1.1 or it has been changed to something else.

I dont want to exclude rule as i need them in some serious cases and i would like to supress remaining warnings

Nachiket

This topic has been closed for replies.
Correct answer TomSchober

@ nachiket_1985: Have you tried "// NO PMD UnusedField"?

If you curious about how the NO PMD comments will be parsed in the next release (1.2) see here:

https://bugs.adobe.com/jira/browse/FLEXPMD-180

2 replies

Participant
August 5, 2010

@Clint and @Tom

got it working guys... i was not following the instructions about the exact format.

Thanks

clintmodien
Known Participant
August 5, 2010

Works for me in 1.1

it must be exactly in the form of... // NO PMD

And it doesn't work in mxml files for mxml there is currently no solution

Participant
August 5, 2010

private var HELP:String = MyClass.getInstance().getString("baseImageDialog","Help_String");// NO PMD

this is my code line with // NO PMD as you said exacctly in same form and still gives me the error in form any suggestion on this ?

error is UnusedField

i cant remove this from my app as i have few functions coming up which wil use this as base...

Nachiket

TomSchober
TomSchoberCorrect answer
Participant
August 5, 2010

@ nachiket_1985: Have you tried "// NO PMD UnusedField"?

If you curious about how the NO PMD comments will be parsed in the next release (1.2) see here:

https://bugs.adobe.com/jira/browse/FLEXPMD-180