Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I couldn't find a default pmd.xml file anywhere, so I just used the <a href="http://opensource.adobe.com/svn/opensource/flexpmd/bin/flex-pmd-ruleset-creator.html" rel="nofollow noreferrer">Adobe Flex PMD Ruleset creator</a> and then exported the default set of rules.</p> <p>[edited to add]</p> <p>My project was running using ANT and Hudson so I just put it in the root of that.</p> <p>However, to properly test this out using TextMate I copied my project to match the following <a href="http://github.com/simongregory/flexpmd.tmbundle" rel="nofollow noreferrer">documented conditions</a>:</p> <p>"The bundle is currently experimental, as such it expects the following:</p> <ul> <li>Source files to be in a saved TextMate project.</li> <li>ActionScript and MXML source files to be in a directory named 'src'"</li> </ul> <p>I then copied my pmd config file into the project root, opened it, and ran the FlexPMD 'Project' option.</p> <p>This gave the illusion of using my file, so I renamed the file and deleted all but one rule to prove it wasn't being used.</p> <p>The TextMate FlexPMD bundle documentation mentions:</p> <ul> <li>To specify a custom ruleset specify it's path using the env var TM_FLEXPMD_RULESET.</li> </ul> <p>So I rather than create a global variable which would affect all projects, I created a <a href="http://manual.macromates.com/en/environment_variables.html" rel="nofollow noreferrer">project dependent variable</a> by:</p> <blockquote> <p>The way to do this is currently a little secret but if you deselect everything in the project drawer, then click the info (circled I) button, a panel will appear where you can set variables.</p> </blockquote> <p>So my variable was <code>TM_FLEXPMD_RULESET</code> with the value <code>pmd_rules.xml</code></p> <p>When I then ran the FlexPMD 'Project' option, only one rule was being run.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload