Groovy Documentation

groovy.org.codenarc.rule
[Groovy] Class StubRule

java.lang.Object
  java.org.codenarc.rule.AbstractRule
      groovy.org.codenarc.rule.StubRule

class StubRule
extends AbstractRule

Stub implementation of the Rule interface for testing

Authors:
Chris Mair


Property Summary
String name

int priority

 
Constructor Summary
StubRule()

StubRule(int priority)

 
Method Summary
void applyTo(SourceCode sourceCode, List violations)

 
Methods inherited from class AbstractRule
applyTo, applyTo, createViolation, createViolation, createViolation, createViolation, createViolation, createViolationForImport, createViolationForImport, createViolationForImport, getApplyToFileNames, getApplyToFilesMatching, getCompilerPhase, getDescription, getDoNotApplyToFileNames, getDoNotApplyToFilesMatching, getName, getPriority, getViolationMessage, isEnabled, isReady, setApplyToFileNames, setApplyToFilesMatching, setDescription, setDoNotApplyToFileNames, setDoNotApplyToFilesMatching, setEnabled, setName, setPriority, setViolationMessage, toString, validate
 

Property Detail

name

String name


priority

int priority


 
Constructor Detail

StubRule

StubRule()


StubRule

StubRule(int priority)


 
Method Detail

applyTo

@Override
void applyTo(SourceCode sourceCode, List violations)


 

Groovy Documentation