Groovy Documentation

groovy.org.codenarc.rule.logging
[Groovy] Class LoggerWithWrongModifiersRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.logging.LoggerWithWrongModifiersRule

class LoggerWithWrongModifiersRule
extends AbstractAstVisitorRule

Logger objects should be declared private, static and final. The exception is, when derived classes should use logger objects. Then they should be declared protected, non-static and final. This rule find loggers that are not declared with these modifiers.

Authors:
Hamlet D'Arcy
Ren? Scheibe


Property Summary
boolean allowNonStaticLogger

boolean allowProtectedLogger

Class astVisitorClass

String name

int priority

 

Property Detail

allowNonStaticLogger

boolean allowNonStaticLogger


allowProtectedLogger

boolean allowProtectedLogger


astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 

Groovy Documentation