Class Plugin_PMD

Description

The PMD Plugin uses PMD to discover potential vulnerabilities in .java files.

This class is a Singleton that runs only once, returning all of the results that first time. Uses PMD 4.2 (as of 28 March 2008)

Located in /plugins/PMD.php (line 10)

Plugin
   |
   --Plugin_PMD
Variable Summary
Method Summary
void execute ()
void get_rulesets ()
Variables
mixed $is_multi_target = true (line 16)

This class is multi-target.

  • access: public

Redefinition of:
Plugin::$is_multi_target
True iff this object is to be only invoked once. The object itself should prevent multiple executions.
mixed $valid_file_types = array("java", "jsp") (line 11)
  • access: public

Redefinition of:
Plugin::$valid_file_types
Valid file types that this Plugin can operate on.

Inherited Variables

Inherited from Plugin

Plugin::$context_size
Plugin::$description
Plugin::$filename
Plugin::$file_contents
Plugin::$initialized
Plugin::$is_valid_filetype
Plugin::$result_list
Methods
execute (line 41)

Executes the PMD function. This calls out to pmd.bat which then calls Java, but process output comes back here.

void execute ()

Redefinition of:
Plugin::execute()
This function should not be called, since this class is abstract. The execute() function should be overridden by child classes.
get_rulesets (line 22)

Gets the specific rulesets to be included. The rule is that any plugin that has an .xml extension is fair game, except for those starting with an underscore (_).

void get_rulesets ()

Inherited Methods

Inherited From Plugin

Plugin::Plugin()
Plugin::check_for_java()
Plugin::destructor()
Plugin::execute()
Plugin::run()

Documentation generated on Mon, 28 Apr 2008 12:52:02 -0400 by phpDocumentor 1.4.0a2