Vikram,
PMD has no specific rules for AngularJS. As a Javascript library /
framework, all current Javascript rules apply
<https://pmd.github.io/pmd-5.8.1/pmd-javascript/rules/index.html>. However,
all such rules are general, and not specific to AngularJS best-practices
(nor React, Backbone, nor any other for the case).
You can however write rules yourself
<https://pmd.github.io/pmd-5.8.1/customizing/howtowritearule.html>, either
using a Java visitor on the AST, or simply using XPath
<https://pmd.github.io/pmd-5.8.1/customizing/xpathruletutorial.html>. Just
bare in mind, type resolution is not available for JS at the time of this
writing.
Feel free to submit your rules as PRs for consideration, we are always
looking to expand our current rulesets.
Those links should be enough to get you started. If you have more doubts,
feel free to ask.
Regards
On Thu, Oct 5, 2017 at 7:23 AM, Vikram Singh <sin...@gm...>
wrote:
> Hi, I want to use PMD for static code analysis of my angularjs project. I
> needed help regarding rulesets for angular js code becuase i could easily
> find rule sets for javascript syntax but not for MVC scripting languages
> like angularjs. Any help regarding any existing rulesets or how can i write
> one for my project, will be apprecited.
>
> Thanks in Advance.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Pmd-devel mailing list
> Pmd...@li...
> https://lists.sourceforge.net/lists/listinfo/pmd-devel
>
>
|