JamesMGreene / grunt-flexpmd

A Grunt task plugin for running FlexPMD to lint/analyze apps built on Adobe Flex/ActionScript/MXML/Flash/AIR/etc. Think of it as "ASLint"/"FlexLint".
MIT License
3 stars 5 forks source link

Reporting is intermittently flaky #1

Open JamesMGreene opened 10 years ago

JamesMGreene commented 10 years ago

Sometimes when running FlexPMD over multiple files, I don't receive any violations. However, if a single violation is added, I receive other unrelated violations that existed before but didn't show up.

I suspect that perhaps they are "warnings" vs. "errors"/"violations" or something like that, so the code that does handles consuming the report may need to be updated to consider more conditions in the XML.

If that's not the case, then perhaps FlexPMD is just unreliable and needs to be run on a single file instead of against a whole directory, i.e. so make a temporary dir for each file and run flexpmd against each one individually internally.

JamesMGreene commented 9 years ago

Maybe take a look at FlashDevelop's FlexPMD plugin code: http://www.libspark.org/browser/csharp/FlashDevelop/plugin/FlexPMDPlugin/trunk/Pmd/FlexPMD.cs?rev=3089http://www.libspark.org/browser/csharp/FlashDevelop/plugin/FlexPMDPlugin/trunk/Pmd/FlexPMD.cs