flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [46/46] git commit: [flex-utilities] [refs/heads/develop] - FlexPMD Donation from Adobe Systems Inc
Date Fri, 25 Apr 2014 06:18:45 GMT
FlexPMD Donation from Adobe Systems Inc


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/b0fc5f17
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/b0fc5f17
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/b0fc5f17

Branch: refs/heads/develop
Commit: b0fc5f172e17347b7cbb2709adbd8baf47554a29
Parents: a52655a
Author: Alex Harui <aharui@apache.org>
Authored: Thu Apr 24 23:16:51 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu Apr 24 23:16:51 2014 -0700

----------------------------------------------------------------------
 FlexPMD/as3-parser-api/.pmd                     |   25 +
 FlexPMD/as3-parser-api/pom.xml                  |   32 +
 .../com/adobe/ac/pmd/parser/IAS3Parser.java     |   47 +
 .../com/adobe/ac/pmd/parser/IParserNode.java    |   90 +
 .../java/com/adobe/ac/pmd/parser/KeyWords.java  |   88 +
 .../java/com/adobe/ac/pmd/parser/NodeKind.java  |  137 +
 .../java/com/adobe/ac/pmd/parser/Operators.java |  101 +
 .../parser/exceptions/NullTokenException.java   |   33 +
 .../pmd/parser/exceptions/TokenException.java   |   32 +
 .../exceptions/UnExpectedTokenException.java    |   55 +
 .../com/adobe/ac/pmd/parser/KeyWordsTest.java   |   31 +
 .../com/adobe/ac/pmd/parser/NodeKindTest.java   |   31 +
 .../com/adobe/ac/pmd/parser/OperatorsTest.java  |   33 +
 .../parser/exceptions/FlexPmdExceptionTest.java |   50 +
 FlexPMD/as3-parser/.pmd                         |   25 +
 FlexPMD/as3-parser/pom.xml                      |   46 +
 .../de/bokelberg/flex/parser/AS3Parser.java     | 2360 ++++++++++++++++++
 .../de/bokelberg/flex/parser/AS3Scanner.java    |  898 +++++++
 .../de/bokelberg/flex/parser/NestedNode.java    |  224 ++
 .../java/de/bokelberg/flex/parser/Node.java     |  168 ++
 .../flex/parser/AbstractAs3ParserTest.java      |   98 +
 .../flex/parser/AbstractStatementTest.java      |   36 +
 .../bokelberg/flex/parser/NestedNodeTest.java   |   91 +
 .../java/de/bokelberg/flex/parser/NodeTest.java |   57 +
 .../de/bokelberg/flex/parser/TestAS3Parser.java |   75 +
 .../bokelberg/flex/parser/TestAS3Scanner.java   |  362 +++
 .../flex/parser/TestAS3ScannerWithFiles.java    |   92 +
 .../de/bokelberg/flex/parser/TestClass.java     |  144 ++
 .../bokelberg/flex/parser/TestClassContent.java |  307 +++
 .../flex/parser/TestCompilationUnit.java        |   90 +
 .../flex/parser/TestConstStatement.java         |   67 +
 .../bokelberg/flex/parser/TestDoStatement.java  |   61 +
 .../flex/parser/TestE4xExpression.java          |   46 +
 .../flex/parser/TestEmptyStatement.java         |   42 +
 .../bokelberg/flex/parser/TestExpression.java   |  204 ++
 .../bokelberg/flex/parser/TestForStatement.java |  101 +
 .../bokelberg/flex/parser/TestIfStatement.java  |  136 +
 .../de/bokelberg/flex/parser/TestInterface.java |   76 +
 .../flex/parser/TestInterfaceContent.java       |   96 +
 .../flex/parser/TestPackageContent.java         |  220 ++
 .../flex/parser/TestPrimaryExpression.java      |  114 +
 .../flex/parser/TestReturnStatement.java        |   70 +
 .../flex/parser/TestSwitchStatement.java        |   52 +
 .../parser/TestTryCatchFinallyStatement.java    |   58 +
 .../flex/parser/TestUnaryExpression.java        |  132 +
 .../bokelberg/flex/parser/TestVarStatement.java |  126 +
 .../flex/parser/TestWhileStatement.java         |   67 +
 .../src/test/resources/examples/Enum.as         |   84 +
 .../src/test/resources/examples/FisheyeBase.as  |  564 +++++
 .../src/test/resources/examples/FlexPMD115.as   |   22 +
 .../src/test/resources/examples/FlexPMD195.as   |   51 +
 .../src/test/resources/examples/FlexPMD62.as    |   35 +
 .../src/test/resources/examples/FlexPMD98.as    |  440 ++++
 .../src/test/resources/examples/JPEGEncoder.as  |  669 +++++
 .../src/test/resources/examples/JPEGEncoder2.as |  671 +++++
 .../toAS2/src/fw/data/request/ResultListener.as |   27 +
 .../resources/examples/unformatted/IContext.as  |   83 +
 .../resources/examples/unformatted/Simple.as    |   19 +
 .../resources/examples/unformatted/Title.as     |   32 +
 FlexPMD/as3-plugin-utils/pom.xml                |   34 +
 .../com/adobe/ac/ncss/filters/FlexFilter.java   |   44 +
 .../java/com/adobe/ac/ncss/utils/FileUtils.java |  197 ++
 .../main/java/com/adobe/ac/pmd/LoggerUtils.java |   44 +
 .../com/adobe/ac/utils/StackTraceUtils.java     |   59 +
 .../src/main/resources/logger.properties        |   22 +
 .../com/adobe/ac/ncss/utils/TestFileUtils.java  |   83 +
 .../com/adobe/ac/utils/StackTraceUtilsTest.java |   45 +
 .../adobe/ac/ncss/flexunit/AbstractRowData.as   |  115 +
 .../adobe/ac/ncss/flexunit/FilterTestsModel.as  |   74 +
 .../com/adobe/ac/ncss/flexunit/TestCaseData.as  |  139 ++
 .../ac/ncss/flexunit/TestFunctionRowData.as     |  217 ++
 .../flexunit/TestRunnerBasePresentationModel.as |  315 +++
 .../flexunit/filter/AllTestFunctionStatus.as    |   36 +
 .../flexunit/filter/EmptyTestFunctionStatus.as  |   36 +
 .../flexunit/filter/ErrorTestFunctionStatus.as  |   36 +
 .../ncss/flexunit/filter/ITestFunctionStatus.as |   28 +
 .../flexunit/filter/TestfFunctionStatuses.as    |   32 +
 .../com/adobe/ac/ncss/mxml/IterationView.mxml   |  105 +
 .../com/adobe/ac/ncss/mxml/IterationsList.mxml  |   61 +
 FlexPMD/custom-ruleset/build.xml                |   41 +
 FlexPMD/custom-ruleset/maven-build.properties   |   35 +
 FlexPMD/custom-ruleset/maven-build.xml          |  622 +++++
 FlexPMD/custom-ruleset/pom.xml                  |   64 +
 .../flexpmd/custom/MonkeyPatchingRule.java      |   72 +
 .../flexpmd/custom/MonkeyPatchingRuleTest.java  |   45 +
 .../src/test/resources/test/AbstractRowData.as  |  136 +
 .../test/resources/test/AbstractRowData.mxml    |   44 +
 .../src/test/resources/test/BadComponent.as     |   43 +
 .../src/test/resources/test/Color.as            |   29 +
 .../src/test/resources/test/DefaultNameEvent.as |   36 +
 .../resources/test/DeleteButtonRenderer.mxml    |  101 +
 .../src/test/resources/test/ErrorToltipSkin.as  |  317 +++
 .../src/test/resources/test/GenericType.as      |   37 +
 .../src/test/resources/test/GoodComponent.as    |   51 +
 .../test/LinkButtonExample_Exception.mxml       |   38 +
 .../src/test/resources/test/Looping.as          |   68 +
 .../src/test/resources/test/Main.mxml           |   45 +
 .../resources/test/MainWithModelLocator.mxml    |   42 +
 .../resources/test/MainWithNoCopyright.mxml     |   22 +
 .../src/test/resources/test/PngEncoder.as       |  617 +++++
 .../src/test/resources/test/RadonDataGrid.as    |  200 ++
 .../src/test/resources/test/Responder.as        |   36 +
 .../src/test/resources/test/Simple.as           |   19 +
 .../src/test/resources/test/SkinStyles.as       |   65 +
 .../src/test/resources/test/Sorted.as           |   62 +
 .../src/test/resources/test/Title.as            |   33 +
 .../src/test/resources/test/UnboundMetadata.as  |   41 +
 .../src/test/resources/test/WorkEvent.as        |  205 ++
 .../test/resources/test/asDocs/EmptyClass.as    |   38 +
 .../resources/test/asDocs/EmptyWithDocClass.as  |   51 +
 .../src/test/resources/test/bug/Duane.mxml      |  154 ++
 .../src/test/resources/test/bug/FlexPMD115.as   |   30 +
 .../test/resources/test/bug/FlexPMD141a.mxml    |   32 +
 .../test/resources/test/bug/FlexPMD141b.mxml    |   34 +
 .../src/test/resources/test/bug/FlexPMD157.as   |   33 +
 .../src/test/resources/test/bug/FlexPMD173.as   |   40 +
 .../src/test/resources/test/bug/FlexPMD181.as   | 2344 +++++++++++++++++
 .../src/test/resources/test/bug/FlexPMD61.as    |   42 +
 .../src/test/resources/test/bug/FlexPMD62.as    |   35 +
 .../src/test/resources/test/bug/FlexPMD88.as    |   41 +
 .../src/test/resources/test/bug/FlexPMD97.as    |   31 +
 .../src/test/resources/test/bug/Nico.as         |   30 +
 .../src/test/resources/test/bug/Security.as     |   36 +
 .../test/cairngorm/BindableModelLocator.as      |   23 +
 .../resources/test/cairngorm/FatController.as   |  183 ++
 .../resources/test/cairngorm/LightController.as |  201 ++
 .../test/cairngorm/NonBindableModelLocator.as   |   54 +
 .../cairngorm/events/CorrectConstantEvent.as    |   45 +
 .../cairngorm/events/CorrectConstructorEvent.as |   38 +
 .../cairngorm/events/UncorrectConstantEvent.as  |   40 +
 .../events/UncorrectConstructorEvent.as         |   38 +
 .../test/com/adobe/ac/AbstractRowData.as        |  118 +
 .../src/test/resources/test/com/adobe/ac/foo.as |   22 +
 .../resources/test/com/adobe/ac/ncss/ArrayVO.as |   46 +
 .../test/com/adobe/ac/ncss/BigImporterModel.as  |   78 +
 .../test/com/adobe/ac/ncss/BigModel.as          |   90 +
 .../test/com/adobe/ac/ncss/ConfigProxy.as       |   50 +
 .../test/com/adobe/ac/ncss/LongSwitch.as        |  132 +
 .../com/adobe/ac/ncss/MyCairngormCommand.as     |   30 +
 .../test/com/adobe/ac/ncss/NestedSwitch.as      |   59 +
 .../test/com/adobe/ac/ncss/SearchBarEvent.as    |   34 +
 .../test/com/adobe/ac/ncss/VoidConstructor.as   |   37 +
 .../adobe/ac/ncss/event/DynamicCustomEvent.as   |   35 +
 .../com/adobe/ac/ncss/event/FirstCustomEvent.as |   30 +
 .../adobe/ac/ncss/event/SecondCustomEvent.as    |   28 +
 .../com/adobe/ac/ncss/mxml/IterationsList.mxml  |   90 +
 .../com/adobe/ac/ncss/mxml/IterationsList2.mxml |   44 +
 .../com/adobe/ac/ncss/mxml/NestedComponent.mxml |   43 +
 .../adobe/cairngorm/work/SequenceWorkFlow.as    |   19 +
 .../src/test/resources/test/empty/Empty.as      |   18 +
 .../src/test/resources/test/empty/Empty.mxml    |   18 +
 .../src/test/resources/test/filters/MyPopup.as  |   28 +
 .../test/resources/test/filters/MyPopup.mxml    |   32 +
 .../test/resources/test/flexpmd114/a/Test.as    |   39 +
 .../test/resources/test/flexpmd114/b/Test.as    |   35 +
 .../test/resources/test/flexpmd114/c/Test.as    |   35 +
 .../test/resources/test/flexunit/RaoulTest.as   |   69 +
 .../test/resources/test/flexunit/RulesetTest.as |   62 +
 .../test/resources/test/fu/main/flex/Main.mxml  |   22 +
 .../fu/main/flex/TestRunnerApplication.mxml     |   50 +
 .../test/resources/test/fu/test/flex/MySuite.as |   26 +
 .../test/resources/test/fu/test/flex/MyTest.as  |   46 +
 .../test/functional/FunctionalClient.as         |   29 +
 .../functional/func1/api/Func1ExposedClass.as   |   29 +
 .../func1/restricted/Func1RestrictedClass.as    |   29 +
 .../functional/func2/api/Func2ExposedClass.as   |   28 +
 .../func2/restricted/Func2RestrictedClass.as    |   28 +
 .../resources/test/mx/controls/DateChooser2.as  |   25 +
 .../org/as3commons/concurrency/thread/Color.as  |   25 +
 .../test/parsley/InaccessibleMetaData.as        |   53 +
 .../InaccessibleMetaDataInternalClass.as        |   25 +
 .../test/parsley/MessageInterceptorSignature.as |   47 +
 .../test/parsley/MismatchedManagedEvent.as      |   28 +
 .../resources/test/parsley/MisplacedMetaData.as |   65 +
 .../RedundantMessageHandlerTypeAttribute.as     |   35 +
 .../test/parsley/RedundantMethodAttribute.as    |   35 +
 .../test/parsley/UnknownMetaDataAttribute.as    |   32 +
 .../test/resources/test/schedule_internal.as    |   22 +
 FlexPMD/flex-pmd-ant-task/.pmd                  |   25 +
 FlexPMD/flex-pmd-ant-task/pom.xml               |  177 ++
 .../flex-pmd-ant-task/src/main/assemble/bin.xml |   38 +
 .../com/adobe/ac/pmd/ant/FlexPmdAntTask.java    |  119 +
 .../adobe/ac/pmd/ant/FlexPmdAntTaskTest.java    |   82 +
 FlexPMD/flex-pmd-automator-workflow/pom.xml     |   56 +
 .../src/main/assembly/workflow.xml              |   46 +
 .../Contents/QuickLook/Preview.pdf              |  Bin 0 -> 86091 bytes
 .../Contents/document.wflow                     |  545 ++++
 FlexPMD/flex-pmd-bundles/pom.xml                |  129 +
 FlexPMD/flex-pmd-command-line-api/.pmd          |   25 +
 FlexPMD/flex-pmd-command-line-api/pom.xml       |   41 +
 .../com/adobe/ac/pmd/CommandLineOptions.java    |   39 +
 .../java/com/adobe/ac/pmd/CommandLineUtils.java |   58 +
 .../com/adobe/ac/pmd/ICommandLineOptions.java   |   22 +
 .../adobe/ac/pmd/CommandLineOptionsTest.java    |   31 +
 .../com/adobe/ac/pmd/CommandLineUtilsTest.java  |   58 +
 FlexPMD/flex-pmd-command-line/.pmd              |   25 +
 FlexPMD/flex-pmd-command-line/pom.xml           |  198 ++
 .../src/main/assemble/bin.xml                   |   41 +
 .../com/adobe/ac/pmd/commandline/FlexPMD.java   |  134 +
 .../adobe/ac/pmd/commandline/FlexPMDTest.java   |  187 ++
 FlexPMD/flex-pmd-core/.p4ignore                 |    1 +
 FlexPMD/flex-pmd-core/.pmd                      |   25 +
 FlexPMD/flex-pmd-core/pom.xml                   |  105 +
 .../com/adobe/ac/pmd/FlexPmdParameters.java     |  123 +
 .../com/adobe/ac/pmd/FlexPmdViolations.java     |  244 ++
 .../ac/pmd/engines/AbstractFlexPmdEngine.java   |  199 ++
 .../com/adobe/ac/pmd/engines/FlexPMDFormat.java |   35 +
 .../adobe/ac/pmd/engines/FlexPmdXmlEngine.java  |  171 ++
 .../adobe/ac/pmd/engines/PmdEngineUtils.java    |   66 +
 .../adobe/ac/pmd/AbstractEntireRulesetTest.java |   87 +
 .../com/adobe/ac/pmd/AllInOneRulesetTest.java   |   64 +
 .../pmd/AllInOneWithExclusionRulesetTest.java   |   38 +
 .../com/adobe/ac/pmd/FlexPmdParametersTest.java |   47 +
 .../com/adobe/ac/pmd/FlexPmdXmlEngineTest.java  |   82 +
 .../ac/pmd/LoadRulesetWithNonUTF8CharTest.java  |   38 +
 .../engines/AbstractTestFlexPmdEngineTest.java  |   73 +
 .../ac/pmd/engines/PmdEngineUtilsTest.java      |  103 +
 .../src/test/resources/allInOneRuleset.xml      |  600 +++++
 .../resources/allInOneWithExclusionRuleset.xml  |  601 +++++
 .../src/test/resources/broken_pmd.xml           |  703 ++++++
 .../flex-pmd-core/src/test/resources/pmd.xml    |   63 +
 .../flex-pmd-core/src/test/resources/pmd.xsd    |   57 +
 FlexPMD/flex-pmd-cpd-ant-task/pom.xml           |  151 ++
 .../com/adobe/ac/cpd/ant/FlexCpdAntTask.java    |  173 ++
 .../adobe/ac/cpd/ant/FlexCpdAntTaskTest.java    |   56 +
 FlexPMD/flex-pmd-cpd-command-line/pom.xml       |  187 ++
 .../cpd/commandline/CpdCommandLineOptions.java  |   37 +
 .../com/adobe/ac/cpd/commandline/FlexCPD.java   |  195 ++
 .../ac/cpd/commandline/FlexCpdParameters.java   |   60 +
 .../adobe/ac/cpd/commandline/FlexCPDTest.java   |  105 +
 FlexPMD/flex-pmd-cpd-maven-plugin/pom.xml       |  116 +
 .../com/adobe/ac/cpd/maven/FlexCpdMojo.java     |  201 ++
 .../src/main/resources/flexPmd.properties       |   16 +
 .../com/adobe/ac/cpd/maven/FlexCpdMojoTest.java |   42 +
 FlexPMD/flex-pmd-cpd/pom.xml                    |   93 +
 .../java/com/adobe/ac/cpd/FlexLanguage.java     |   27 +
 .../java/com/adobe/ac/cpd/FlexTokenizer.java    |  132 +
 .../test/java/com/adobe/ac/cpd/FlexCpdTest.java |  121 +
 .../src/test/resources/test/FlexPMD119.mxml     |  107 +
 FlexPMD/flex-pmd-files/pom.xml                  |   82 +
 .../java/com/adobe/ac/pmd/FlexPmdTestBase.java  |   71 +
 .../com/adobe/ac/pmd/ResourcesManagerTest.java  |  104 +
 .../java/com/adobe/ac/pmd/files/IAs3File.java   |   24 +
 .../java/com/adobe/ac/pmd/files/IFlexFile.java  |   94 +
 .../java/com/adobe/ac/pmd/files/IMxmlFile.java  |   43 +
 .../ac/pmd/files/impl/AbstractFlexFile.java     |  259 ++
 .../com/adobe/ac/pmd/files/impl/As3File.java    |   86 +
 .../com/adobe/ac/pmd/files/impl/FileUtils.java  |  163 ++
 .../com/adobe/ac/pmd/files/impl/MxmlFile.java   |  334 +++
 .../java/net/sourceforge/pmd/PMDException.java  |   80 +
 .../com/adobe/ac/pmd/FlexPmdTestBaseTest.java   |   40 +
 .../adobe/ac/pmd/ResourcesManagerTestTest.java  |   32 +
 .../com/adobe/ac/pmd/files/MxmlFileTest.java    |  150 ++
 .../ac/pmd/files/impl/AbstractFlexFileTest.java |  157 ++
 .../adobe/ac/pmd/files/impl/As3FileTest.java    |   64 +
 .../adobe/ac/pmd/files/impl/FileUtilsTest.java  |  115 +
 .../ac/pmd/files/impl/FlexFileFactoryTest.java  |   63 +
 .../adobe/ac/pmd/files/impl/MxmlFileTest.java   |   50 +
 .../net/sourceforge/pmd/PMDExceptionTest.java   |   61 +
 FlexPMD/flex-pmd-flex-lib/.checkstyle           |   24 +
 .../org.maven.ide.eclipse.maven2Builder.launch  |   25 +
 FlexPMD/flex-pmd-flex-lib/pom.xml               |  207 ++
 .../flex/com/adobe/ac/model/IDomainModel.as     |   26 +
 .../com/adobe/ac/model/IPresentationModel.as    |   26 +
 .../com/adobe/ac/pmd/api/IGetRulesetContent.as  |   28 +
 .../control/events/GetRulesetContentEvent.as    |   56 +
 .../flex/com/adobe/ac/pmd/model/Property.as     |   35 +
 .../flex/com/adobe/ac/pmd/model/RootRuleset.as  |  103 +
 .../main/flex/com/adobe/ac/pmd/model/Rule.as    |   92 +
 .../main/flex/com/adobe/ac/pmd/model/Ruleset.as |   63 +
 .../com/adobe/ac/pmd/model/ViolationPriority.as |   82 +
 .../ac/pmd/model/events/RulesetReceivedEvent.as |   48 +
 .../main/flex/com/adobe/ac/pmd/view/Title.mxml  |   36 +
 .../src/main/resources/assets/cancelledIcon.png |  Bin 0 -> 1094 bytes
 .../src/main/resources/assets/export.png        |  Bin 0 -> 1205 bytes
 .../main/resources/assets/icon_tool_trash.png   |  Bin 0 -> 821 bytes
 .../main/resources/assets/icon_tool_trash2.png  |  Bin 0 -> 27190 bytes
 .../src/main/resources/assets/todoLogo.png      |  Bin 0 -> 1106 bytes
 .../src/main/resources/assets/todoLogo_big.png  |  Bin 0 -> 57083 bytes
 .../flex-pmd-flex-lib/src/test/flex/AllTests.as |   36 +
 .../flex/com/adobe/ac/pmd/model/RuleTest.as     |   61 +
 .../flex/com/adobe/ac/pmd/model/RulesetTest.as  |   72 +
 FlexPMD/flex-pmd-flex-parent/pom.xml            |  125 +
 FlexPMD/flex-pmd-hybrid-parent/pom.xml          |  279 +++
 FlexPMD/flex-pmd-java-parent/pom.xml            |   56 +
 FlexPMD/flex-pmd-java-parent/sonar.sh           |   17 +
 FlexPMD/flex-pmd-maven-plugin/pom.xml           |  115 +
 .../adobe/ac/pmd/maven/AbstractFlexPmdMojo.java |  362 +++
 .../adobe/ac/pmd/maven/FlexPmdHtmlEngine.java   |  125 +
 .../com/adobe/ac/pmd/maven/FlexPmdMojo.java     |   40 +
 .../adobe/ac/pmd/maven/FlexPmdReportMojo.java   |   82 +
 .../com/adobe/ac/pmd/maven/FlexPmdMojoTest.java |   97 +
 .../ac/pmd/maven/FlexPmdReportMojoTest.java     |   86 +
 .../src/test/resources/rulesets/broken_pmd.xml  |  703 ++++++
 FlexPMD/flex-pmd-metrics-ant-task/.pmd          |  975 ++++++++
 FlexPMD/flex-pmd-metrics-ant-task/pom.xml       |  152 ++
 .../ac/pmd/metrics/ant/FlexMetricsAntTask.java  |   83 +
 .../pmd/metrics/ant/FlexMetricsAntTaskTest.java |   40 +
 FlexPMD/flex-pmd-metrics-command-line/.pmd      |  975 ++++++++
 FlexPMD/flex-pmd-metrics-command-line/pom.xml   |  201 ++
 .../ac/pmd/metrics/commandline/FlexMetrics.java |  126 +
 .../metrics/commandline/FlexMetricsTest.java    |   55 +
 .../metrics/commandline/FlexMetricsTest.java    |   55 +
 FlexPMD/flex-pmd-metrics-maven-plugin/.pmd      |  975 ++++++++
 FlexPMD/flex-pmd-metrics-maven-plugin/pom.xml   |  102 +
 .../ac/pmd/metrics/maven/FlexMetricsMojo.java   |  201 ++
 .../metrics/maven/FlexMetricsReportMojo.java    |  414 +++
 .../pmd/metrics/maven/utils/NcssExecuter.java   |   48 +
 .../src/main/resources/flexMetrics.properties   |   94 +
 .../pmd/metrics/maven/FlexMetricsMojoTest.java  |   60 +
 .../maven/FlexMetricsReportMojoTest.java        |   98 +
 FlexPMD/flex-pmd-metrics/.pmd                   |  975 ++++++++
 FlexPMD/flex-pmd-metrics/pom.xml                |   98 +
 .../ac/pmd/metrics/AbstractNamedMetrics.java    |   38 +
 .../ac/pmd/metrics/AbstractPackagedMetrics.java |   89 +
 .../ac/pmd/metrics/AverageClassMetrics.java     |   57 +
 .../ac/pmd/metrics/AverageFunctionMetrics.java  |   39 +
 .../ac/pmd/metrics/AverageMetricsBase.java      |   53 +
 .../com/adobe/ac/pmd/metrics/ClassMetrics.java  |  128 +
 .../adobe/ac/pmd/metrics/FunctionMetrics.java   |   74 +
 .../java/com/adobe/ac/pmd/metrics/IMetrics.java |   22 +
 .../ac/pmd/metrics/InternalFunctionMetrics.java |   85 +
 .../com/adobe/ac/pmd/metrics/MetricUtils.java   |   70 +
 .../adobe/ac/pmd/metrics/PackageMetrics.java    |   95 +
 .../adobe/ac/pmd/metrics/ProjectMetrics.java    |  118 +
 .../ac/pmd/metrics/TotalPackageMetrics.java     |  107 +
 .../ac/pmd/metrics/engine/AbstractMetrics.java  |  234 ++
 .../ac/pmd/metrics/engine/FlexMetrics.java      |  148 ++
 .../adobe/ac/pmd/metrics/ClassMetricsTest.java  |  162 ++
 .../metrics/InternalFunctionMetricsTest.java    |   46 +
 .../adobe/ac/pmd/metrics/MetricUtilsTest.java   |   43 +
 .../ac/pmd/metrics/PackageMetricsTest.java      |   72 +
 .../ac/pmd/metrics/engine/FlexMetricsTest.java  |  161 ++
 FlexPMD/flex-pmd-parent/.pmd                    |   25 +
 FlexPMD/flex-pmd-parent/checkstyle.xml          |   78 +
 FlexPMD/flex-pmd-parent/cleanup.profile.xml     |   95 +
 .../flex-pmd-parent/flex-formatter.properties   |   74 +
 FlexPMD/flex-pmd-parent/java-formatter.xml      |  772 ++++++
 FlexPMD/flex-pmd-parent/pmd.xml                 |  249 ++
 FlexPMD/flex-pmd-parent/pom.xml                 |  455 ++++
 FlexPMD/flex-pmd-parent/projectSet.psf          |   49 +
 FlexPMD/flex-pmd-parent/src/etc/header.txt      |   14 +
 FlexPMD/flex-pmd-ruleset-api/.checkstyle        |   24 +
 FlexPMD/flex-pmd-ruleset-api/.pmd               |   25 +
 FlexPMD/flex-pmd-ruleset-api/pom.xml            |  109 +
 .../java/com/adobe/ac/pmd/IFlexViolation.java   |   54 +
 .../com/adobe/ac/pmd/files/FileSetUtils.java    |  179 ++
 .../com/adobe/ac/pmd/nodes/IAsDocHolder.java    |   30 +
 .../java/com/adobe/ac/pmd/nodes/IAttribute.java |   24 +
 .../java/com/adobe/ac/pmd/nodes/IClass.java     |   81 +
 .../com/adobe/ac/pmd/nodes/ICommentHolder.java  |   32 +
 .../java/com/adobe/ac/pmd/nodes/IConstant.java  |   24 +
 .../java/com/adobe/ac/pmd/nodes/IField.java     |   28 +
 .../ac/pmd/nodes/IFieldInitialization.java      |   24 +
 .../java/com/adobe/ac/pmd/nodes/IFunction.java  |  100 +
 .../com/adobe/ac/pmd/nodes/IIdentifierNode.java |   25 +
 .../java/com/adobe/ac/pmd/nodes/IMetaData.java  |   47 +
 .../adobe/ac/pmd/nodes/IMetaDataListHolder.java |   46 +
 .../adobe/ac/pmd/nodes/IModifiersHolder.java    |   34 +
 .../java/com/adobe/ac/pmd/nodes/INamable.java   |   28 +
 .../com/adobe/ac/pmd/nodes/INamableNode.java    |   25 +
 .../main/java/com/adobe/ac/pmd/nodes/INode.java |   32 +
 .../java/com/adobe/ac/pmd/nodes/IPackage.java   |   50 +
 .../java/com/adobe/ac/pmd/nodes/IParameter.java |   24 +
 .../java/com/adobe/ac/pmd/nodes/IVariable.java  |   33 +
 .../java/com/adobe/ac/pmd/nodes/IVisible.java   |   28 +
 .../java/com/adobe/ac/pmd/nodes/MetaData.java   |   85 +
 .../java/com/adobe/ac/pmd/nodes/Modifier.java   |   78 +
 .../ac/pmd/nodes/asdoc/impl/AsDocNodeBase.java  |   42 +
 .../ac/pmd/nodes/asdoc/impl/ClassAsDocNode.java |   31 +
 .../pmd/nodes/asdoc/impl/FunctionAsDocNode.java |   54 +
 .../nodes/asdoc/impl/ParameterAsDocNode.java    |   55 +
 .../adobe/ac/pmd/nodes/impl/AbstractNode.java   |   90 +
 .../adobe/ac/pmd/nodes/impl/AttributeNode.java  |   44 +
 .../com/adobe/ac/pmd/nodes/impl/ClassNode.java  |  411 +++
 .../adobe/ac/pmd/nodes/impl/ConstantNode.java   |   44 +
 .../pmd/nodes/impl/FieldInitializationNode.java |   53 +
 .../com/adobe/ac/pmd/nodes/impl/FieldNode.java  |   94 +
 .../com/adobe/ac/pmd/nodes/impl/FormalNode.java |   53 +
 .../adobe/ac/pmd/nodes/impl/FunctionNode.java   |  444 ++++
 .../adobe/ac/pmd/nodes/impl/IdentifierNode.java |   63 +
 .../adobe/ac/pmd/nodes/impl/MetaDataNode.java   |  139 ++
 .../adobe/ac/pmd/nodes/impl/NodeFactory.java    |   49 +
 .../adobe/ac/pmd/nodes/impl/PackageNode.java    |  167 ++
 .../adobe/ac/pmd/nodes/impl/VariableNode.java   |  224 ++
 .../adobe/ac/pmd/nodes/utils/AsDocUtils.java    |   60 +
 .../adobe/ac/pmd/nodes/utils/FunctionUtils.java |   53 +
 .../ac/pmd/rules/core/AbstractAstFlexRule.java  | 1164 +++++++++
 .../pmd/rules/core/AbstractAstFlexRuleTest.java |   67 +
 .../rules/core/AbstractFlexMetaDataRule.java    |  111 +
 .../ac/pmd/rules/core/AbstractFlexRule.java     |  354 +++
 .../ac/pmd/rules/core/AbstractFlexRuleTest.java |  264 ++
 .../rules/core/AbstractForbiddenImportRule.java |   58 +
 .../pmd/rules/core/AbstractPrimaryAstRule.java  |   86 +
 .../rules/core/AbstractRegExpBasedRuleTest.java |   76 +
 .../pmd/rules/core/AbstractRegexpBasedRule.java |  116 +
 .../rules/core/AbstractXpathRelatedRule.java    |  244 ++
 .../adobe/ac/pmd/rules/core/IFlexAstRule.java   |   28 +
 .../com/adobe/ac/pmd/rules/core/IFlexRule.java  |   53 +
 .../com/adobe/ac/pmd/rules/core/Violation.java  |  323 +++
 .../ac/pmd/rules/core/ViolationPosition.java    |  106 +
 .../ac/pmd/rules/core/ViolationPriority.java    |   45 +
 .../AbstractMaximizedAstFlexRule.java           |   60 +
 .../thresholded/AbstractMaximizedFlexRule.java  |   60 +
 .../AbstractMaximizedRegexpBasedRule.java       |   61 +
 .../core/thresholded/IThresholdedRule.java      |   45 +
 .../src/main/resources/flexPmd.properties       |   26 +
 .../adobe/ac/pmd/files/FileSetUtilsTest.java    |   47 +
 .../com/adobe/ac/pmd/nodes/MetaDataTest.java    |   55 +
 .../adobe/ac/pmd/nodes/impl/ClassNodeTest.java  |  174 ++
 .../ac/pmd/nodes/impl/CommentNodeTest.java      |  163 ++
 .../adobe/ac/pmd/nodes/impl/FieldNodeTest.java  |   84 +
 .../ac/pmd/nodes/impl/FunctionNodeTest.java     |  271 ++
 .../ac/pmd/nodes/impl/MetaDataNodeTest.java     |  119 +
 .../ac/pmd/nodes/impl/PackageNodeTest.java      |  126 +
 .../ac/pmd/nodes/impl/VariableNodeTest.java     |   77 +
 .../ac/pmd/nodes/utils/AsDocUtilsTest.java      |   63 +
 .../ac/pmd/nodes/utils/FunctionUtilsTest.java   |   60 +
 .../com/adobe/ac/pmd/rules/core/EmptyRule.java  |   79 +
 .../adobe/ac/pmd/rules/core/EmptyRuleTest.java  |  134 +
 .../adobe/ac/pmd/rules/core/FlexRuleTest.java   |   94 +
 .../adobe/ac/pmd/rules/core/IgnoreRuleTest.java |  129 +
 .../pmd/rules/core/TestAbstractAstFlexRule.java |  146 ++
 .../pmd/rules/core/ViolationPriorityTest.java   |   35 +
 .../adobe/ac/pmd/rules/core/ViolationTest.java  |  236 ++
 .../adobe/ac/pmd/rules/core/WarningRule.java    |   57 +
 .../flex-pmd-ruleset-creator/build.properties   |   41 +
 FlexPMD/flex-pmd-ruleset-creator/build.xml      |   75 +
 .../flexcover.properties                        |   89 +
 FlexPMD/flex-pmd-ruleset-creator/flexcover.xml  |  191 ++
 .../html-template/index.template.html           |  121 +
 FlexPMD/flex-pmd-ruleset-creator/pom.xml        |  218 ++
 .../src/main/flex/Main.mxml                     |  132 +
 .../src/main/flex/TestRunner-app.xml            |   45 +
 .../src/main/flex/TestViewRunner-app.xml        |   45 +
 .../src/main/flex/assets/add-10.png             |  Bin 0 -> 3128 bytes
 .../src/main/flex/assets/add-48.png             |  Bin 0 -> 3141 bytes
 .../src/main/flex/assets/arrow.ai               | 1121 +++++++++
 .../src/main/flex/assets/cancelledIcon.png      |  Bin 0 -> 1094 bytes
 .../src/main/flex/assets/down.png               |  Bin 0 -> 926 bytes
 .../src/main/flex/assets/icon_tool_trash.png    |  Bin 0 -> 821 bytes
 .../src/main/flex/assets/icon_tool_trash2.png   |  Bin 0 -> 27190 bytes
 .../src/main/flex/assets/todoLogo.png           |  Bin 0 -> 1106 bytes
 .../src/main/flex/assets/todoLogo_big.png       |  Bin 0 -> 57083 bytes
 .../src/main/flex/assets/up.png                 |  Bin 0 -> 924 bytes
 .../com/adobe/ac/pmd/api/IGetCustomRuleset.as   |   28 +
 .../com/adobe/ac/pmd/api/IGetRootRuleset.as     |   28 +
 .../flex/com/adobe/ac/pmd/control/Controller.as |   40 +
 .../control/commands/GetCustomRulesetCommand.as |   63 +
 .../control/commands/GetRootRulesetCommand.as   |   63 +
 .../commands/GetRulesetContentCommand.as        |   65 +
 .../pmd/control/events/GetCustomRulesetEvent.as |   48 +
 .../pmd/control/events/GetRootRulesetEvent.as   |   48 +
 .../adobe/ac/pmd/services/MyServiceLocator.mxml |   39 +
 .../ac/pmd/services/rulesets/RulesetDelegate.as |   96 +
 .../services/translators/PropertyTranslator.as  |   44 +
 .../translators/RootRulesetTranslator.as        |  107 +
 .../pmd/services/translators/RuleTranslator.as  |   98 +
 .../services/translators/RulesetTranslator.as   |   63 +
 .../flex/com/adobe/ac/pmd/view/RuleEditor.mxml  |  140 ++
 .../flex/com/adobe/ac/pmd/view/RuleEditorPM.as  |   33 +
 .../com/adobe/ac/pmd/view/RuleSetNavigator.mxml |  160 ++
 .../com/adobe/ac/pmd/view/RuleSetNavigatorPM.as |  162 ++
 .../pmd/view/events/SelectedRuleChangeEvent.as  |   48 +
 .../view/renderers/DeleteButtonRenderer.mxml    |   77 +
 .../src/main/locales/en_US/Main.properties      |   15 +
 .../src/main/resources/placeholder.txt          |   16 +
 .../src/test/flex/AllTests.as                   |   42 +
 .../flex/com/adobe/ac/pmd/model/RulesetTest.as  |   72 +
 .../services/translators/RuleTranslatorTest.as  |   59 +
 .../translators/RulesetTranslatorTest.as        |   45 +
 .../adobe/ac/pmd/view/RuleSetNavigatorPMTest.as |   80 +
 ...ceforge.pmd.eclipse.plugin.pmdBuilder.launch |   25 +
 FlexPMD/flex-pmd-ruleset/.pmd                   |  935 +++++++
 FlexPMD/flex-pmd-ruleset/pom.xml                |   81 +
 .../rules/architecture/MonkeyPatchingRule.java  |   72 +
 .../UseInternalClassOutsideApiClass.java        |  126 +
 .../ViewComponentReferencedInModelRule.java     |   87 +
 .../ac/pmd/rules/asdocs/AbstractAsDocRule.java  |   37 +
 .../rules/asdocs/AttributeAsDocMissingRule.java |   53 +
 .../pmd/rules/asdocs/ClassAsDocMissingRule.java |   60 +
 .../rules/asdocs/MethodAsDocMissingRule.java    |   53 +
 .../ac/pmd/rules/binding/BindingUtilsRule.java  |   48 +
 .../ac/pmd/rules/binding/ChangeWatcherRule.java |   48 +
 .../binding/TooLongBindingExpressionRule.java   |  115 +
 .../BadCairngormEventNameFormatRule.java        |  119 +
 .../cairngorm/BindableModelLocatorRule.java     |   64 +
 ...rngormEventDispatcherCallExplicitlyRule.java |   74 +
 .../pmd/rules/cairngorm/FatControllerRule.java  |   97 +
 ...catorReferencedMoreThanOncePerClassRule.java |   53 +
 ...delLocatorOutsideTheMainApplicationRule.java |   73 +
 .../rules/component/CallLaterDirectlyRule.java  |   62 +
 ...teChildrenNumberInUpdateDisplayListRule.java |   66 +
 .../ac/pmd/rules/css/StyleBlockInMxmlRule.java  |   68 +
 .../css/UseCssInsteadOfEmbedMetaDataRule.java   |   84 +
 .../pmd/rules/empty/AbstractEmptyBlockRule.java |   37 +
 .../rules/empty/EmptyCatchStatementRule.java    |   53 +
 .../ac/pmd/rules/empty/EmptyIfStmtRule.java     |   53 +
 .../rules/event/AbstractEventRelatedRule.java   |   54 +
 .../event/ConstructorDispatchingEventRule.java  |   65 +
 .../pmd/rules/event/DefaultEventNameRule.java   |   53 +
 .../event/DispatchHardCodedEventNameRule.java   |   80 +
 .../event/EventMissingCloneFunctionRule.java    |   82 +
 .../event/ListenForHardCodedEventNameRule.java  |   80 +
 .../event/PublicVariableInCustomEventRule.java  |   57 +
 .../rules/event/UnboundTypeInMetadataRule.java  |   83 +
 .../rules/event/UntypedEventMetadataRule.java   |   71 +
 .../ac/pmd/rules/flexunit/EmptyUnitTest.java    |   99 +
 .../pmd/rules/maintanability/AlertShowRule.java |   74 +
 .../ArrayFieldWithNoArrayElementTypeRule.java   |   93 +
 .../AvoidProtectedFieldInFinalClassRule.java    |   92 +
 .../maintanability/AvoidUseOfAsKeywordRule.java |   48 +
 .../AvoidUsingPublicStaticFieldRule.java        |   59 +
 .../AvoidUsingWithKeyWordRule.java              |   57 +
 .../ClassAndExtensionAreIdenticalRule.java      |   68 +
 .../rules/maintanability/DynamicClassRule.java  |   65 +
 .../maintanability/EmptyStatementRule.java      |   49 +
 .../maintanability/ExcessiveImportRule.java     |   80 +
 .../NonStaticConstantFieldRule.java             |   59 +
 .../rules/maintanability/OnlyOneReturnRule.java |   72 +
 .../ProtectedStaticMethodRule.java              |   54 +
 ...ToVariableBindingFromItsInitializerRule.java |   91 +
 .../maintanability/TrueFalseConditionRule.java  |   84 +
 .../UselessOverridenFunctionRule.java           |   82 +
 .../AbstractUseForbiddenTypeRule.java           |  119 +
 .../forbiddentypes/UseDictionaryTypeRule.java   |   46 +
 .../forbiddentypes/UseGenericTypeRule.java      |   48 +
 .../forbiddentypes/UseObjectTypeRule.java       |   92 +
 .../multiscreen/AvoidRollMouseEventRule.java    |   69 +
 .../pmd/rules/multiscreen/AvoidTooltipRule.java |   68 +
 .../AbstractMoreThanEntryPointInMxmlRule.java   |  110 +
 .../ac/pmd/rules/mxml/CodeBehindInMxmlRule.java |   68 +
 .../mxml/MoreThanOneEntryPointInMxmlRule.java   |   47 +
 .../mxml/MoreThanTwoEntryPointsInMxmlRule.java  |   47 +
 .../mxml/OnlyOneScriptBlockPerMxmlRule.java     |   97 +
 .../pmd/rules/mxml/StaticMethodInMxmlRule.java  |   66 +
 .../pmd/rules/mxml/TooLongScriptBlockRule.java  |   99 +
 .../pmd/rules/mxml/TooManyStatesInMxmlRule.java |  159 ++
 .../BooleanAttributeShouldContainIsHasRule.java |   75 +
 .../rules/naming/CapitalizeConstantsRule.java   |   51 +
 .../ac/pmd/rules/naming/IncorrectClassCase.java |   56 +
 .../naming/IncorrectEventHandlerNameRule.java   |   79 +
 .../pmd/rules/naming/InterfaceNamingRule.java   |   41 +
 .../ac/pmd/rules/naming/PackageCaseRule.java    |   76 +
 .../PropertyHiddenByLocalVariableRule.java      |   75 +
 .../rules/naming/TooLongFunctionNameRule.java   |   55 +
 .../pmd/rules/naming/TooShortVariableRule.java  |  151 ++
 .../VariableNameEndingWithNumericRule.java      |  111 +
 .../rules/naming/WronglyNamedVariableRule.java  |  121 +
 .../ParameterizedRegExpBasedRule.java           |   91 +
 .../rules/parsley/InaccessibleMetaDataRule.java |  100 +
 .../MessageInterceptorSignatureRule.java        |   91 +
 .../parsley/MismatchedManagedEventRule.java     |   86 +
 .../rules/parsley/MisplacedMetaDataRule.java    |  120 +
 ...edundantMessageHandlerTypeAttributeRule.java |   99 +
 .../parsley/RedundantMethodAttributeRule.java   |   80 +
 .../parsley/UnknownMetaDataAttributeRule.java   |   79 +
 .../ac/pmd/rules/parsley/utils/MetaDataTag.java |  102 +
 .../rules/parsley/utils/ParsleyMetaData.java    |  276 ++
 .../AbstractAvoidNodeInLoopRule.java            |   85 +
 .../performance/AvoidDeclarationInLoopRule.java |   37 +
 .../AvoidInstanciationInLoopRule.java           |   44 +
 .../performance/AvoidUsingMathCeilRule.java     |   74 +
 .../performance/AvoidUsingMathFloorRule.java    |   74 +
 .../performance/AvoidUsingMathRoundRule.java    |   74 +
 .../rules/performance/BindableClassRule.java    |   66 +
 .../performance/CreationPolicySetToAllRule.java |   70 +
 .../performance/CyclomaticComplexityRule.java   |   77 +
 .../rules/performance/DeeplyNestedIfRule.java   |  123 +
 .../performance/DynamicFiltersUsedInPopup.java  |   68 +
 .../rules/performance/HeavyConstructorRule.java |   90 +
 .../performance/RecursiveStyleManagerRule.java  |   58 +
 .../rules/performance/UseTraceFunctionRule.java |   62 +
 .../security/AllowAllSecureDomainRule.java      |  100 +
 .../rules/security/AllowInsecureDomainRule.java |   90 +
 .../security/ImportLoadBestPracticeRule.java    |   90 +
 .../security/InsecureExactSettingsRule.java     |   89 +
 .../pmd/rules/security/LSOSecureFalseRule.java  |   94 +
 .../rules/security/LocalConnectionStarRule.java |   96 +
 .../pmd/rules/sizing/TooLongFunctionRule.java   |   90 +
 .../pmd/rules/sizing/TooLongSwitchCaseRule.java |   80 +
 .../pmd/rules/sizing/TooManyFieldInVORule.java  |   47 +
 .../ac/pmd/rules/sizing/TooManyFieldsRule.java  |  107 +
 .../pmd/rules/sizing/TooManyFunctionRule.java   |  103 +
 .../pmd/rules/sizing/TooManyParametersRule.java |   85 +
 .../ac/pmd/rules/sizing/TooManyPublicRule.java  |  120 +
 .../ac/pmd/rules/style/BadFormatLoggerRule.java |   83 +
 .../ConstructorNonEmptyReturnTypeRule.java      |   53 +
 .../pmd/rules/style/CopyrightMissingRule.java   |   95 +
 .../rules/style/ImportFromSamePackageRule.java  |   61 +
 .../ac/pmd/rules/style/OverLongLineRule.java    |  114 +
 .../pmd/rules/style/TabUsedAsIndentorRule.java  |   48 +
 .../switchrules/IdenticalSwitchCasesRule.java   |   73 +
 .../pmd/rules/switchrules/NestedSwitchRule.java |   58 +
 .../switchrules/NonBreakableSwitchCaseRule.java |   41 +
 .../SwitchStatementsShouldHaveDefaultRule.java  |   75 +
 .../TooFewBrancheInSwitchStatementRule.java     |  144 ++
 .../unused/AbstractUnusedVariableRule.java      |  130 +
 .../rules/unused/EmptyPrivateMethodRule.java    |   41 +
 .../ac/pmd/rules/unused/UnusedFieldRule.java    |  128 +
 .../rules/unused/UnusedLocalVariableRule.java   |   76 +
 .../pmd/rules/unused/UnusedParameterRule.java   |  239 ++
 .../rules/unused/UnusedPrivateMethodRule.java   |  183 ++
 .../resources/com/adobe/ac/pmd/all_flex.xml     |   48 +
 .../resources/com/adobe/ac/pmd/default_flex.xml |   46 +
 .../com/adobe/ac/pmd/rulesets/architecture.xml  |  118 +
 .../com/adobe/ac/pmd/rulesets/asdocs.xml        |   50 +
 .../com/adobe/ac/pmd/rulesets/basic_mxml.xml    |   65 +
 .../com/adobe/ac/pmd/rulesets/binding.xml       |   70 +
 .../com/adobe/ac/pmd/rulesets/cairngorm.xml     |  134 +
 .../com/adobe/ac/pmd/rulesets/component.xml     |   43 +
 .../resources/com/adobe/ac/pmd/rulesets/css.xml |   41 +
 .../com/adobe/ac/pmd/rulesets/empty.xml         |   66 +
 .../com/adobe/ac/pmd/rulesets/event.xml         |  147 ++
 .../com/adobe/ac/pmd/rulesets/indentation.xml   |   31 +
 .../adobe/ac/pmd/rulesets/maintanability.xml    |  236 ++
 .../com/adobe/ac/pmd/rulesets/multitouch.xml    |   39 +
 .../com/adobe/ac/pmd/rulesets/naming.xml        |  162 ++
 .../com/adobe/ac/pmd/rulesets/parsley.xml       |  148 ++
 .../com/adobe/ac/pmd/rulesets/performance.xml   |  114 +
 .../com/adobe/ac/pmd/rulesets/security.xml      |   86 +
 .../com/adobe/ac/pmd/rulesets/sizing.xml        |  178 ++
 .../com/adobe/ac/pmd/rulesets/style.xml         |   86 +
 .../com/adobe/ac/pmd/rulesets/switches.xml      |  111 +
 .../com/adobe/ac/pmd/rulesets/unittest.xml      |   34 +
 .../com/adobe/ac/pmd/rulesets/unused.xml        |   82 +
 .../architecture/MonkeyPatchingRuleTest.java    |   38 +
 .../UseInternalClassOutsideApiClassTest.java    |   48 +
 .../ViewComponentReferencedInModelRuleTest.java |   58 +
 .../pmd/rules/asdocs/AbstractAsDocRuleTest.java |   67 +
 .../asdocs/AttributeAsDocMissingRuleTest.java   |   37 +
 .../rules/asdocs/ClassAsDocMissingRuleTest.java |   37 +
 .../asdocs/MethodAsDocMissingRuleTest.java      |   39 +
 .../pmd/rules/binding/BindingUtilsRuleTest.java |   38 +
 .../rules/binding/ChangeWatcherRuleTest.java    |   38 +
 .../TooLongBindingExpressionRuleTest.java       |   56 +
 .../BadCairngormEventNameFormatRuleTest.java    |   41 +
 .../cairngorm/BindableModelLocatorRuleTest.java |   38 +
 ...rmEventDispatcherCallExplicitlyRuleTest.java |   39 +
 .../rules/cairngorm/FatControllerRuleTest.java  |   38 +
 ...rReferencedMoreThanOncePerClassRuleTest.java |   38 +
 ...ocatorOutsideTheMainApplicationRuleTest.java |   60 +
 .../component/CallLaterDirectlyRuleTest.java    |   39 +
 ...ildrenNumberInUpdateDisplayListRuleTest.java |   41 +
 .../pmd/rules/css/StyleBlockInMxmlRuleTest.java |   66 +
 .../UseCssInsteadOfEmbedMetaDataRuleTest.java   |   38 +
 .../empty/EmptyCatchStatementRuleTest.java      |   38 +
 .../ac/pmd/rules/empty/EmptyIfStmtRuleTest.java |   49 +
 .../ConstructorDispatchingEventRuleTest.java    |   38 +
 .../rules/event/DefaultEventNameRuleTest.java   |   38 +
 .../DispatchHardCodedEventNameRuleTest.java     |   61 +
 .../EventMissingCloneFunctionRuleTest.java      |   41 +
 .../ListenForHardCodedEventNameRuleTest.java    |   57 +
 .../PublicVariableInCustomEventRuleTest.java    |   41 +
 .../event/UnboundTypeInMetadataRuleTest.java    |   40 +
 .../event/UntypedEventMetadataRuleTest.java     |   38 +
 .../pmd/rules/flexunit/EmptyUnitTestTest.java   |   41 +
 .../rules/maintanability/AlertShowRuleTest.java |   47 +
 ...rrayFieldWithNoArrayElementTypeRuleTest.java |   40 +
 ...AvoidProtectedFieldInFinalClassRuleTest.java |   39 +
 .../AvoidUseOfAsKeywordRuleTest.java            |   86 +
 .../AvoidUsingPublicStaticFieldRuleTest.java    |   40 +
 .../AvoidUsingWithKeyWordRuleTest.java          |   38 +
 .../ClassAndExtensionAreIdenticalRuleTest.java  |   38 +
 .../maintanability/DynamicClassRuleTest.java    |   38 +
 .../maintanability/EmptyStatementRuleTest.java  |   42 +
 .../maintanability/ExcessiveImportRuleTest.java |   42 +
 .../NonStaticConstantFieldRuleTest.java         |   51 +
 .../maintanability/OnlyOneReturnRuleTest.java   |   53 +
 .../ProtectedStaticMethodRuleTest.java          |   38 +
 ...riableBindingFromItsInitializerRuleTest.java |   41 +
 .../TrueFalseConditionRuleTest.java             |   56 +
 .../UselessOverridenFunctionRuleTest.java       |   40 +
 .../UseDictionaryTypeRuleTest.java              |   39 +
 .../forbiddenttypes/UseGenericTypeRuleTest.java |   54 +
 .../forbiddenttypes/UseObjectTypeRuleTest.java  |   54 +
 .../AvoidRollMouseEventRuleTest.java            |   59 +
 .../rules/multiscreen/AvoidTooltipRuleTest.java |   55 +
 ...bstractMoreThanEntryPointInMxmlRuleTest.java |   36 +
 .../rules/mxml/CodeBehindInMxmlRuleTest.java    |   55 +
 .../MoreThanOneEntryPointInMxmlRuleTest.java    |   43 +
 .../MoreThanTwoEntryPointsInMxmlRuleTest.java   |   43 +
 .../mxml/OnlyOneScriptBlockPerMxmlRuleTest.java |   40 +
 .../rules/mxml/StaticMethodInMxmlRuleTest.java  |   38 +
 .../rules/mxml/TooLongScriptBlockRuleTest.java  |   45 +
 .../rules/mxml/TooManyStatesInMxmlRuleTest.java |   38 +
 ...leanAttributeShouldContainIsHasRuleTest.java |   36 +
 .../naming/CapitalizeConstantsRuleTest.java     |   46 +
 .../rules/naming/IncorrectClassCaseTest.java    |   38 +
 .../IncorrectEventHandlerNameRuleTest.java      |   47 +
 .../rules/naming/InterfaceNamingRuleTest.java   |   43 +
 .../pmd/rules/naming/PackageCaseRuleTest.java   |   46 +
 .../PropertyHiddenByLocalVariableRuleTest.java  |   38 +
 .../naming/TooLongFunctionNameRuleTest.java     |   38 +
 .../rules/naming/TooShortVariableRuleTest.java  |   69 +
 .../VariableNameEndingWithNumericRuleTest.java  |   77 +
 .../naming/WronglyNamedVariableRuleTest.java    |   70 +
 .../ParameterizedRegExpBasedRuleTest.java       |   41 +
 ...rizedRegExpBasedRuleWithEmptyRegexpTest.java |   36 +
 .../parsley/InaccessibleMetaDataRuleTest.java   |   43 +
 .../MessageInterceptorSignatureRuleTest.java    |   40 +
 .../parsley/MismatchedManagedEventRuleTest.java |   38 +
 .../parsley/MisplacedMetaDataRuleTest.java      |   67 +
 ...dantMessageHandlerTypeAttributeRuleTest.java |   38 +
 .../RedundantMethodAttributeRuleTest.java       |   38 +
 .../UnknownMetaDataAttributeRuleTest.java       |   40 +
 .../AvoidDeclarationInLoopRuleTest.java         |  100 +
 .../AvoidInstanciationInLoopRuleTest.java       |   50 +
 .../performance/AvoidUsingMathCeilRuleTest.java |   36 +
 .../AvoidUsingMathFloorRuleTest.java            |   39 +
 .../AvoidUsingMathRoundRuleTest.java            |   38 +
 .../performance/BindableClassRuleTest.java      |   40 +
 .../CreationPolicySetToAllRuleTest.java         |   53 +
 .../CyclomaticComplexityRuleTest.java           |   45 +
 .../performance/DeeplyNestedIfRuleTest.java     |   46 +
 .../DynamicFiltersUsedInPopupTest.java          |   60 +
 .../performance/HeavyConstructorRuleTest.java   |   46 +
 .../RecursiveStyleManagerRuleTest.java          |   39 +
 .../performance/UseTraceFunctionRuleTest.java   |   43 +
 .../security/AllowAllSecureDomainRuleTest.java  |   82 +
 .../security/AllowInsecureDomainRuleTest.java   |   55 +
 .../ImportLoadBestPracticeRuleTest.java         |   52 +
 .../security/InsecureExactSettingsRuleTest.java |   55 +
 .../rules/security/LSOSecureFalseRuleTest.java  |   59 +
 .../security/LocalConnectionStarRuleTest.java   |   57 +
 .../rules/sizing/TooLongFunctionRuleTest.java   |   54 +
 .../rules/sizing/TooLongSwitchCaseRuleTest.java |   47 +
 .../rules/sizing/TooManyFieldInVORuleTest.java  |   38 +
 .../pmd/rules/sizing/TooManyFieldsRuleTest.java |   44 +
 .../rules/sizing/TooManyFunctionRuleTest.java   |   42 +
 .../rules/sizing/TooManyParametersRuleTest.java |   44 +
 .../pmd/rules/sizing/TooManyPublicRuleTest.java |   42 +
 .../rules/style/BadFormatLoggerRuleTest.java    |   41 +
 .../ConstructorNonEmptyReturnTypeRuleTest.java  |   38 +
 .../rules/style/CopyrightMissingRuleTest.java   |   42 +
 .../style/ImportFromSamePackageRuleTest.java    |   38 +
 .../pmd/rules/style/OverLongLineRuleTest.java   |   55 +
 .../rules/style/TabUsedAsIndentorRuleTest.java  |   99 +
 .../IdenticalSwitchCasesRuleTest.java           |   38 +
 .../rules/switchrules/NestedSwitchRuleTest.java |   40 +
 .../NonBreakableSwitchCaseRuleTest.java         |   38 +
 ...itchStatementsShouldHaveDefaultRuleTest.java |   42 +
 .../TooFewBrancheInSwitchStatementRuleTest.java |   40 +
 .../unused/EmptyPrivateMethodRuleTest.java      |   49 +
 .../pmd/rules/unused/UnusedFieldRuleTest.java   |   44 +
 .../unused/UnusedLocalVariableRuleTest.java     |   84 +
 .../rules/unused/UnusedParameterRuleTest.java   |   53 +
 .../unused/UnusedPrivateMethodRuleTest.java     |   49 +
 FlexPMD/flex-pmd-test-resources/pom.xml         |   56 +
 .../src/main/assembly/resources.xml             |   31 +
 .../src/main/resources/test/AbstractRowData.as  |  136 +
 .../main/resources/test/AbstractRowData.mxml    |   44 +
 .../src/main/resources/test/BadComponent.as     |   43 +
 .../src/main/resources/test/Color.as            |   29 +
 .../src/main/resources/test/DefaultNameEvent.as |   36 +
 .../resources/test/DeleteButtonRenderer.mxml    |  101 +
 .../src/main/resources/test/ErrorToltipSkin.as  |  317 +++
 .../src/main/resources/test/GenericType.as      |   37 +
 .../src/main/resources/test/GoodComponent.as    |   51 +
 .../test/LinkButtonExample_Exception.mxml       |   38 +
 .../src/main/resources/test/Looping.as          |   68 +
 .../src/main/resources/test/Main.mxml           |   45 +
 .../resources/test/MainWithModelLocator.mxml    |   42 +
 .../resources/test/MainWithNoCopyright.mxml     |   22 +
 .../src/main/resources/test/PngEncoder.as       |  617 +++++
 .../src/main/resources/test/RadonDataGrid.as    |  200 ++
 .../src/main/resources/test/Responder.as        |   36 +
 .../src/main/resources/test/Simple.as           |   19 +
 .../src/main/resources/test/SkinStyles.as       |   65 +
 .../src/main/resources/test/Sorted.as           |   62 +
 .../src/main/resources/test/Title.as            |   33 +
 .../src/main/resources/test/UnboundMetadata.as  |   41 +
 .../src/main/resources/test/WorkEvent.as        |  205 ++
 .../main/resources/test/asDocs/EmptyClass.as    |   38 +
 .../resources/test/asDocs/EmptyWithDocClass.as  |   51 +
 .../src/main/resources/test/bug/Duane.mxml      |  154 ++
 .../src/main/resources/test/bug/FlexPMD115.as   |   30 +
 .../main/resources/test/bug/FlexPMD141a.mxml    |   32 +
 .../main/resources/test/bug/FlexPMD141b.mxml    |   34 +
 .../src/main/resources/test/bug/FlexPMD157.as   |   33 +
 .../src/main/resources/test/bug/FlexPMD173.as   |   40 +
 .../src/main/resources/test/bug/FlexPMD181.as   | 2344 +++++++++++++++++
 .../src/main/resources/test/bug/FlexPMD232.as   |   36 +
 .../main/resources/test/bug/FlexPMD233a.mxml    |   91 +
 .../main/resources/test/bug/FlexPMD233b.mxml    |  300 +++
 .../src/main/resources/test/bug/FlexPMD61.as    |   42 +
 .../src/main/resources/test/bug/FlexPMD62.as    |   35 +
 .../src/main/resources/test/bug/FlexPMD88.as    |   41 +
 .../src/main/resources/test/bug/FlexPMD97.as    |   31 +
 .../src/main/resources/test/bug/Nico.as         |   30 +
 .../src/main/resources/test/bug/Security.as     |   36 +
 .../test/cairngorm/BindableModelLocator.as      |   23 +
 .../resources/test/cairngorm/FatController.as   |  183 ++
 .../resources/test/cairngorm/LightController.as |  201 ++
 .../test/cairngorm/NonBindableModelLocator.as   |   54 +
 .../cairngorm/events/CorrectConstantEvent.as    |   45 +
 .../cairngorm/events/CorrectConstructorEvent.as |   38 +
 .../cairngorm/events/UncorrectConstantEvent.as  |   40 +
 .../events/UncorrectConstructorEvent.as         |   38 +
 .../test/com/adobe/ac/AbstractRowData.as        |  118 +
 .../src/main/resources/test/com/adobe/ac/foo.as |   22 +
 .../resources/test/com/adobe/ac/ncss/ArrayVO.as |   46 +
 .../test/com/adobe/ac/ncss/BigImporterModel.as  |   78 +
 .../test/com/adobe/ac/ncss/BigModel.as          |   90 +
 .../test/com/adobe/ac/ncss/ConfigProxy.as       |   50 +
 .../test/com/adobe/ac/ncss/LongSwitch.as        |  132 +
 .../com/adobe/ac/ncss/MyCairngormCommand.as     |   30 +
 .../test/com/adobe/ac/ncss/NestedSwitch.as      |   59 +
 .../test/com/adobe/ac/ncss/SearchBarEvent.as    |   34 +
 .../test/com/adobe/ac/ncss/VoidConstructor.as   |   37 +
 .../adobe/ac/ncss/event/DynamicCustomEvent.as   |   35 +
 .../com/adobe/ac/ncss/event/FirstCustomEvent.as |   30 +
 .../adobe/ac/ncss/event/SecondCustomEvent.as    |   28 +
 .../com/adobe/ac/ncss/mxml/IterationsList.mxml  |   90 +
 .../com/adobe/ac/ncss/mxml/IterationsList2.mxml |   44 +
 .../com/adobe/ac/ncss/mxml/NestedComponent.mxml |   43 +
 .../adobe/cairngorm/work/SequenceWorkFlow.as    |   19 +
 .../src/main/resources/test/empty/Empty.as      |   18 +
 .../src/main/resources/test/empty/Empty.mxml    |   18 +
 .../src/main/resources/test/filters/MyPopup.as  |   28 +
 .../main/resources/test/filters/MyPopup.mxml    |   32 +
 .../main/resources/test/flexpmd114/a/Test.as    |   39 +
 .../main/resources/test/flexpmd114/b/Test.as    |   35 +
 .../main/resources/test/flexpmd114/c/Test.as    |   35 +
 .../main/resources/test/flexunit/RaoulTest.as   |   69 +
 .../main/resources/test/flexunit/RulesetTest.as |   62 +
 .../main/resources/test/fu/main/flex/Main.mxml  |   22 +
 .../fu/main/flex/TestRunnerApplication.mxml     |   50 +
 .../main/resources/test/fu/test/flex/MySuite.as |   26 +
 .../main/resources/test/fu/test/flex/MyTest.as  |   46 +
 .../test/functional/FunctionalClient.as         |   29 +
 .../functional/func1/api/Func1ExposedClass.as   |   29 +
 .../func1/restricted/Func1RestrictedClass.as    |   29 +
 .../functional/func2/api/Func2ExposedClass.as   |   28 +
 .../func2/restricted/Func2RestrictedClass.as    |   28 +
 .../resources/test/mx/controls/DateChooser2.as  |   25 +
 .../org/as3commons/concurrency/thread/Color.as  |   25 +
 .../test/parsley/InaccessibleMetaData.as        |   53 +
 .../InaccessibleMetaDataInternalClass.as        |   25 +
 .../test/parsley/MessageInterceptorSignature.as |   47 +
 .../test/parsley/MismatchedManagedEvent.as      |   28 +
 .../resources/test/parsley/MisplacedMetaData.as |   65 +
 .../RedundantMessageHandlerTypeAttribute.as     |   35 +
 .../test/parsley/RedundantMethodAttribute.as    |   35 +
 .../test/parsley/UnknownMetaDataAttribute.as    |   32 +
 .../resources/test/pseudo/look/IEditLook.as     |   24 +
 .../main/resources/test/schedule_internal.as    |   22 +
 .../test/src/fw/data/request/ResultListener.as  |   27 +
 .../html-template/index.template.html           |  121 +
 FlexPMD/flex-pmd-violations-viewer/pom.xml      |  191 ++
 .../src/main/flex/Main.mxml                     |   87 +
 .../src/main/flex/TestRunner.mxml               |   24 +
 .../com/adobe/ac/pmd/model/CharacterPosition.as |   44 +
 .../main/flex/com/adobe/ac/pmd/model/File.as    |   48 +
 .../flex/com/adobe/ac/pmd/model/Violation.as    |   82 +
 .../com/adobe/ac/pmd/model/ViolationPosition.as |   44 +
 .../com/adobe/ac/pmd/view/FilterResults.mxml    |   67 +
 .../com/adobe/ac/pmd/view/ResultsFormatter.as   |   41 +
 .../flex/com/adobe/ac/pmd/view/ResultsView.mxml |  142 ++
 .../adobe/ac/pmd/view/SelectedViolation.mxml    |  151 ++
 .../flex/com/adobe/ac/pmd/view/Summary.mxml     |   69 +
 .../flex/com/adobe/ac/pmd/view/UploadView.mxml  |   44 +
 .../adobe/ac/pmd/view/model/ResultsFilter.as    |   50 +
 .../com/adobe/ac/pmd/view/model/ResultsModel.as |  138 +
 .../com/adobe/ac/pmd/view/model/UploadModel.as  |  135 +
 .../adobe/ac/pmd/view/model/ViolationsModel.as  |   84 +
 .../src/test/flex/AllTests.as                   |   30 +
 FlexPMD/flexunit-theme/pom.xml                  |   84 +
 .../src/main/resources/assets/cancelledIcon.png |  Bin 0 -> 1094 bytes
 .../src/main/resources/assets/export.png        |  Bin 0 -> 1205 bytes
 .../main/resources/assets/icon_tool_trash.png   |  Bin 0 -> 821 bytes
 .../main/resources/assets/icon_tool_trash2.png  |  Bin 0 -> 27190 bytes
 .../src/main/resources/assets/todoLogo.png      |  Bin 0 -> 1106 bytes
 .../src/main/resources/assets/todoLogo_big.png  |  Bin 0 -> 57083 bytes
 .../src/main/resources/css/default.css          |  285 +++
 .../skins/ButtonBarButton_disabledSkin.png      |  Bin 0 -> 1439 bytes
 .../skins/ButtonBarButton_downSkin.png          |  Bin 0 -> 1468 bytes
 .../skins/ButtonBarButton_overSkin.png          |  Bin 0 -> 1471 bytes
 .../ButtonBarButton_selectedDisabledSkin.png    |  Bin 0 -> 1455 bytes
 .../skins/ButtonBarButton_selectedUpSkin.png    |  Bin 0 -> 1469 bytes
 .../resources/skins/ButtonBarButton_upSkin.png  |  Bin 0 -> 1445 bytes
 .../skins/ButtonBarFirstButton_disabledSkin.png |  Bin 0 -> 1496 bytes
 .../skins/ButtonBarFirstButton_downSkin.png     |  Bin 0 -> 1497 bytes
 .../skins/ButtonBarFirstButton_overSkin.png     |  Bin 0 -> 1511 bytes
 ...uttonBarFirstButton_selectedDisabledSkin.png |  Bin 0 -> 1484 bytes
 .../ButtonBarFirstButton_selectedUpSkin.png     |  Bin 0 -> 1498 bytes
 .../skins/ButtonBarFirstButton_upSkin.png       |  Bin 0 -> 1490 bytes
 .../skins/ButtonBarLastButton_disabledSkin.png  |  Bin 0 -> 1489 bytes
 .../skins/ButtonBarLastButton_downSkin.png      |  Bin 0 -> 1520 bytes
 .../skins/ButtonBarLastButton_overSkin.png      |  Bin 0 -> 1499 bytes
 ...ButtonBarLastButton_selectedDisabledSkin.png |  Bin 0 -> 1489 bytes
 .../ButtonBarLastButton_selectedUpSkin.png      |  Bin 0 -> 1506 bytes
 .../skins/ButtonBarLastButton_upSkin.png        |  Bin 0 -> 1501 bytes
 .../resources/skins/Button_disabledSkin.png     |  Bin 0 -> 1509 bytes
 .../main/resources/skins/Button_downSkin.png    |  Bin 0 -> 1530 bytes
 .../main/resources/skins/Button_overSkin.png    |  Bin 0 -> 1535 bytes
 .../src/main/resources/skins/Button_upSkin.png  |  Bin 0 -> 1528 bytes
 .../skins/CursorManager_busyCursor.png          |  Bin 0 -> 2001 bytes
 .../resources/skins/DataGrid_borderSkin.png     |  Bin 0 -> 1497 bytes
 .../skins/DataGrid_columnDropIndicatorSkin.png  |  Bin 0 -> 1287 bytes
 .../skins/DataGrid_columnResizeSkin.png         |  Bin 0 -> 1248 bytes
 .../skins/DataGrid_headerBackgroundSkin.png     |  Bin 0 -> 1323 bytes
 .../skins/DataGrid_headerSeparatorSkin.png      |  Bin 0 -> 1240 bytes
 .../resources/skins/DataGrid_sortArrowSkin.png  |  Bin 0 -> 1336 bytes
 .../resources/skins/DataGrid_stretchCursor.png  |  Bin 0 -> 1461 bytes
 .../resources/skins/FormItem_indicatorSkin.png  |  Bin 0 -> 1327 bytes
 .../skins/HScrollArrowLeft_disabledSkin.png     |  Bin 0 -> 1277 bytes
 .../skins/HScrollArrowRight_disabledSkin.png    |  Bin 0 -> 1796 bytes
 .../skins/HScrollBar_leftArrowDownSkin.png      |  Bin 0 -> 1325 bytes
 .../skins/HScrollBar_leftArrowOverSkin.png      |  Bin 0 -> 1335 bytes
 .../skins/HScrollBar_leftArrowUpSkin.png        |  Bin 0 -> 1335 bytes
 .../skins/HScrollBar_rightArrowDownSkin.png     |  Bin 0 -> 1324 bytes
 .../skins/HScrollBar_rightArrowOverSkin.png     |  Bin 0 -> 1336 bytes
 .../skins/HScrollBar_rightArrowUpSkin.png       |  Bin 0 -> 1336 bytes
 .../skins/HScrollBar_thumbDownSkin.png          |  Bin 0 -> 1453 bytes
 .../resources/skins/HScrollBar_thumbIcon.png    |  Bin 0 -> 1252 bytes
 .../skins/HScrollBar_thumbOverSkin.png          |  Bin 0 -> 1552 bytes
 .../resources/skins/HScrollBar_thumbUpSkin.png  |  Bin 0 -> 1484 bytes
 .../skins/HScrollBar_trackDisabledSkin.png      |  Bin 0 -> 1394 bytes
 .../resources/skins/HScrollBar_trackSkin.png    |  Bin 0 -> 1393 bytes
 .../main/resources/skins/Panel_borderSkin.png   |  Bin 0 -> 2906 bytes
 .../skins/VScrollBar_downArrowDisabledSkin.png  |  Bin 0 -> 1347 bytes
 .../skins/VScrollBar_downArrowDownSkin.png      |  Bin 0 -> 1325 bytes
 .../skins/VScrollBar_downArrowOverSkin.png      |  Bin 0 -> 1335 bytes
 .../skins/VScrollBar_downArrowUpSkin.png        |  Bin 0 -> 1335 bytes
 .../skins/VScrollBar_thumbDownSkin.png          |  Bin 0 -> 1453 bytes
 .../resources/skins/VScrollBar_thumbIcon.png    |  Bin 0 -> 1252 bytes
 .../skins/VScrollBar_thumbOverSkin.png          |  Bin 0 -> 1434 bytes
 .../resources/skins/VScrollBar_thumbUpSkin.png  |  Bin 0 -> 1434 bytes
 .../skins/VScrollBar_trackDisabledSkin.png      |  Bin 0 -> 1394 bytes
 .../resources/skins/VScrollBar_trackSkin.png    |  Bin 0 -> 1393 bytes
 .../skins/VScrollBar_upArrowDisabledSkin.png    |  Bin 0 -> 1281 bytes
 .../skins/VScrollBar_upArrowDownSkin.png        |  Bin 0 -> 1324 bytes
 .../skins/VScrollBar_upArrowOverSkin.png        |  Bin 0 -> 1336 bytes
 .../skins/VScrollBar_upArrowUpSkin.png          |  Bin 0 -> 1336 bytes
 935 files changed, 85223 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/.pmd
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/.pmd b/FlexPMD/as3-parser-api/.pmd
new file mode 100644
index 0000000..b5c19d9
--- /dev/null
+++ b/FlexPMD/as3-parser-api/.pmd
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<pmd>
+    <useProjectRuleSet>false</useProjectRuleSet>
+    <ruleSetFile>../flex-pmd-parent/pmd.xml</ruleSetFile>
+    <includeDerivedFiles>false</includeDerivedFiles>
+    <violationsAsErrors>true</violationsAsErrors>
+</pmd>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/pom.xml
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/pom.xml b/FlexPMD/as3-parser-api/pom.xml
new file mode 100644
index 0000000..a302c53
--- /dev/null
+++ b/FlexPMD/as3-parser-api/pom.xml
@@ -0,0 +1,32 @@
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>com.adobe.ac</groupId>
+  <artifactId>as3-parser-api</artifactId>
+  <name>As3 Parser API</name>
+
+  <parent>
+	<groupId>com.adobe.ac</groupId>
+	<artifactId>flex-pmd-java-parent</artifactId>
+	<version>1.3-SNAPSHOT</version>
+	<relativePath>../flex-pmd-java-parent/pom.xml</relativePath>
+  </parent>
+  
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/IAS3Parser.java
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/IAS3Parser.java b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/IAS3Parser.java
new file mode 100644
index 0000000..5d30939
--- /dev/null
+++ b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/IAS3Parser.java
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.ac.pmd.parser;
+
+import java.io.IOException;
+
+import com.adobe.ac.pmd.parser.exceptions.TokenException;
+
+/**
+ * @author xagnetti
+ */
+public interface IAS3Parser
+{
+   /**
+    * @param filePath
+    * @return
+    * @throws IOException
+    * @throws TokenException
+    */
+   IParserNode buildAst( final String filePath ) throws IOException,
+                                                TokenException;
+
+   /**
+    * @param filePath
+    * @param scriptBlockLines
+    * @return
+    * @throws IOException
+    * @throws TokenException
+    */
+   IParserNode buildAst( final String filePath,
+                         final String[] scriptBlockLines ) throws IOException,
+                                                          TokenException;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/IParserNode.java
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/IParserNode.java b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/IParserNode.java
new file mode 100644
index 0000000..91d8506
--- /dev/null
+++ b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/IParserNode.java
@@ -0,0 +1,90 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.ac.pmd.parser;
+
+import java.util.List;
+
+/**
+ * @author xagnetti
+ */
+public interface IParserNode
+{
+   /**
+    * @return the cyclomatic complexity of the current node
+    */
+   int computeCyclomaticComplexity();
+
+   /**
+    * @param type
+    * @return count recursivly the number of children which are of type "type"
+    */
+   int countNodeFromType( final NodeKind type );
+
+   /**
+    * @param names
+    * @return the list of IParserNode which names is contained in the given
+    *         names array
+    */
+   List< IParserNode > findPrimaryStatementsFromNameInChildren( final String[] names );
+
+   /**
+    * @param index
+    * @return the indexth child
+    */
+   IParserNode getChild( final int index );
+
+   /**
+    * @return the entire list of chilren
+    */
+   List< IParserNode > getChildren();
+
+   /**
+    * @return node's column
+    */
+   int getColumn();
+
+   /**
+    * @return node's type
+    */
+   NodeKind getId();
+
+   /**
+    * @return the node's last child
+    */
+   IParserNode getLastChild();
+
+   /**
+    * @return nodes's line
+    */
+   int getLine();
+
+   /**
+    * @return node's string value
+    */
+   String getStringValue();
+
+   /**
+    * @param expectedType
+    * @return true if the node's type is identical to the given name
+    */
+   boolean is( final NodeKind expectedType ); // NOPMD
+
+   /**
+    * @return the children number
+    */
+   int numChildren();
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/KeyWords.java
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/KeyWords.java b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/KeyWords.java
new file mode 100644
index 0000000..5a60a18
--- /dev/null
+++ b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/KeyWords.java
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.ac.pmd.parser;
+
+/**
+ * @author xagnetti
+ */
+public enum KeyWords
+{
+   AS("as"),
+   CASE("case"),
+   CATCH("catch"),
+   CLASS("class"),
+   CONST("const"),
+   DEFAULT("default"),
+   DELETE("delete"),
+   DO("do"),
+   DYNAMIC("dynamic"),
+   EACH("each"),
+   ELSE("else"),
+   EOF("__END__"),
+   EXTENDS("extends"),
+   FINAL("final"),
+   FINALLY("finally"),
+   FOR("for"),
+   FUNCTION("function"),
+   GET("get"),
+   IF("if"),
+   IMPLEMENTS("implements"),
+   IMPORT("import"),
+   IN("in"),
+   INCLUDE("include"),
+   INCLUDE_AS2("#include"),
+   INSTANCE_OF("instanceof"),
+   INTERFACE("interface"),
+   INTERNAL("internal"),
+   INTRINSIC("intrinsic"),
+   IS("is"),
+   NAMESPACE("namespace"),
+   NEW("new"),
+   OVERRIDE("override"),
+   PACKAGE("package"),
+   PRIVATE("private"),
+   PROTECTED("protected"),
+   PUBLIC("public"),
+   RETURN("return"),
+   SET("set"),
+   STATIC("static"),
+   SUPER("super"),
+   SWITCH("switch"),
+   TRY("try"),
+   TYPEOF("typeof"),
+   USE("use"),
+   VAR("var"),
+   VOID("void"),
+   WHILE("while");
+
+   private final String name;
+
+   private KeyWords( final String nameToBeSet )
+   {
+      name = nameToBeSet;
+   }
+
+   /*
+    * (non-Javadoc)
+    * @see java.lang.Enum#toString()
+    */
+   @Override
+   public String toString()
+   {
+      return name;
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/NodeKind.java
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/NodeKind.java b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/NodeKind.java
new file mode 100644
index 0000000..0259068
--- /dev/null
+++ b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/NodeKind.java
@@ -0,0 +1,137 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.ac.pmd.parser;
+
+/**
+ * @author xagnetti
+ */
+public enum NodeKind
+{
+   ADD("add"),
+   AND("and"),
+   ARGUMENTS("arguments"),
+   ARRAY("array"),
+   ARRAY_ACCESSOR("arr-acc"),
+   AS("as"),
+   AS_DOC("as-doc"),
+   ASSIGN("assign"),
+   B_AND("b-and"),
+   B_NOT("b-not"),
+   B_OR("b-or"),
+   B_XOR("b-xor"),
+   BLOCK("block"),
+   CALL("call"),
+   CASE("case"),
+   CASES("cases"),
+   CATCH("catch"),
+   CLASS("class"),
+   COMPILATION_UNIT("compilation-unit"),
+   COND("cond"),
+   CONDITION("condition"),
+   CONDITIONAL("conditional"),
+   CONST("const"),
+   CONST_LIST("const-list"),
+   CONTENT("content"),
+   DEFAULT("default"),
+   DELETE("delete"),
+   DO("do"),
+   DOT("dot"),
+   E4X_ATTR("e4x-attr"),
+   E4X_FILTER("e4x-filter"),
+   E4X_STAR("e4x-star"),
+   ENCAPSULATED("encapsulated"),
+   EQUALITY("equality"),
+   EXPR_LIST("expr-list"),
+   EXTENDS("extends"),
+   FINALLY("finally"),
+   FOR("for"),
+   FOREACH("foreach"),
+   FORIN("forin"),
+   FUNCTION("function"),
+   GET("get"),
+   IF("if"),
+   IMPLEMENTS("implements"),
+   IMPLEMENTS_LIST("implements-list"),
+   IMPORT("import"),
+   IN("in"),
+   INCLUDE("include"),
+   INIT("init"),
+   INTERFACE("interface"),
+   ITER("iter"),
+   LAMBDA("lambda"),
+   LEFT_CURLY_BRACKET("{"),
+   META("meta"),
+   META_LIST("meta-list"),
+   MINUS("minus"),
+   MOD_LIST("mod-list"),
+   MODIFIER("mod"),
+   MULTI_LINE_COMMENT("multi-line-comment"),
+   MULTIPLICATION("mul"),
+   NAME("name"),
+   NAME_TYPE_INIT("name-type-init"),
+   NEW("new"),
+   NOT("not"),
+   OBJECT("object"),
+   OP("op"),
+   OR("or"),
+   PACKAGE("package"),
+   PARAMETER("parameter"),
+   PARAMETER_LIST("parameter-list"),
+   PLUS("plus"),
+   POST_DEC("post-dec"),
+   POST_INC("post-inc"),
+   PRE_DEC("pre-dec"),
+   PRE_INC("pre-inc"),
+   PRIMARY("primary"),
+   PROP("prop"),
+   RELATION("relation"),
+   REST("rest"),
+   RETURN("return"),
+   SET("set"),
+   SHIFT("shift"),
+   STAR("star"),
+   STMT_EMPTY("stmt-empty"),
+   SWITCH("switch"),
+   SWITCH_BLOCK("switch-block"),
+   TRY("try"),
+   TYPE("type"),
+   TYPEOF("typeof"),
+   USE("use"),
+   VALUE("value"),
+   VAR("var"),
+   VAR_LIST("var-list"),
+   VECTOR("vector"),
+   VOID("void"),
+   WHILE("while");
+
+   private String name;
+
+   private NodeKind( final String nameToBeSet )
+   {
+      name = nameToBeSet;
+   }
+
+   /*
+    * (non-Javadoc)
+    * @see java.lang.Enum#toString()
+    */
+   @Override
+   public String toString()
+   {
+      return name;
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/Operators.java
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/Operators.java b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/Operators.java
new file mode 100644
index 0000000..1b379dc
--- /dev/null
+++ b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/Operators.java
@@ -0,0 +1,101 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.ac.pmd.parser;
+
+/**
+ * @author xagnetti
+ */
+public enum Operators
+{
+   AND("&&"),
+   AND_AS2("and"),
+   AND_EQUAL("&="),
+   AT("@"),
+   B_AND("&"),
+   B_OR("|"),
+   B_XOR("^"),
+   COLUMN(":"),
+   COMMA(","),
+   DECREMENT("--"),
+   DIVIDED_EQUAL("/="),
+   DOT("."),
+   DOUBLE_COLUMN("::"),
+   DOUBLE_EQUAL("=="),
+   DOUBLE_EQUAL_AS2("eq"),
+   DOUBLE_QUOTE("\""),
+   DOUBLE_SHIFT_LEFT("<<"),
+   DOUBLE_SHIFT_RIGHT(">>"),
+   EQUAL("="),
+   INCREMENT("++"),
+   INFERIOR("<"),
+   INFERIOR_AS2("lt"),
+   INFERIOR_OR_EQUAL("<="),
+   INFERIOR_OR_EQUAL_AS2("le"),
+   LEFT_CURLY_BRACKET("{"),
+   LEFT_PARENTHESIS("("),
+   LEFT_SQUARE_BRACKET("["),
+   LOGICAL_OR("||"),
+   LOGICAL_OR_AS2("or"),
+   MINUS("-"),
+   MINUS_EQUAL("-="),
+   MODULO("%"),
+   MODULO_EQUAL("%="),
+   NON_EQUAL("!="),
+   NON_EQUAL_AS2_1("ne"),
+   NON_EQUAL_AS2_2("<>"),
+   NON_STRICTLY_EQUAL("!=="),
+   OR_EQUAL("|="),
+   PLUS("+"),
+   PLUS_AS2("add"),
+   PLUS_EQUAL("+="),
+   QUESTION_MARK("?"),
+   REST_PARAMETERS("..."),
+   RIGHT_CURLY_BRACKET("}"),
+   RIGHT_PARENTHESIS(")"),
+   RIGHT_SQUARE_BRACKET("]"),
+   SEMI_COLUMN(";"),
+   SIMPLE_QUOTE("'"),
+   SLASH("/"),
+   STRICTLY_EQUAL("==="),
+   SUPERIOR(">"),
+   SUPERIOR_AS2("gt"),
+   SUPERIOR_OR_EQUAL(">="),
+   SUPERIOR_OR_EQUAL_AS2("ge"),
+   TIMES("*"),
+   TIMES_EQUAL("*="),
+   TRIPLE_SHIFT_LEFT("<<<"),
+   TRIPLE_SHIFT_RIGHT(">>>"),
+   VECTOR_START(".<"),
+   XOR_EQUAL("^=");
+
+   private String symbol;
+
+   private Operators( final String symbolToBeSet )
+   {
+      symbol = symbolToBeSet;
+   }
+
+   /*
+    * (non-Javadoc)
+    * @see java.lang.Enum#toString()
+    */
+   @Override
+   public String toString()
+   {
+      return symbol;
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/exceptions/NullTokenException.java
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/exceptions/NullTokenException.java b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/exceptions/NullTokenException.java
new file mode 100644
index 0000000..3ce539d
--- /dev/null
+++ b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/exceptions/NullTokenException.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.ac.pmd.parser.exceptions;
+
+/**
+ * @author xagnetti
+ */
+@SuppressWarnings("serial")
+public class NullTokenException extends TokenException
+{
+   /**
+    * @param fileName
+    */
+   public NullTokenException( final String fileName )
+   {
+      super( "null token in "
+            + fileName + "." );
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/exceptions/TokenException.java
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/exceptions/TokenException.java b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/exceptions/TokenException.java
new file mode 100644
index 0000000..819216b
--- /dev/null
+++ b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/exceptions/TokenException.java
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.ac.pmd.parser.exceptions;
+
+/**
+ * @author xagnetti
+ */
+@SuppressWarnings("serial")
+public class TokenException extends Exception
+{
+   /**
+    * @param message
+    */
+   protected TokenException( final String message )
+   {
+      super( message );
+   }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/exceptions/UnExpectedTokenException.java
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/exceptions/UnExpectedTokenException.java b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/exceptions/UnExpectedTokenException.java
new file mode 100644
index 0000000..7a11432
--- /dev/null
+++ b/FlexPMD/as3-parser-api/src/main/java/com/adobe/ac/pmd/parser/exceptions/UnExpectedTokenException.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.ac.pmd.parser.exceptions;
+
+/**
+ * @author xagnetti
+ */
+@SuppressWarnings("serial")
+public class UnExpectedTokenException extends TokenException
+{
+   public static class Position
+   {
+      private final int column;
+      private final int line;
+
+      public Position( final int lineToBeSet,
+                       final int columnToBeSet )
+      {
+         super();
+         line = lineToBeSet;
+         column = columnToBeSet;
+      }
+   }
+
+   /**
+    * @param tokenText
+    * @param tokenPosition
+    * @param fileName
+    * @param expected
+    */
+   public UnExpectedTokenException( final String tokenText,
+                                    final Position tokenPosition,
+                                    final String fileName,
+                                    final String expected )
+   {
+      super( "Unexpected token: \""
+            + tokenText + "\" in file (" + fileName + ") at " + tokenPosition.line + ":"
+            + tokenPosition.column + ". Expecting \"" + expected + "\"" );
+   }
+
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/KeyWordsTest.java
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/KeyWordsTest.java b/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/KeyWordsTest.java
new file mode 100644
index 0000000..5ce85b0
--- /dev/null
+++ b/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/KeyWordsTest.java
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.ac.pmd.parser;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
+
+public class KeyWordsTest
+{
+   @Test
+   public void testToString()
+   {
+      assertEquals( "as",
+                    KeyWords.AS.toString() );
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/NodeKindTest.java
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/NodeKindTest.java b/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/NodeKindTest.java
new file mode 100644
index 0000000..80f4fa7
--- /dev/null
+++ b/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/NodeKindTest.java
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.ac.pmd.parser;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
+
+public class NodeKindTest
+{
+   @Test
+   public void testToString()
+   {
+      assertEquals( "add",
+                    NodeKind.ADD.toString() );
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/OperatorsTest.java
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/OperatorsTest.java b/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/OperatorsTest.java
new file mode 100644
index 0000000..c395b9f
--- /dev/null
+++ b/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/OperatorsTest.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.ac.pmd.parser;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
+
+public class OperatorsTest
+{
+   @Test
+   public void testToString()
+   {
+      assertEquals( "&&",
+                    Operators.AND.toString() );
+      assertEquals( "and",
+                    Operators.AND_AS2.toString() );
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/exceptions/FlexPmdExceptionTest.java
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/exceptions/FlexPmdExceptionTest.java b/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/exceptions/FlexPmdExceptionTest.java
new file mode 100644
index 0000000..d13def2
--- /dev/null
+++ b/FlexPMD/as3-parser-api/src/test/java/com/adobe/ac/pmd/parser/exceptions/FlexPmdExceptionTest.java
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.adobe.ac.pmd.parser.exceptions;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
+
+import com.adobe.ac.pmd.parser.exceptions.UnExpectedTokenException.Position;
+
+public class FlexPmdExceptionTest
+{
+   private static final String MY_FILE_NAME = "myFileName";
+
+   @Test
+   public void testNullTokenException()
+   {
+      assertEquals( "null token in "
+                          + MY_FILE_NAME + ".",
+                    new NullTokenException( MY_FILE_NAME ).getMessage() );
+   }
+
+   @Test
+   public void testTokenException()
+   {
+      assertEquals( "myMessage",
+                    new TokenException( "myMessage" ).getMessage() );
+   }
+
+   @Test
+   public void testUnexpectedTokenException()
+   {
+      assertEquals( "Unexpected token: \"tokenText\" in file (myFileName) at 1:1. Expecting \"token\"",
+                    new UnExpectedTokenException( "tokenText", new Position( 1, 1 ), MY_FILE_NAME, "token" ).getMessage() );
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0fc5f17/FlexPMD/as3-parser/.pmd
----------------------------------------------------------------------
diff --git a/FlexPMD/as3-parser/.pmd b/FlexPMD/as3-parser/.pmd
new file mode 100644
index 0000000..b5c19d9
--- /dev/null
+++ b/FlexPMD/as3-parser/.pmd
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<pmd>
+    <useProjectRuleSet>false</useProjectRuleSet>
+    <ruleSetFile>../flex-pmd-parent/pmd.xml</ruleSetFile>
+    <includeDerivedFiles>false</includeDerivedFiles>
+    <violationsAsErrors>true</violationsAsErrors>
+</pmd>


Mime
View raw message