Package org.codenarc

Class CodeNarc

  • All Implemented Interfaces:
    groovy.lang.GroovyObject

    public class CodeNarc
    extends Object
    implements groovy.lang.GroovyObject
    • Field Detail

      • systemExit

        protected static groovy.lang.Closure systemExit
      • ruleSetFiles

        protected String ruleSetFiles
      • baseDir

        protected String baseDir
      • includes

        protected String includes
      • excludes

        protected String excludes
      • title

        protected String title
      • reports

        protected List reports
      • createCodeNarcRunner

        protected groovy.lang.Closure createCodeNarcRunner
      • maxPriority1Violations

        protected int maxPriority1Violations
      • maxPriority2Violations

        protected int maxPriority2Violations
      • maxPriority3Violations

        protected int maxPriority3Violations
    • Constructor Detail

      • CodeNarc

        public CodeNarc()
    • Method Detail

      • getMetaClass

        public groovy.lang.MetaClass getMetaClass()
        Specified by:
        getMetaClass in interface groovy.lang.GroovyObject
      • setMetaClass

        public void setMetaClass​(groovy.lang.MetaClass mc)
        Specified by:
        setMetaClass in interface groovy.lang.GroovyObject
      • invokeMethod

        public Object invokeMethod​(String method,
                                   Object arguments)
        Specified by:
        invokeMethod in interface groovy.lang.GroovyObject
      • getProperty

        public Object getProperty​(String property)
        Specified by:
        getProperty in interface groovy.lang.GroovyObject
      • setProperty

        public void setProperty​(String property,
                                Object value)
        Specified by:
        setProperty in interface groovy.lang.GroovyObject
      • main

        public static void main​(String... args)
      • execute

        protected void execute​(String... args)
      • setDefaultsIfNecessary

        protected void setDefaultsIfNecessary()
      • checkMaxViolations

        protected void checkMaxViolations​(Results results,
                                          int priority,
                                          int max)
      • createSourceAnalyzer

        protected SourceAnalyzer createSourceAnalyzer()
      • parseArgs

        protected void parseArgs​(String... args)