Constant Field Values
Contents
org.codehaus.*
-
org.codehaus.groovy.transform.powerassert.ValueRecorder Modifier and Type Constant Field Value public static final java.lang.StringCLEAR_METHOD_NAME"clear"public static final java.lang.StringRECORD_METHOD_NAME"record"
org.codenarc.*
-
org.codenarc.CodeNarc Modifier and Type Constant Field Value protected static final java.lang.StringHELP"CodeNarc - static analysis for Groovy\',\nUsage: java org.codenarc.CodeNarc [OPTIONS]\n where OPTIONS are zero or more command-line options of the form \"-NAME[=VALUE]\":\n -basedir=<DIR>\n The base (root) directory for the source code to be analyzed.\n Defaults to the current directory (\".\").\n -includes=<PATTERNS>\n The comma-separated list of Ant-style file patterns specifying files that must\n be included. Defaults to \"**/*.groovy\".\n -excludes=<PATTERNS>\n The comma-separated list of Ant-style file patterns specifying files that must\n be excluded. No files are excluded when omitted.\n -rulesetfiles=<FILENAMES>\n The path to the Groovy or XML RuleSet definition files, relative to the classpath.\n This can be a single file path, or multiple paths separated by commas. Each path may be optionally prefixed by\n any of the valid java.net.URL prefixes, such as \"file:\" (to load from a relative or absolute filesystem path),\n or \"http:\". If it is a URL, its path may be optionally URL-encoded. That can be useful if the path contains\n any problematic characters, such as comma (\',\') or hash (\'#\'). For instance:\n file:src/test/resources/RuleSet-,#.txt\n can be encoded as:\n file:src%2Ftest%2Fresources%2FRuleSet-%2C%23.txt\n See URLEncoder#encode(java.lang.String, java.lang.String). Defaults to \"rulesets/basic.xml\"\n -maxPriority1Violations=<MAX>\n The maximum number of priority 1 violations allowed (int).\n -maxPriority2Violations=<MAX>\n The maximum number of priority 2 violations allowed (int).\n -maxPriority3Violations=<MAX>\n The maximum number of priority 3 violations allowed (int).\n -title=<REPORT TITLE>\n The title for this analysis; used in the output report(s), if supported by the report type. Optional.\n -report=<REPORT-TYPE[:FILENAME]>\n The definition of the report to produce. The option value is of the form\n TYPE[:FILENAME], where TYPE is \"html\", \"text\", \"xml\", or \"console\" and FILENAME is the filename (with\n optional path) of the output report filename. If the report filename is\n omitted, the default filename is used for the specified report type\n (\"CodeNarcReport.html\" for \"html\" and \"CodeNarcXmlReport.xml\" for \"xml\"). If no\n report option is specified, default to a single \"html\" report with the\n default filename.\n -help\n Display the command-line help. If present, this must be the only command-line parameter.\n Example command-line invocations:\n java org.codenarc.CodeNarc\n java org.codenarc.CodeNarc -rulesetfiles=\"rulesets/basic.xml\" title=\"My Project\"\n java org.codenarc.CodeNarc -report=xml:MyXmlReport.xml -report=html\n java org.codenarc.CodeNarc -help\'"
-
org.codenarc.ant.AntFileSetSourceAnalyzer Modifier and Type Constant Field Value private static final intPOOL_TIMEOUT_SECONDS3600
-
org.codenarc.report.AbstractHtmlReportWriter Modifier and Type Constant Field Value protected static final java.lang.StringCSS_FILE"codenarc-htmlreport.css"protected static final intMAX_SOURCE_LINE_LENGTH70protected static final intSOURCE_LINE_LAST_SEGMENT_LENGTH12 -
org.codenarc.report.AbstractReportWriter Modifier and Type Constant Field Value protected static final java.lang.StringBASE_MESSAGES_BUNDLE"codenarc-base-messages"protected static final java.lang.StringCODENARC_URL"http://www.codenarc.org"protected static final java.lang.StringCUSTOM_MESSAGES_BUNDLE"codenarc-messages"protected static final java.lang.StringVERSION_FILE"codenarc-version.txt" -
org.codenarc.report.HtmlReportWriter Modifier and Type Constant Field Value public static final java.lang.StringDEFAULT_OUTPUT_FILE"CodeNarcReport.html" -
org.codenarc.report.SortableHtmlReportWriter Modifier and Type Constant Field Value public static final java.lang.StringDEFAULT_OUTPUT_FILE"CodeNarcSortableReport.html"
-
org.codenarc.rule.AbstractAstVisitorRule Modifier and Type Constant Field Value public static final java.lang.StringCLOSURE_TEXT"{ -> ... }"protected static final java.lang.StringDEFAULT_CONST_NAME"[A-Z][A-Z0-9_]*"protected static final java.lang.StringDEFAULT_FIELD_NAME"[a-z][a-zA-Z0-9]*"protected static final java.lang.StringDEFAULT_TEST_CLASS_NAMES"*Spec,*Test,*Tests,*TestCase"protected static final java.lang.StringDEFAULT_TEST_FILES".*(Spec|Test|Tests|TestCase)\\.groovy"protected static final java.lang.StringDEFAULT_VAR_NAME"[a-z][a-zA-Z0-9]*" -
org.codenarc.rule.AbstractEnhanceableAstVisitorRule Modifier and Type Constant Field Value public static final java.lang.StringENHANCED_MODE_SYSTEM_PROPERTY"org.codenarc.enhancedMode"
-
org.codenarc.rule.comments.CommentsUtil Modifier and Type Constant Field Value protected static final java.lang.StringJAVADOC_EMPTY_LINE"\\s*\\*\\s*\\n"protected static final java.lang.StringJAVADOC_END"\\s*\\*/"protected static final java.lang.StringJAVADOC_LINE_PREFIX"\\s*\\*\\s*"protected static final java.lang.StringJAVADOC_START"/\\*\\*\\s*\\n"protected static final java.lang.StringNEW_LINE"\\n"protected static final java.lang.StringNON_WHITESPACE_CHARS"\\S+"protected static final java.lang.StringOPTIONAL_WHITESPACE"\\s*"protected static final java.lang.StringWHITESPACE"\\s+"
-
org.codenarc.rule.convention.NoDefRule Modifier and Type Constant Field Value public static final java.lang.StringMESSAGE"def for declaration should not be used"public static final java.lang.StringMESSAGE_DEF_PARAMETER"def for method parameter type should not be used"public static final java.lang.StringMESSAGE_DEF_RETURN"def for method return type should not be used" -
org.codenarc.rule.convention.NoJavaUtilDateAstVisitor Modifier and Type Constant Field Value protected static final java.lang.StringVIOLATION_MESSAGE"Do not use java.util.Date. Prefer the classes in the java.time.* packages."
-
org.codenarc.rule.grails.GrailsUtil Modifier and Type Constant Field Value protected static final java.lang.StringCONTROLLERS_AND_TAGLIB_FILES".*grails-app/(controllers|taglib)/.*"protected static final java.lang.StringCONTROLLERS_CLASSES"*Controller"protected static final java.lang.StringCONTROLLERS_FILES".*grails-app/controllers/.*"protected static final java.lang.StringDOMAIN_FILES".*grails-app/domain/.*"protected static final java.lang.StringSERVICE_CLASSES"*Service"protected static final java.lang.StringSERVICE_FILES".*grails-app/services/.*"
-
org.codenarc.rule.groovyism.CollectAllIsDeprecatedRule Modifier and Type Constant Field Value protected static final java.lang.StringMESSAGE"collectAll{} is deprecated since Groovy 1.8.1. Use collectNested instead{}." -
org.codenarc.rule.groovyism.UseCollectManyRule Modifier and Type Constant Field Value protected static final java.lang.StringMESSAGE"collect{}.flatten() can be collectMany{}" -
org.codenarc.rule.groovyism.UseCollectNestedRule Modifier and Type Constant Field Value protected static final java.lang.StringMESSAGE"Instead of nested collect{}-calls use collectNested{}"
-
org.codenarc.rule.imports.AbstractImportRule Modifier and Type Constant Field Value public static final java.lang.StringNON_STATIC_IMPORT_PATTERN"^\\s*import(?!\\s+static)\\s+([^\\s/]+(\\.[^\\s/]+)*)\\b.*"public static final java.lang.StringSTATIC_IMPORT_PATTERN"^\\s*import\\s+static\\s+([^\\s/]+(\\.[^\\s/]+)*)\\b.*"
-
org.codenarc.ruleset.RuleSetUtil Modifier and Type Constant Field Value protected static final java.lang.StringCLASS_LOADER_SYS_PROP"codenarc.useCurrentThreadContextClassLoader"
-
org.codenarc.tool.GenerateRuleIndexPage Modifier and Type Constant Field Value protected static final java.lang.StringRULE_INDEX_FILE"src/site/apt/codenarc-rule-index.apt" -
org.codenarc.tool.GenerateRuleSetAllRules Modifier and Type Constant Field Value protected static final java.lang.StringRULESET_FILE"src/site/resources/StarterRuleSet-AllRules.groovy.txt" -
org.codenarc.tool.GenerateRuleSetAllRulesByCategory Modifier and Type Constant Field Value protected static final java.lang.StringRULESET_FILE"src/site/resources/StarterRuleSet-AllRulesByCategory.groovy.txt"