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

Building custom ruleset

Engaged ,
Mar 23, 2010 Mar 23, 2010

Copy link to clipboard

Copied

Is there a template that can be copied and tweaked based on the FlexPMD default ruleset?  The default ruleset seems to be geared towards applications rather than library/framework development and we'd like to tweak the rules so we can get a better picture of what we need to look at adjusting on the FlexUnit project.  FWIW, we've got our new sets of builds setup with FlexPMD, FlexCPD, and FlexMetrics on Hudson.  You can see an example @ http://flexunit.digitalprimates.net:8080/view/Flex%203.5/job/Demo-Versioned-Build/.

Any help is appreciated.

-Brian

TOPICS
FlexPMD

Views

1.2K

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 ,
Mar 23, 2010 Mar 23, 2010

Copy link to clipboard

Copied

You can tweak the default ruleset with this tool... http://opensource.adobe.com/svn/opensource/flexpmd/bin/flex-pmd-ruleset-creator.html

Clint Modien

AIM\Y!M. cmodien

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
Engaged ,
Mar 27, 2010 Mar 27, 2010

Copy link to clipboard

Copied

@Clint - Sorry it took so long to get back to you.  Tried out the suggested tool, exported the file, and changed my call to look like the following:

<pmd sourceDirectory="${src.loc}" outputDirectory="${report.loc}" ruleset="${basedir}/pmd-ruleset.xml" />

After a test run, I got the following error followed by a stacktrace:

Couldn't find that class com.adobe.ac.pmd.rules.asdocs.AttributeAsDocMissingRule

Is this version of the tool missing rules for FlexPMD 1.0?  Is there anyway I can just edit a copy of the ruleset used by default by the task?  Any help is appreciated.

-Brian

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
Adobe Employee ,
Mar 27, 2010 Mar 27, 2010

Copy link to clipboard

Copied

Hi Brian,

The AttributeAsDocMissingRule is a new rule created for FlexPMD 1.1, released yesterday.

So you will need to get the latest bits to be get working this, or you need to remove the reference to this rule in the exported ruleset.

Best,

Xavier

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
Engaged ,
Mar 27, 2010 Mar 27, 2010

Copy link to clipboard

Copied

LATEST

@Xavier - Great to hear.  I'll upgrade the FlexUnit4 builds to use 1.1 and see if we can maybe get Sonar into the

mix.  Thanks for the help.

-Brian

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