Groovy Documentation

org.codenarc.analyzer
Class DirectorySourceAnalyzer

java.lang.Object
  org.codenarc.analyzer.DirectorySourceAnalyzer

class DirectorySourceAnalyzer

SourceAnalyzer implementation that recursively processes files in the configured source directories.

deprecated:
This is an internal class that will be removed in the future
author:
Chris Mair
version:
$Revision: 164 $ - $Date: 2009-05-24 19:25:32 -0400 (Sun, 24 May 2009) $


Property Summary
static def SEP

String applyToFileNames

Only analyze filenames matching this value.

String applyToFilesMatching

Only analyze pathnames matching this regular expression.

String baseDirectory

The base directory; the sourceDirectories are relative to this, if not null.

String doNotApplyToFileNames

Do NOT analyze filenames matching this value.

String doNotApplyToFilesMatching

Do NOT analyze pathnames matching this regular expression.

List sourceDirectories

The list of source directories, relative to the baseDirectory if it is not null.

 
Constructor Summary
DirectorySourceAnalyzer()

 
Method Summary
Results analyze(RuleSet ruleSet)

Analyze the source with the configured directory tree(s) using the specified RuleSet and return the report results.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

SEP

static final def SEP


applyToFileNames

String applyToFileNames
Only analyze filenames matching this value. The value may optionally be a comma-separated list of names. The name(s) may optionally include wildcard characters ('*' or '?').


applyToFilesMatching

String applyToFilesMatching
Only analyze pathnames matching this regular expression. If null, match all pathnames. This defaults to matching all pathnames that end with '.groovy'.


baseDirectory

String baseDirectory
The base directory; the sourceDirectories are relative to this, if not null. If this value is null, then treat sourceDirectories as full paths.


doNotApplyToFileNames

String doNotApplyToFileNames
Do NOT analyze filenames matching this value. The value may optionally be a comma-separated list of names. The name(s) may optionally include wildcard characters ('*' or '?').


doNotApplyToFilesMatching

String doNotApplyToFilesMatching
Do NOT analyze pathnames matching this regular expression. If null, then do not exclude any pathnames.


sourceDirectories

List sourceDirectories
The list of source directories, relative to the baseDirectory if it is not null. If sourceDirectories is null, then analyze files recursively from baseDirectory.


 
Constructor Detail

DirectorySourceAnalyzer

DirectorySourceAnalyzer()


 
Method Detail

analyze

Results analyze(RuleSet ruleSet)
Analyze the source with the configured directory tree(s) using the specified RuleSet and return the report results.
param:
ruleset - the RuleSet to apply to each of the (applicable) files in the source directories
return:
the results from applying the RuleSet to all of the files in the source directories


 

Groovy Documentation