Ryan Gustafson 73e19eaded Changes to Rule interface to support a Language value. Every Rule must have a Language. All the Java AST Rule base classes will default the Language, and enforce that it cannot be changed to something else (e.g. ImmutableLanguage interface). XPath Rules must specify a Language in the RuleSet XML. All existing Rules have had their languages set appropriately.
Also added a minimum and maximum Language Version to Rules.  By default these are null, indicating a Rule applies to all versions of a Language.  Some Rules can be defined to work only on certain Language Version ranges.  It is envisioned this will be used for Java migration related rules, and for future Rules concerning newer Java language feature usage (e.g. Annotations, etc).

Next step is to rework RuleSet to no longer use Language directly, but to defer to it's Rules.


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6195 51baf565-9d33-0410-a72c-fc3788e3496d
2008-06-13 04:57:20 +00:00
2005-11-10 18:55:49 +00:00
2003-07-21 15:37:14 +00:00
2005-10-25 00:41:49 +00:00
2004-07-09 19:27:21 +00:00
2008-04-06 21:39:03 +00:00
2007-12-18 14:20:11 +00:00
2008-01-26 12:12:54 +00:00
2003-07-21 15:37:14 +00:00
2003-07-21 15:37:14 +00:00
S
Description
An extensible multilanguage static code analyzer.
Apache-2.0
510 MiB
0 Stars 1 Watchers 0 Forks
Languages
Java 75.5%
Apex 9.7%
Kotlin 9.1%
ANTLR 2.7%
PLSQL 1%
Other 1.8%