• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Suppressing flexPMD

New Here ,
Aug 05, 2010 Aug 05, 2010

Copy link to clipboard

Copied

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

TOPICS
FlexPMD

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Aug 05, 2010 Aug 05, 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

Votes

Translate

Translate
Community Beginner ,
Aug 05, 2010 Aug 05, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 05, 2010 Aug 05, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 05, 2010 Aug 05, 2010

Copy link to clipboard

Copied

@ 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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 05, 2010 Aug 05, 2010

Copy link to clipboard

Copied

LATEST

@Clint and @Tom

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

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines