Groovy Documentation

groovy.org.codenarc
[Groovy] Class CodeNarc

java.lang.Object
  groovy.org.codenarc.CodeNarc

@SuppressWarnings(['Println', 'PrintStackTrace'])
class CodeNarc

Command-line runner for CodeNarc.

The supported command-line parameters are all of the form: "-OPTION=VALUE", where OPTION is one of the options in the following list.

Authors:
Chris Mair


Field Summary
protected static def HELP

protected String baseDir

protected def createCodeNarcRunner

protected String excludes

protected String includes

protected List reports

protected String ruleSetFiles

protected String title

 
Property Summary
static def LOG

 
Method Summary
protected SourceAnalyzer createSourceAnalyzer()

Create and return the SourceAnalyzer

protected void execute(String[] args)

static void main(String[] args)

Main command-line entry-point.

protected void parseArgs(String[] args)

protected void setDefaultsIfNecessary()

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

Field Detail

HELP

protected static final def HELP


baseDir

protected String baseDir


createCodeNarcRunner

protected def createCodeNarcRunner


excludes

protected String excludes


includes

protected String includes


reports

protected List reports


ruleSetFiles

protected String ruleSetFiles


title

protected String title


 
Property Detail

LOG

static final def LOG


 
Method Detail

createSourceAnalyzer

protected SourceAnalyzer createSourceAnalyzer()
Create and return the SourceAnalyzer
Returns:
a configured SourceAnalyzer instance


execute

protected void execute(String[] args)


main

static void main(String[] args)
Main command-line entry-point. Run the CodeNarc application.
Parameters:
args - - the String[] of command-line arguments


parseArgs

protected void parseArgs(String[] args)


setDefaultsIfNecessary

protected void setDefaultsIfNecessary()


 

Groovy Documentation