A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

AbcMetricRule - Class in org.codenarc.rule.size
Rule that calculates the ABC metric score for methods/classes and checks against configured threshold values.
AbcMetricRule() - Constructor in AbcMetricRule
AbstractAstVisitor - Class in org.codenarc.rule
Abstract superclass for Groovy AST Visitors used with Rules
AbstractAstVisitorRule - Class in org.codenarc.rule
Abstract superclass for Rules that use a Groovy AST Visitor.
AbstractClassNameRule - Class in org.codenarc.rule.naming
Rule that verifies that the name of an abstract class matches a regular expression specified in the regex property.
AbstractClassNameRule() - Constructor in AbstractClassNameRule
AbstractClassWithoutAbstractMethodRule - Class in org.codenarc.rule.design
The abstract class does not contain any abstract methods.
AbstractClassWithoutAbstractMethodRule() - Constructor in AbstractClassWithoutAbstractMethodRule
AbstractClassWithPublicConstructorRule - Class in org.codenarc.rule.design
An abstract class cannot be instantiated, therefore a public constructor is useless and confusing.
AbstractClassWithPublicConstructorRule() - Constructor in AbstractClassWithPublicConstructorRule
AbstractCodeNarcPlugin - Class in org.codenarc.plugin
Abstract superclass for CodeNarcPlugin implementations.
AbstractCodeNarcPlugin() - Constructor in AbstractCodeNarcPlugin
AbstractConstructorCallAstVisitor - Class in org.codenarc.rule
Abstract superclass for AST Visitor classes that deal with constructor calls
AbstractConstructorCallAstVisitor() - Constructor in AbstractConstructorCallAstVisitor
AbstractEnhanceableAstVisitorRule - Class in org.codenarc.rule
Abstract superclass for Rules that use a Groovy AST Visitor and can optionally run in enhanced mode.
AbstractFieldVisitor - Class in org.codenarc.rule
This is the base class for AST Visitors that only need to visit the fields of a class.
AbstractFinallyAstVisitor - Class in org.codenarc.rule.basic
Abstract superclass for AST Visitor classes that check for conditions within a finally block
AbstractFinallyAstVisitor() - Constructor in AbstractFinallyAstVisitor
AbstractHtmlReportWriter - Class in org.codenarc.report
Abstract superclass for HTML ReportWriter classes.
AbstractHtmlReportWriter() - Constructor in AbstractHtmlReportWriter
AbstractImportRule - Class in org.codenarc.rule.imports
Abstract class with common functionalities for import-related rules.
AbstractImportRule() - Constructor in AbstractImportRule
AbstractJavadocEmptyTagRule - Class in org.codenarc.rule.comments
Abstract superclass for rules that checks for empty javadoc tags.
AbstractJavadocEmptyTagRule() - Constructor in AbstractJavadocEmptyTagRule
AbstractJavadocMissingDescriptionRule - Class in org.codenarc.rule.comments
Abstract superclass for rules that checks for missing descriptions on javadoc tags.
AbstractJavadocMissingDescriptionRule() - Constructor in AbstractJavadocMissingDescriptionRule
AbstractLastStatementInBlockAstVisitor - Class in org.codenarc.rule.unused
Abstract superclass for AstVisitor classes that need to determine whether a Statement is the last statement within a block.
AbstractLastStatementInBlockAstVisitor() - Constructor in AbstractLastStatementInBlockAstVisitor
AbstractMethodCallExpressionVisitor - Class in org.codenarc.rule
This is the base class for AST Visitors that only need to visit the MethodCallExpressions of a class.
AbstractMethodMetricAstVisitor - Class in org.codenarc.rule.size
Abstract superclass for AstVisitor classes that use method-level GMetrics Metrics.
AbstractMethodMetricAstVisitor() - Constructor in AbstractMethodMetricAstVisitor
AbstractMethodVisitor - Class in org.codenarc.rule
This is the base class for AST Visitors that only need to visit the methods of a class.
AbstractReportWriter - Class in org.codenarc.report
Abstract superclass for ReportWriter implementation classes.
AbstractReportWriter() - Constructor in AbstractReportWriter
AbstractRule - Class in org.codenarc.rule
Abstract superclass for Rules.
AbstractRuleTestCase - Class in org.codenarc.rule
Abstract generic superclass for tests of Rule classes
AbstractRuleTestCase() - Constructor in AbstractRuleTestCase
AbstractSharedAstVisitorRule - Class in org.codenarc.rule
Abstract superclass for Rules that use a single, shared AstVisitor across all ClassNodes in a source (file).
AbstractSingleSpaceAfterKeywordAstVisitor - Class in org.codenarc.rule.formatting
Abstract superclass for AstVisitor classes that checks that there is exactly one space (blank) after a keyword and before the opening parenthesis.
AbstractSingleSpaceAfterKeywordAstVisitor() - Constructor in AbstractSingleSpaceAfterKeywordAstVisitor
AbstractSourceAnalyzer - Class in org.codenarc.analyzer
Common functionality for SourceAnalyzers.
AbstractSourceAnalyzer() - Constructor in AbstractSourceAnalyzer
AbstractSourceCode - Class in org.codenarc.source
Abstract superclass for SourceCode implementations
AbstractSourceCode() - Constructor in AbstractSourceCode
AbstractSpaceAroundBraceAstVisitor - Class in org.codenarc.rule.formatting
Abstract superclass for AstVisitor classes dealing with space around braces
AbstractSpaceAroundBraceAstVisitor() - Constructor in AbstractSpaceAroundBraceAstVisitor
AbstractTestCase - Class in org.codenarc.test
Abstract superclass for tests
AbstractTestCase() - Constructor in AbstractTestCase
AbstractTypeNameAstVisitor - Class in org.codenarc.rule.naming
Abstract superclass for AstVisitor classes dealing with class/type names, e.g. classes, interfaces and abstract classes.
AbstractTypeNameAstVisitor() - Constructor in AbstractTypeNameAstVisitor
addChild(org.codenarc.results.Results) - Method in DirectoryResults
addConfiguredOption(org.codenarc.ant.ReportOption) - Method in Report
addConfiguredReport(org.codenarc.ant.Report) - Method in CodeNarcTask
Ant-defined method (by convention), called with each instance of a nested element within this task.
AddEmptyStringRule - Class in org.codenarc.rule.unnecessary
Finds empty string literals which are being added.
AddEmptyStringRule() - Constructor in AddEmptyStringRule
addError(java.lang.String, org.codehaus.groovy.ast.ASTNode) - Method in AbstractFieldVisitor
addError(java.lang.String, org.codehaus.groovy.ast.ASTNode) - Method in AbstractMethodCallExpressionVisitor
addError(java.lang.String, org.codehaus.groovy.ast.ASTNode) - Method in AbstractMethodVisitor
addExclude(java.lang.String) - Method in FilteredRuleSet
Add an exclude criteria.
addFileResultRecursive(org.codenarc.results.FileResults) - Method in DirectoryResults
Add file results to current DirectoryResult instance, or recursively in a child Directory result Child DirectoryResults are created if not existing
addFileset(org.apache.tools.ant.types.FileSet) - Method in CodeNarcTask
addInclude(java.lang.String) - Method in FilteredRuleSet
Add an include criteria.
additionalHibernateBasicTypes - Property in GrailsDomainReservedSqlKeywordNameRule
additionalReservedSqlKeywords - Property in GrailsDomainReservedSqlKeywordNameRule
addRule(org.codenarc.rule.Rule) - Method in CompositeRuleSet
Add a single Rule to this RuleSet
addRuleSet(org.codenarc.ruleset.RuleSet) - Method in CompositeRuleSet
Add all of the Rules within the specified RuleSet to this RuleSet
addViolation(org.codenarc.rule.Violation) - Method in AbstractAstVisitor
Add a new Violation to the list of violations found by this visitor.
addViolation(org.codehaus.groovy.ast.FieldNode, java.lang.String) - Method in AbstractFieldVisitor
Add a new Violation to the list of violations found by this visitor.
addViolation(org.codehaus.groovy.ast.expr.MethodCallExpression, java.lang.String) - Method in AbstractMethodCallExpressionVisitor
Add a new Violation to the list of violations found by this visitor.
addViolation(org.gmetrics.result.MetricResult, java.lang.String) - Method in AbstractMethodMetricAstVisitor
addViolation(org.codehaus.groovy.ast.ClassNode, java.lang.String) - Method in AbstractMethodVisitor
Add a new Violation to the list of violations found by this visitor.
addViolationForSunImport(org.codehaus.groovy.ast.ImportNode, org.codenarc.source.SourceCode, java.util.List) - Method in ImportFromSunPackagesRule
ALL_RULES - Field in LookupTable
ALL_RULESET_FILES - Property in RuleSets
allowBraceOnNextLineForMultilineDeclarations - Property in BracesForMethodRule
allowConstructorOnlyUsages - Property in UnusedPrivateFieldRule
allowDerivedClasses - Property in LoggerForDifferentClassRule
allowedFieldModifiersList - Field in IllegalClassMemberRule
allowedFieldModifiersString - Field in IllegalClassMemberRule
allowedMethodModifiersList - Field in IllegalClassMemberRule
allowedMethodModifiersString - Field in IllegalClassMemberRule
allowedPropertyModifiersList - Field in IllegalClassMemberRule
allowedPropertyModifiersString - Field in IllegalClassMemberRule
allowMultiline - Property in AbstractJavadocEmptyTagRule
allowMultiline - Property in AbstractJavadocMissingDescriptionRule
allowNonStaticLogger - Property in LoggerWithWrongModifiersRule
allowProtectedLogger - Property in LoggerWithWrongModifiersRule
allowUsingItAsParameterName - Property in ImplicitClosureParameterRule
AnalysisContext - Class in org.codenarc
Holds information related to the configuration and context for the source code analysis.
AnalysisContext() - Constructor in AnalysisContext
analyze(org.codenarc.ruleset.RuleSet) - Method in AntFileSetSourceAnalyzer
Analyze all source code using the specified RuleSet and return the report results.
analyze(org.codenarc.ruleset.RuleSet) - Method in FilesSourceAnalyzer
Analyze the source with the input list of files using the specified RuleSet and return the report results.
analyze(org.codenarc.ruleset.RuleSet) - Method in FilesystemSourceAnalyzer
Analyze the source with the configured directory tree(s) using the specified RuleSet and return the report results.
analyze(org.codenarc.ruleset.RuleSet) - Method in SourceAnalyzer
Analyze all source code using the specified RuleSet and return the report results.
analyze(org.codenarc.ruleset.RuleSet) - Method in StringSourceAnalyzer
AnalyzerException - Class in org.codenarc.analyzer
Exception thrown by the SourceAnalyzer
AnalyzerException(java.lang.String) - Constructor in AnalyzerException
AntFileSetSourceAnalyzer - Class in org.codenarc.ant
SourceAnalyzer implementation that gets source files from one or more Ant FileSets.
AntFileSetSourceAnalyzer(org.apache.tools.ant.Project, org.apache.tools.ant.types.FileSet) - Constructor in AntFileSetSourceAnalyzer
Construct a new instance on the specified Ant FileSet.
applyRuleTo(java.lang.String) - Method in AbstractRuleTestCase
Apply the current Rule to the specified source (String) and return the resulting List of Violations.
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in AbstractAstVisitorRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in AbstractJavadocEmptyTagRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in AbstractJavadocMissingDescriptionRule
applyTo(org.codenarc.source.SourceCode) - Method in AbstractRule
Apply this rule to the specified source and return a list of violations (or an empty List).
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in AbstractSharedAstVisitorRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in BlankLineBeforePackageRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in BracesForClassRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in ClassJavadocRule
Apply the rule to the given source, writing violations to the given list.
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in ClassNameSameAsFilenameRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in ConsecutiveBlankLinesRule
Apply the rule to the given source, writing violations to the given list.
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in DuplicateImportRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in FileEndsWithoutNewlineRule
Apply the rule to the given source, writing violations to the given list.
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in IllegalRegexRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in IllegalStringRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in ImportFromSamePackageRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in ImportFromSunPackagesRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in IndentationRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in JavadocConsecutiveEmptyLinesRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in JavadocEmptyFirstLineRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in JavadocEmptyLastLineRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in LineLengthRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in MisorderedStaticImportsRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in MissingBlankLineAfterImportsRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in MissingBlankLineAfterPackageRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in NoTabCharacterRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in NoWildcardImportsRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in PackageNameMatchesFilePathRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in RequiredRegexRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in RequiredStringRule
applyTo(org.codenarc.source.SourceCode) - Method in Rule
Apply this rule to the specified source and return a list of violations (or an empty List)
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in SpaceAfterCommentDelimiterRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in SpaceBeforeCommentDelimiterRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in StubRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in TrailingWhitespaceRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in UnnecessaryGroovyImportRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in UnnecessarySemicolonRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in UnusedImportRule
applyTo(org.codenarc.source.SourceCode, List<Violation>) - Method in UnusedVariableRule
applyToClassNames - Property in ChainedTestRule
applyToClassNames - Property in CoupledTestCaseRule
applyToClassNames - Property in GrailsPublicControllerMethodRule
applyToClassNames - Property in GrailsStatelessServiceRule
applyToClassNames - Property in JUnitAssertAlwaysFailsRule
applyToClassNames - Property in JUnitAssertAlwaysSucceedsRule
applyToClassNames - Property in JUnitFailWithoutMessageRule
applyToClassNames - Property in JUnitLostTestRule
applyToClassNames - Property in JUnitPublicFieldRule
applyToClassNames - Property in JUnitPublicNonTestMethodRule
applyToClassNames - Property in JUnitPublicPropertyRule
applyToClassNames - Property in JUnitSetUpCallsSuperRule
applyToClassNames - Property in JUnitStyleAssertionsRule
applyToClassNames - Property in JUnitTearDownCallsSuperRule
applyToClassNames - Property in JUnitTestMethodWithoutAssertRule
applyToClassNames - Property in JUnitUnnecessarySetUpRule
applyToClassNames - Property in JUnitUnnecessaryTearDownRule
applyToClassNames - Property in JUnitUnnecessaryThrowsExceptionRule
applyToClassNames - Property in UnnecessaryFailRule
applyToClassNames - Property in UseAssertEqualsInsteadOfAssertTrueRule
applyToClassNames - Property in UseAssertFalseInsteadOfNegationRule
applyToClassNames - Property in UseAssertNullInsteadOfAssertEqualsRule
applyToClassNames - Property in UseAssertSameInsteadOfAssertTrueRule
applyToClassNames - Property in UseAssertTrueInsteadOfAssertEqualsRule
applyToClassNames - Property in UseAssertTrueInsteadOfNegationRule
applyToClosure - Property in StubRule
applyToFileNames - Property in ClassNotSerializableRule
applyToFileNames - Property in ClosureInGStringRule
applyToFileNames - Property in CpsCallFromNonCpsMethodRule
applyToFileNames - Property in ExpressionInCpsMethodNotSerializableRule
applyToFileNames - Property in ForbiddenCallInCpsMethodRule
applyToFileNames - Property in ObjectOverrideOnlyNonCpsMethods
applyToFileNames - Property in ParameterOrReturnTypeNotSerializableRule
applyToFileNames - Property in SourceCodeCriteria
Only apply to source code (file) names matching this value.
applyToFilesMatching - Property in GrailsDomainHasEqualsRule
applyToFilesMatching - Property in GrailsDomainHasToStringRule
applyToFilesMatching - Property in GrailsDomainReservedSqlKeywordNameRule
applyToFilesMatching - Property in GrailsDomainStringPropertyMaxSizeRule
applyToFilesMatching - Property in GrailsDomainWithServiceReferenceRule
applyToFilesMatching - Property in GrailsDuplicateConstraintRule
applyToFilesMatching - Property in GrailsDuplicateMappingRule
applyToFilesMatching - Property in GrailsPublicControllerMethodRule
applyToFilesMatching - Property in GrailsServletContextReferenceRule
applyToFilesMatching - Property in GrailsStatelessServiceRule
applyToFilesMatching - Property in JUnitAssertEqualsConstantActualValueRule
applyToFilesMatching - Property in SourceCodeCriteria
Apply only to source code (file) pathnames matching this regular expression.
applyToNonMainClasses - Property in ClassJavadocRule
applyVisitor(org.codenarc.rule.AstVisitor, org.codenarc.source.SourceCode) - Method in AbstractSharedAstVisitorRule
areJoinableConstants(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression) - Method in ConsecutiveUtils
areTheSameConstantOrLiteralLists(org.codehaus.groovy.ast.expr.ListExpression, org.codehaus.groovy.ast.expr.ListExpression) - Method in DryUtil
Returns:
true only if both ListExpressions have the same set of constant or literal values, in the same order.
areTheSameConstantOrLiteralMapEntryExpression(org.codehaus.groovy.ast.expr.MapEntryExpression, org.codehaus.groovy.ast.expr.MapEntryExpression) - Method in DryUtil
Returns:
true only if both MapEntryExpressions have the same constant or literal key and value
areTheSameConstantOrLiteralMaps(org.codehaus.groovy.ast.expr.MapExpression, org.codehaus.groovy.ast.expr.MapExpression) - Method in DryUtil
Returns:
true only if both MapExpressions have the same set of constant or literal keys and values, in the same order.
assertClassImplementsRuleInterface(java.lang.Class) - Method in RuleSetUtil
assertInlineViolations(java.lang.String) - Method in AbstractRuleTestCase
Apply the current Rule to the specified source (String) and assert that it results in the violations specified inline within the source.
assertMethodPatterns - Property in JUnitTestMethodWithoutAssertRule
assertNoViolations(java.lang.String) - Method in AbstractRuleTestCase
Apply the current Rule to the specified source (String) and assert that it results in no violations.
assertSingleViolation(java.lang.String, groovy.lang.Closure) - Method in AbstractRuleTestCase
Apply the current Rule to the specified source (String) and assert that it results in a single violation and that the specified closure returns true.
assertTwoViolations(java.lang.String, java.lang.Integer, java.lang.String, java.lang.Object, java.lang.Integer, java.lang.String, java.lang.Object) - Method in AbstractRuleTestCase
Apply the current Rule to the specified source (String) and assert that it results in two violations with the specified line numbers and containing the specified source text values.
assertViolation(org.codenarc.rule.Violation, java.lang.Integer, java.lang.String, java.lang.Object) - Method in AbstractRuleTestCase
Assert that the specified violation is for the current rule, and has expected line number and contains the specified source text and message text.
assertViolations(java.lang.String, java.util.Map) - Method in AbstractRuleTestCase
Apply the current Rule to the specified source (String) and assert that it results in the violations specified in violationMaps.
AssertWithinFinallyBlockRule - Class in org.codenarc.rule.basic
Rule that checks for assert statements within a finally block.
AssertWithinFinallyBlockRule() - Constructor in AssertWithinFinallyBlockRule
AssignCollectionSortRule - Class in org.codenarc.rule.groovyism
The Collections.sort() method mutates the list and returns the list as a value.
AssignCollectionSortRule() - Constructor in AssignCollectionSortRule
AssignCollectionUniqueRule - Class in org.codenarc.rule.groovyism
The unique() method mutates the original list.
AssignCollectionUniqueRule() - Constructor in AssignCollectionUniqueRule
AssignmentInConditionalRule - Class in org.codenarc.rule.basic
An assignment operator (=) was used in a conditional test.
AssignmentInConditionalRule() - Constructor in AssignmentInConditionalRule
AssignmentToStaticFieldFromInstanceMethodRule - Class in org.codenarc.rule.design
Checks for assignment to a static field from an instance method.
AssignmentToStaticFieldFromInstanceMethodRule() - Constructor in AssignmentToStaticFieldFromInstanceMethodRule
AstUtil - Class in org.codenarc.util
Contains static utility methods and constants related to Groovy AST.
AstVisitor - Interface in org.codenarc.rule
Interface for Groovy AST Visitors used with Rules
astVisitorClass - Property in AbcMetricRule
astVisitorClass - Property in AbstractClassNameRule
astVisitorClass - Property in AbstractClassWithoutAbstractMethodRule
astVisitorClass - Property in AbstractClassWithPublicConstructorRule
astVisitorClass - Property in AddEmptyStringRule
astVisitorClass - Property in AssertWithinFinallyBlockRule
astVisitorClass - Property in AssignCollectionSortRule
astVisitorClass - Property in AssignCollectionUniqueRule
astVisitorClass - Property in AssignmentInConditionalRule
astVisitorClass - Property in AssignmentToStaticFieldFromInstanceMethodRule
astVisitorClass - Property in BigDecimalInstantiationRule
astVisitorClass - Property in BitwiseOperatorInConditionalRule
astVisitorClass - Property in BlockEndsWithBlankLineRule
astVisitorClass - Property in BlockStartsWithBlankLineRule
astVisitorClass - Property in BooleanGetBooleanRule
astVisitorClass - Property in BooleanMethodReturnsNullRule
astVisitorClass - Property in BracesForForLoopRule
astVisitorClass - Property in BracesForIfElseRule
astVisitorClass - Property in BracesForMethodRule
astVisitorClass - Property in BracesForTryCatchFinallyRule
astVisitorClass - Property in BrokenNullCheckRule
astVisitorClass - Property in BrokenOddnessCheckRule
astVisitorClass - Property in BuilderMethodWithSideEffectsRule
astVisitorClass - Property in BusyWaitRule
astVisitorClass - Property in ChainedTestRule
astVisitorClass - Property in ClassEndsWithBlankLineRule
astVisitorClass - Property in ClassForNameRule
astVisitorClass - Property in ClassNameRule
astVisitorClass - Property in ClassNameSameAsSuperclassRule
astVisitorClass - Property in ClassNotSerializableRule
astVisitorClass - Property in ClassSizeRule
astVisitorClass - Property in ClassStartsWithBlankLineRule
astVisitorClass - Property in CloneableWithoutCloneRule
astVisitorClass - Property in CloneWithoutCloneableRule
astVisitorClass - Property in CloseWithoutCloseableRule
astVisitorClass - Property in ClosureAsLastMethodParameterRule
astVisitorClass - Property in ClosureInGStringRule
astVisitorClass - Property in ClosureStatementOnOpeningLineOfMultipleLineClosureRule
astVisitorClass - Property in CollectAllIsDeprecatedRule
astVisitorClass - Property in CompareToWithoutComparableRule
astVisitorClass - Property in ComparisonOfTwoConstantsRule
astVisitorClass - Property in ComparisonWithSelfRule
astVisitorClass - Property in CompileStaticRule
astVisitorClass - Property in ConfusingClassNamedExceptionRule
astVisitorClass - Property in ConfusingMethodNameRule
astVisitorClass - Property in ConfusingMultipleReturnsRule
astVisitorClass - Property in ConfusingTernaryRule
astVisitorClass - Property in ConsecutiveLiteralAppendsRule
astVisitorClass - Property in ConsecutiveStringConcatenationRule
astVisitorClass - Property in ConstantAssertExpressionRule
astVisitorClass - Property in ConstantIfExpressionRule
astVisitorClass - Property in ConstantsOnlyInterfaceRule
astVisitorClass - Property in ConstantTernaryExpressionRule
astVisitorClass - Property in CouldBeElvisRule
astVisitorClass - Property in CouldBeSwitchStatementRule
astVisitorClass - Property in CoupledTestCaseRule
astVisitorClass - Property in CpsCallFromNonCpsMethodRule
astVisitorClass - Property in CyclomaticComplexityRule
astVisitorClass - Property in DeadCodeRule
astVisitorClass - Property in DirectConnectionManagementRule
astVisitorClass - Property in DoubleCheckedLockingRule
astVisitorClass - Property in DoubleNegativeRule
astVisitorClass - Property in DuplicateCaseStatementRule
astVisitorClass - Property in DuplicateListLiteralRule
astVisitorClass - Property in DuplicateMapKeyRule
astVisitorClass - Property in DuplicateMapLiteralRule
astVisitorClass - Property in DuplicateSetValueRule
astVisitorClass - Property in ElseBlockBracesRule
astVisitorClass - Property in EmptyCatchBlockRule
astVisitorClass - Property in EmptyClassRule
astVisitorClass - Property in EmptyElseBlockRule
astVisitorClass - Property in EmptyFinallyBlockRule
astVisitorClass - Property in EmptyForStatementRule
astVisitorClass - Property in EmptyIfStatementRule
astVisitorClass - Property in EmptyInstanceInitializerRule
astVisitorClass - Property in EmptyMethodInAbstractClassRule
astVisitorClass - Property in EmptyMethodRule
astVisitorClass - Property in EmptyStaticInitializerRule
astVisitorClass - Property in EmptySwitchStatementRule
astVisitorClass - Property in EmptySynchronizedStatementRule
astVisitorClass - Property in EmptyTryBlockRule
astVisitorClass - Property in EmptyWhileStatementRule
astVisitorClass - Property in EnumCustomSerializationIgnoredRule
astVisitorClass - Property in EqualsAndHashCodeRule
astVisitorClass - Property in EqualsOverloadedRule
astVisitorClass - Property in ExceptionExtendsErrorRule
astVisitorClass - Property in ExceptionExtendsThrowableRule
astVisitorClass - Property in ExceptionNotThrownRule
astVisitorClass - Property in ExplicitCallToAndMethodRule
astVisitorClass - Property in ExplicitCallToCompareToMethodRule
astVisitorClass - Property in ExplicitCallToDivMethodRule
astVisitorClass - Property in ExplicitCallToEqualsMethodRule
astVisitorClass - Property in ExplicitCallToGetAtMethodRule
astVisitorClass - Property in ExplicitCallToLeftShiftMethodRule
astVisitorClass - Property in ExplicitCallToMinusMethodRule
astVisitorClass - Property in ExplicitCallToModMethodRule
astVisitorClass - Property in ExplicitCallToMultiplyMethodRule
astVisitorClass - Property in ExplicitCallToOrMethodRule
astVisitorClass - Property in ExplicitCallToPlusMethodRule
astVisitorClass - Property in ExplicitCallToPowerMethodRule
astVisitorClass - Property in ExplicitCallToPutAtMethodRule
astVisitorClass - Property in ExplicitCallToRightShiftMethodRule
astVisitorClass - Property in ExplicitCallToXorMethodRule
astVisitorClass - Property in ExplicitGarbageCollectionRule
astVisitorClass - Property in ExpressionInCpsMethodNotSerializableRule
astVisitorClass - Property in FactoryMethodNameRule
astVisitorClass - Property in FieldNameRule
astVisitorClass - Property in FieldTypeRequiredRule
astVisitorClass - Property in FileCreateTempFileRule
astVisitorClass - Property in FinalClassWithProtectedMemberRule
astVisitorClass - Property in ForbiddenCallInCpsMethodRule
astVisitorClass - Property in ForLoopShouldBeWhileLoopRule
astVisitorClass - Property in ForStatementBracesRule
astVisitorClass - Property in GetterMethodCouldBePropertyRule
astVisitorClass - Property in GrailsDomainGormMethodsRule
astVisitorClass - Property in GrailsDomainHasEqualsRule
astVisitorClass - Property in GrailsDomainHasToStringRule
astVisitorClass - Property in GrailsDomainReservedSqlKeywordNameRule
astVisitorClass - Property in GrailsDomainStringPropertyMaxSizeRule
astVisitorClass - Property in GrailsDomainWithServiceReferenceRule
astVisitorClass - Property in GrailsDuplicateConstraintRule
astVisitorClass - Property in GrailsDuplicateMappingRule
astVisitorClass - Property in GrailsMassAssignmentRule
astVisitorClass - Property in GrailsPublicControllerMethodRule
astVisitorClass - Property in GrailsServletContextReferenceRule
astVisitorClass - Property in GroovyLangImmutableRule
astVisitorClass - Property in GStringAsMapKeyRule
astVisitorClass - Property in GStringExpressionWithinStringRule
astVisitorClass - Property in HardCodedWindowsFileSeparatorRule
astVisitorClass - Property in HardCodedWindowsRootDirectoryRule
astVisitorClass - Property in IfStatementBracesRule
astVisitorClass - Property in IfStatementCouldBeTernaryRule
astVisitorClass - Property in IllegalClassMemberRule
astVisitorClass - Property in IllegalPackageReferenceRule
astVisitorClass - Property in IllegalSubclassRule
astVisitorClass - Property in ImplementationAsTypeRule
astVisitorClass - Property in ImplicitClosureParameterRule
astVisitorClass - Property in ImplicitReturnStatementRule
astVisitorClass - Property in InconsistentPropertyLockingRule
astVisitorClass - Property in InconsistentPropertySynchronizationRule
astVisitorClass - Property in IndentationRule
astVisitorClass - Property in InsecureRandomRule
astVisitorClass - Property in InstanceofRule
astVisitorClass - Property in IntegerGetIntegerRule
astVisitorClass - Property in InterfaceNameRule
astVisitorClass - Property in InterfaceNameSameAsSuperInterfaceRule
astVisitorClass - Property in InvertedConditionRule
astVisitorClass - Property in InvertedIfElseRule
astVisitorClass - Property in JavaIoPackageAccessRule
astVisitorClass - Property in JUnitAssertAlwaysFailsRule
astVisitorClass - Property in JUnitAssertAlwaysSucceedsRule
astVisitorClass - Property in JUnitAssertEqualsConstantActualValueRule
astVisitorClass - Property in JUnitFailWithoutMessageRule
astVisitorClass - Property in JUnitLostTestRule
astVisitorClass - Property in JUnitPublicFieldRule
astVisitorClass - Property in JUnitPublicNonTestMethodRule
astVisitorClass - Property in JUnitPublicPropertyRule
astVisitorClass - Property in JUnitSetUpCallsSuperRule
astVisitorClass - Property in JUnitStyleAssertionsRule
astVisitorClass - Property in JUnitTearDownCallsSuperRule
astVisitorClass - Property in JUnitUnnecessarySetUpRule
astVisitorClass - Property in JUnitUnnecessaryTearDownRule
astVisitorClass - Property in JUnitUnnecessaryThrowsExceptionRule
astVisitorClass - Property in LocaleSetDefaultRule
astVisitorClass - Property in LoggerForDifferentClassRule
astVisitorClass - Property in LoggerWithWrongModifiersRule
astVisitorClass - Property in LoggingSwallowsStacktraceRule
astVisitorClass - Property in LongLiteralWithLowerCaseLRule
astVisitorClass - Property in MethodCountRule
astVisitorClass - Property in MethodNameRule
astVisitorClass - Property in MethodParameterTypeRequired
astVisitorClass - Property in MethodReturnTypeRequiredRule
astVisitorClass - Property in MethodSizeRule
astVisitorClass - Property in MissingBlankLineBeforeAnnotatedFieldRule
astVisitorClass - Property in MissingNewInThrowStatementRule
astVisitorClass - Property in MissingOverrideAnnotationRule
astVisitorClass - Property in MultipleLoggersRule
astVisitorClass - Property in MultipleUnaryOperatorsRule
astVisitorClass - Property in NestedBlockDepthRule
astVisitorClass - Property in NestedForLoopRule
astVisitorClass - Property in NestedSynchronizationRule
astVisitorClass - Property in NoDefRule
astVisitorClass - Property in NoDoubleRule
astVisitorClass - Property in NoFloatRule
astVisitorClass - Property in NoJavaUtilDateRule
astVisitorClass - Property in NonFinalPublicFieldRule
astVisitorClass - Property in NonFinalSubclassOfSensitiveInterfaceRule
astVisitorClass - Property in NonSerializableFieldInSerializableClass
astVisitorClass - Property in NoScriptBindingsRule
astVisitorClass - Property in ObjectFinalizeRule
astVisitorClass - Property in ObjectOverrideMisspelledMethodNameRule
astVisitorClass - Property in ObjectOverrideOnlyNonCpsMethods
astVisitorClass - Property in OptionalCollectionReturnTypeRule
astVisitorClass - Property in OptionalFieldRule
astVisitorClass - Property in OptionalMethodParameterRule
astVisitorClass - Property in PackageNameRule
astVisitorClass - Property in ParameterAssignmentInFilterClosureRule
astVisitorClass - Property in ParameterCountRule
astVisitorClass - Property in ParameterNameRule
astVisitorClass - Property in ParameterOrReturnTypeNotSerializableRule
astVisitorClass - Property in ParameterReassignmentRule
astVisitorClass - Property in PrintlnRule
astVisitorClass - Property in PrintStackTraceRule
astVisitorClass - Property in PrivateFieldCouldBeFinalRule
astVisitorClass - Property in PropertyNameRule
astVisitorClass - Property in PublicFinalizeMethodRule
astVisitorClass - Property in PublicInstanceFieldRule
astVisitorClass - Property in PublicMethodsBeforeNonPublicMethodsRule
astVisitorClass - Property in RandomDoubleCoercedToZeroRule
astVisitorClass - Property in RemoveAllOnSelfRule
astVisitorClass - Property in ReturnFromFinallyBlockRule
astVisitorClass - Property in ReturnNullFromCatchBlockRule
astVisitorClass - Property in ReturnsNullInsteadOfEmptyArrayRule
astVisitorClass - Property in ReturnsNullInsteadOfEmptyCollectionRule
astVisitorClass - Property in SerializableClassMustDefineSerialVersionUIDRule
astVisitorClass - Property in SerialPersistentFieldsRule
astVisitorClass - Property in SerialVersionUIDRule
astVisitorClass - Property in SimpleDateFormatMissingLocaleRule
astVisitorClass - Property in SpaceAfterCatchRule
astVisitorClass - Property in SpaceAfterClosingBraceRule
astVisitorClass - Property in SpaceAfterCommaRule
astVisitorClass - Property in SpaceAfterForRule
astVisitorClass - Property in SpaceAfterIfRule
astVisitorClass - Property in SpaceAfterMethodCallNameRule
astVisitorClass - Property in SpaceAfterMethodDeclarationNameRule
astVisitorClass - Property in SpaceAfterNotOperatorRule
astVisitorClass - Property in SpaceAfterOpeningBraceRule
astVisitorClass - Property in SpaceAfterSemicolonRule
astVisitorClass - Property in SpaceAfterSwitchRule
astVisitorClass - Property in SpaceAfterWhileRule
astVisitorClass - Property in SpaceAroundClosureArrowRule
astVisitorClass - Property in SpaceAroundMapEntryColonRule
astVisitorClass - Property in SpaceAroundOperatorRule
astVisitorClass - Property in SpaceBeforeClosingBraceRule
astVisitorClass - Property in SpaceBeforeOpeningBraceRule
astVisitorClass - Property in SpaceInsideParenthesesRule
astVisitorClass - Property in SpockIgnoreRestUsedRule
astVisitorClass - Property in SpockMissingAssertRule
astVisitorClass - Property in StatelessClassRule
astVisitorClass - Property in StatelessSingletonRule
astVisitorClass - Property in StaticCalendarFieldRule
astVisitorClass - Property in StaticConnectionRule
astVisitorClass - Property in StaticDateFormatFieldRule
astVisitorClass - Property in StaticFieldsBeforeInstanceFieldsRule
astVisitorClass - Property in StaticMatcherFieldRule
astVisitorClass - Property in StaticMethodsBeforeInstanceMethodsRule
astVisitorClass - Property in StaticSimpleDateFormatFieldRule
astVisitorClass - Property in SwallowThreadDeathRule
astVisitorClass - Property in SynchronizedMethodRule
astVisitorClass - Property in SynchronizedOnBoxedPrimitiveRule
astVisitorClass - Property in SynchronizedOnGetClassRule
astVisitorClass - Property in SynchronizedOnReentrantLockRule
astVisitorClass - Property in SynchronizedOnStringRule
astVisitorClass - Property in SynchronizedOnThisRule
astVisitorClass - Property in SynchronizedReadObjectMethodRule
astVisitorClass - Property in SystemErrPrintRule
astVisitorClass - Property in SystemExitRule
astVisitorClass - Property in SystemOutPrintRule
astVisitorClass - Property in SystemRunFinalizersOnExitRule
astVisitorClass - Property in TernaryCouldBeElvisRule
astVisitorClass - Property in ThisReferenceEscapesConstructorRule
astVisitorClass - Property in ThreadGroupRule
astVisitorClass - Property in ThreadLocalNotStaticFinalRule
astVisitorClass - Property in ThreadYieldRule
astVisitorClass - Property in ThrowExceptionFromFinallyBlockRule
astVisitorClass - Property in ToStringReturnsNullRule
astVisitorClass - Property in TrailingCommaRule
astVisitorClass - Property in UnnecessaryBigDecimalInstantiationRule
astVisitorClass - Property in UnnecessaryBigIntegerInstantiationRule
astVisitorClass - Property in UnnecessaryBooleanExpressionRule
astVisitorClass - Property in UnnecessaryBooleanInstantiationRule
astVisitorClass - Property in UnnecessaryCallForLastElementRule
astVisitorClass - Property in UnnecessaryCallToSubstringRule
astVisitorClass - Property in UnnecessaryCastRule
astVisitorClass - Property in UnnecessaryCatchBlockRule
astVisitorClass - Property in UnnecessaryCollectCallRule
astVisitorClass - Property in UnnecessaryCollectionCallRule
astVisitorClass - Property in UnnecessaryConstructorRule
astVisitorClass - Property in UnnecessaryDefInFieldDeclarationRule
astVisitorClass - Property in UnnecessaryDefInMethodDeclarationRule
astVisitorClass - Property in UnnecessaryDefInVariableDeclarationRule
astVisitorClass - Property in UnnecessaryDotClassRule
astVisitorClass - Property in UnnecessaryDoubleInstantiationRule
astVisitorClass - Property in UnnecessaryElseStatementRule
astVisitorClass - Property in UnnecessaryFailRule
astVisitorClass - Property in UnnecessaryFinalOnPrivateMethodRule
astVisitorClass - Property in UnnecessaryFloatInstantiationRule
astVisitorClass - Property in UnnecessaryGetterRule
astVisitorClass - Property in UnnecessaryGStringRule
astVisitorClass - Property in UnnecessaryIfStatementRule
astVisitorClass - Property in UnnecessaryInstanceOfCheckRule
astVisitorClass - Property in UnnecessaryInstantiationToGetClassRule
astVisitorClass - Property in UnnecessaryIntegerInstantiationRule
astVisitorClass - Property in UnnecessaryLongInstantiationRule
astVisitorClass - Property in UnnecessaryModOneRule
astVisitorClass - Property in UnnecessaryNullCheckBeforeInstanceOfRule
astVisitorClass - Property in UnnecessaryNullCheckRule
astVisitorClass - Property in UnnecessaryObjectReferencesRule
astVisitorClass - Property in UnnecessaryOverridingMethodRule
astVisitorClass - Property in UnnecessaryPackageReferenceRule
astVisitorClass - Property in UnnecessaryParenthesesForMethodCallWithClosureRule
astVisitorClass - Property in UnnecessaryPublicModifierRule
astVisitorClass - Property in UnnecessaryReturnKeywordRule
astVisitorClass - Property in UnnecessarySafeNavigationOperatorRule
astVisitorClass - Property in UnnecessarySelfAssignmentRule
astVisitorClass - Property in UnnecessarySemicolonRule
astVisitorClass - Property in UnnecessarySetterRule
astVisitorClass - Property in UnnecessaryStringInstantiationRule
astVisitorClass - Property in UnnecessaryTernaryExpressionRule
astVisitorClass - Property in UnnecessaryToStringRule
astVisitorClass - Property in UnnecessaryTransientModifierRule
astVisitorClass - Property in UnsafeArrayDeclarationRule
astVisitorClass - Property in UnsafeImplementationAsMapRule
astVisitorClass - Property in UnusedArrayRule
astVisitorClass - Property in UnusedMethodParameterRule
astVisitorClass - Property in UnusedObjectRule
astVisitorClass - Property in UnusedPrivateMethodParameterRule
astVisitorClass - Property in UseAssertEqualsInsteadOfAssertTrueRule
astVisitorClass - Property in UseAssertFalseInsteadOfNegationRule
astVisitorClass - Property in UseAssertNullInsteadOfAssertEqualsRule
astVisitorClass - Property in UseAssertSameInsteadOfAssertTrueRule
astVisitorClass - Property in UseAssertTrueInsteadOfAssertEqualsRule
astVisitorClass - Property in UseAssertTrueInsteadOfNegationRule
astVisitorClass - Property in UseCollectManyRule
astVisitorClass - Property in UseCollectNestedRule
astVisitorClass - Property in UseOfNotifyMethodRule
astVisitorClass - Property in VariableNameRule
astVisitorClass - Property in VariableTypeRequiredRule
astVisitorClass - Property in VolatileArrayFieldRule
astVisitorClass - Property in VolatileLongOrDoubleFieldRule
astVisitorClass - Property in WaitOutsideOfWhileLoopRule
astVisitorClass - Property in WhileStatementBracesRule
AUTO_IMPORTED_CLASSES - Field in AstUtil
AUTO_IMPORTED_PACKAGES - Field in AstUtil

B

BASE_MESSAGES_BUNDLE - Field in AbstractReportWriter
baseDir - Field in CodeNarc
baseDirectory - Property in FilesSourceAnalyzer
The base (root) directory.
baseDirectory - Property in FilesystemSourceAnalyzer
The base (root) directory.
BaselineResultsPlugin - Class in org.codenarc.plugin.baseline
CodeNarc Plugin that removes matching violations specified in a Baseline report.
BaselineResultsPlugin(org.codenarc.util.io.Resource) - Constructor in BaselineResultsPlugin
BaselineViolation - Class in org.codenarc.report
Represents a single violation within a baseline report
BaselineViolation() - Constructor in BaselineViolation
baselineViolationsMap - Field in BaselineResultsPlugin
BaselineXmlReportParser - Class in org.codenarc.report
Parser for the BaselineXmlReportWriter report
BaselineXmlReportParser() - Constructor in BaselineXmlReportParser
BaselineXmlReportWriter - Class in org.codenarc.report
ReportWriter that generates a baseline XML report.
BaselineXmlReportWriter() - Constructor in BaselineXmlReportWriter
BigDecimalInstantiationRule - Class in org.codenarc.rule.basic
Rule that checks for calls to the BigDecimal constructor with a double or float literal.
BigDecimalInstantiationRule() - Constructor in BigDecimalInstantiationRule
BitwiseOperatorInConditionalRule - Class in org.codenarc.rule.basic
Checks for bitwise operations in conditionals, if you need to do a bitwise operation then it is best practice to extract a temp variable.
BitwiseOperatorInConditionalRule() - Constructor in BitwiseOperatorInConditionalRule
BlankLineBeforePackageRule - Class in org.codenarc.rule.formatting
Makes sure there are no blank lines before the package declaration of a source code file.
BlankLineBeforePackageRule() - Constructor in BlankLineBeforePackageRule
blankLineRequired - Property in ClassEndsWithBlankLineRule
blankLineRequired - Property in ClassStartsWithBlankLineRule
BlockEndsWithBlankLineRule - Class in org.codenarc.rule.formatting
Checks that code blocks such as method bodies, closures and control structure bodies do not end with an empty line.
BlockEndsWithBlankLineRule() - Constructor in BlockEndsWithBlankLineRule
BlockStartsWithBlankLineRule - Class in org.codenarc.rule.formatting
Checks that code blocks do not start with an empty line.
BlockStartsWithBlankLineRule() - Constructor in BlockStartsWithBlankLineRule
BooleanGetBooleanRule - Class in org.codenarc.rule.basic
This rule catches usages of java.lang.Boolean.getBoolean(String) which reads a boolean from the System properties.
BooleanGetBooleanRule() - Constructor in BooleanGetBooleanRule
BooleanMethodReturnsNullRule - Class in org.codenarc.rule.design
Method with Boolean return type returns explicit null.
BooleanMethodReturnsNullRule() - Constructor in BooleanMethodReturnsNullRule
BracesForClassRule - Class in org.codenarc.rule.formatting
Checks the location of the opening brace ({) for classes.
BracesForClassRule() - Constructor in BracesForClassRule
BracesForForLoopRule - Class in org.codenarc.rule.formatting
Checks the location of the opening brace ({) for for loops.
BracesForForLoopRule() - Constructor in BracesForForLoopRule
BracesForIfElseRule - Class in org.codenarc.rule.formatting
Checks the location of the opening brace ({) for if statements and optionally closing and opening braces for else statements.
BracesForIfElseRule() - Constructor in BracesForIfElseRule
BracesForMethodRule - Class in org.codenarc.rule.formatting
Checks the location of the opening brace ({) for constructors and methods.
BracesForMethodRule() - Constructor in BracesForMethodRule
BracesForTryCatchFinallyRule - Class in org.codenarc.rule.formatting
Checks the location of the opening brace ({) for try statements, the location of the 'catch' keyword and corresponding opening braces, and the location of the 'finally' keyword and the corresponding opening braces.
BracesForTryCatchFinallyRule() - Constructor in BracesForTryCatchFinallyRule
bracesRequiredForElseIf - Property in ElseBlockBracesRule
BrokenNullCheckRule - Class in org.codenarc.rule.basic
Looks for faulty checks for null in boolean conditions, e.g.
BrokenNullCheckRule() - Constructor in BrokenNullCheckRule
BrokenOddnessCheckRule - Class in org.codenarc.rule.basic
The code uses x % 2 == 1 to check to see if a value is odd, but this won't work for negative numbers (e.g., (-5) % 2 == -1).
BrokenOddnessCheckRule() - Constructor in BrokenOddnessCheckRule
buildBodySection(org.codenarc.AnalysisContext, org.codenarc.results.Results) - Method in AbstractHtmlReportWriter
buildBodySection(org.codenarc.AnalysisContext, org.codenarc.results.Results) - Method in HtmlReportWriter
buildBodySection(org.codenarc.AnalysisContext, org.codenarc.results.Results) - Method in SortableHtmlReportWriter
buildCSS() - Method in AbstractHtmlReportWriter
BuilderMethodWithSideEffectsRule - Class in org.codenarc.rule.design
A builder method is defined as one that creates objects.
BuilderMethodWithSideEffectsRule() - Constructor in BuilderMethodWithSideEffectsRule
buildFileElement(org.codenarc.results.FileResults) - Method in BaselineXmlReportWriter
buildFileElement(org.codenarc.results.FileResults) - Method in JsonReportWriter
buildFileElement(org.codenarc.results.FileResults) - Method in XmlReportWriter
buildFileElements(org.codenarc.results.Results) - Method in BaselineXmlReportWriter
buildHeaderSection() - Method in AbstractHtmlReportWriter
buildLogo() - Method in AbstractHtmlReportWriter
buildMessageElement(org.codenarc.rule.Violation) - Method in BaselineXmlReportWriter
buildMessageElement(org.codenarc.rule.Violation) - Method in XmlReportWriter
buildPackageAttributeMap(org.codenarc.results.Results) - Method in JsonReportWriter
buildPackageAttributeMap(org.codenarc.results.Results) - Method in XmlReportWriter
buildPackageElement(org.codenarc.results.Results) - Method in XmlReportWriter
buildPackageElements(org.codenarc.results.Results) - Method in JsonReportWriter
buildPackageElements(org.codenarc.results.Results) - Method in XmlReportWriter
buildProjectElement(org.codenarc.AnalysisContext) - Method in BaselineXmlReportWriter
buildProjectElement(org.codenarc.AnalysisContext) - Method in JsonReportWriter
buildProjectElement(org.codenarc.AnalysisContext) - Method in XmlReportWriter
buildReportElement() - Method in BaselineXmlReportWriter
buildReportElement() - Method in JsonReportWriter
buildReportElement() - Method in XmlReportWriter
buildReportMetadata() - Method in AbstractHtmlReportWriter
buildRuleDescriptions(org.codenarc.AnalysisContext) - Method in AbstractHtmlReportWriter
buildRulesElement(org.codenarc.AnalysisContext) - Method in InlineXmlReportWriter
buildRulesElement(org.codenarc.AnalysisContext) - Method in JsonReportWriter
buildRulesElement(org.codenarc.AnalysisContext) - Method in XmlReportWriter
buildScript() - Method in AbstractHtmlReportWriter
buildScript() - Method in SortableHtmlReportWriter
buildSourceLineElement(org.codenarc.rule.Violation) - Method in XmlReportWriter
buildSummaryElement(org.codenarc.results.Results) - Method in JsonReportWriter
buildTitle() - Method in AbstractHtmlReportWriter
buildViolationElement(org.codenarc.rule.Violation) - Method in BaselineXmlReportWriter
buildViolationElement(org.codenarc.rule.Violation) - Method in InlineXmlReportWriter
buildViolationElement(org.codenarc.rule.Violation) - Method in JsonReportWriter
buildViolationElement(org.codenarc.rule.Violation) - Method in XmlReportWriter
BusyWaitRule - Class in org.codenarc.rule.concurrency
Busy waiting (forcing a Thread.sleep() while waiting on a condition) should be avoided.
BusyWaitRule() - Constructor in BusyWaitRule

C

CatchArrayIndexOutOfBoundsExceptionRule - Class in org.codenarc.rule.exceptions
Rule that checks for catching a ArrayIndexOutOfBoundsException
CatchArrayIndexOutOfBoundsExceptionRule() - Constructor in CatchArrayIndexOutOfBoundsExceptionRule
CatchErrorRule - Class in org.codenarc.rule.exceptions
Rule that checks for catching a Error
CatchErrorRule() - Constructor in CatchErrorRule
CatchExceptionRule - Class in org.codenarc.rule.exceptions
Rule that checks for catching a Exception
CatchExceptionRule() - Constructor in CatchExceptionRule
CatchIllegalMonitorStateExceptionRule - Class in org.codenarc.rule.exceptions
Rule to trap when IllegalMonitorStateException is being caught.
CatchIllegalMonitorStateExceptionRule() - Constructor in CatchIllegalMonitorStateExceptionRule
CatchIndexOutOfBoundsExceptionRule - Class in org.codenarc.rule.exceptions
Rule that checks for catching a IndexOutOfBoundsException
CatchIndexOutOfBoundsExceptionRule() - Constructor in CatchIndexOutOfBoundsExceptionRule
CatchNullPointerExceptionRule - Class in org.codenarc.rule.exceptions
Rule that checks for catching a NullPointerException
CatchNullPointerExceptionRule() - Constructor in CatchNullPointerExceptionRule
catchOnSameLineAsClosingBrace - Property in BracesForTryCatchFinallyRule
catchOnSameLineAsOpeningBrace - Property in BracesForTryCatchFinallyRule
CatchRuntimeExceptionRule - Class in org.codenarc.rule.exceptions
Rule that checks for catching a RuntimeException
CatchRuntimeExceptionRule() - Constructor in CatchRuntimeExceptionRule
CatchThrowableRule - Class in org.codenarc.rule.exceptions
Rule that checks for catching a Throwable
CatchThrowableRule() - Constructor in CatchThrowableRule
cdata(java.lang.String) - Method in XmlReportUtil
ChainedTestRule - Class in org.codenarc.rule.junit
A test method that invokes another test method is a chained test; the methods are dependent on one another.
ChainedTestRule() - Constructor in ChainedTestRule
characterAfterColonRegex - Property in SpaceAroundMapEntryColonRule
characterBeforeColonRegex - Property in SpaceAroundMapEntryColonRule
checkAssertStatements - Property in UseAssertTrueInsteadOfAssertEqualsRule
checkAssignments - Property in UnnecessaryToStringRule
checkClosureMapEntryValue - Property in SpaceAfterClosingBraceRule
deprecated:
Ignored
checkClosureMapEntryValue - Property in SpaceAfterOpeningBraceRule
checkClosureMapEntryValue - Property in SpaceBeforeClosingBraceRule
checkClosureMapEntryValue - Property in SpaceBeforeOpeningBraceRule
checkForSingleSpaceAndOpeningParenthesis(org.codehaus.groovy.ast.ASTNode, java.lang.String) - Method in AbstractSingleSpaceAfterKeywordAstVisitor
checkIsMethods - Property in UnnecessaryGetterRule
checkLastStatementImplicitElse - Property in IfStatementCouldBeTernaryRule
checkLastStatementImplicitElse - Property in UnnecessaryIfStatementRule
checkList - Property in TrailingCommaRule
checkMap - Property in TrailingCommaRule
checkMaxViolations(org.codenarc.results.Results, int, int) - Method in CodeNarc
CLASS_LOADER_SYS_PROP - Field in RuleSetUtil
ClassEndsWithBlankLineRule - Class in org.codenarc.rule.formatting
Check whether the class ends with a blank line.
ClassEndsWithBlankLineRule() - Constructor in ClassEndsWithBlankLineRule
ClassForNameRule - Class in org.codenarc.rule.basic
Using Class.forName(...) is a common way to add dynamic behavior to a system.
ClassForNameRule() - Constructor in ClassForNameRule
ClassJavadocRule - Class in org.codenarc.rule.comments
Makes sure each class and interface definition is preceded by javadoc.
ClassJavadocRule() - Constructor in ClassJavadocRule
ClassNameRule - Class in org.codenarc.rule.naming
Rule that verifies that the name of a class matches a regular expression.
ClassNameRule() - Constructor in ClassNameRule
classNames - Property in IllegalClassReferenceRule
ClassNameSameAsFilenameRule - Class in org.codenarc.rule.naming
Reports files containing only one top level class / enum / interface which is named differently than the file.
ClassNameSameAsFilenameRule() - Constructor in ClassNameSameAsFilenameRule
ClassNameSameAsSuperclassRule - Class in org.codenarc.rule.naming
Checks for any class that has an identical name to its superclass, other than the package.
ClassNameSameAsSuperclassRule() - Constructor in ClassNameSameAsSuperclassRule
classNodeHasProperty(org.codehaus.groovy.ast.ClassNode, java.lang.String) - Method in AstUtil
classNodeImplementsType(org.codehaus.groovy.ast.ClassNode, java.lang.Class) - Method in AstUtil
This method tells you if a ClassNode implements or extends a certain class.
classNodeIndentLevels - Field in IndentationRule
classNodeType(org.codehaus.groovy.ast.ClassNode) - Method in ClassNameSameAsFilenameRule
ClassNotSerializableRule - Class in org.codenarc.rule.jenkins
Classes in Jenkins pipeline libraries and Jenkinsfiles should generally implement the Serializable interface because every expression/variable used in a CPS transformed method can potentially be serialized
ClassNotSerializableRule() - Constructor in ClassNotSerializableRule
classpath - Property in CodeNarcTask
Classpath used when compiling analysed classes.
ClassPathResource - Class in org.codenarc.util.io
A Resource implementation for resources available on the classpath.
ClassPathResource(java.lang.String) - Constructor in ClassPathResource
Construct a new ClassPathResource
path:
- the path to the resource (file).
ClassReferenceAstVisitor - Class in org.codenarc.rule
AstVisitor that check for references for a named class
ClassReferenceAstVisitor(java.lang.String, java.lang.String) - Constructor in ClassReferenceAstVisitor
Constructor
ClassSizeRule - Class in org.codenarc.rule.size
Rule that checks the size of a class.
ClassSizeRule() - Constructor in ClassSizeRule
ClassStartsWithBlankLineRule - Class in org.codenarc.rule.formatting
Check whether the class starts with a blank line.
ClassStartsWithBlankLineRule() - Constructor in ClassStartsWithBlankLineRule
CLEAR_METHOD_NAME - Field in ValueRecorder
clear() - Method in ValueRecorder
CloneableWithoutCloneRule - Class in org.codenarc.rule.design
A class that implements Cloneable should define a clone() method.
CloneableWithoutCloneRule() - Constructor in CloneableWithoutCloneRule
CloneWithoutCloneableRule - Class in org.codenarc.rule.design
The method clone() should only be declared if the class implements the Cloneable interface.
CloneWithoutCloneableRule() - Constructor in CloneWithoutCloneableRule
CloseWithoutCloseableRule - Class in org.codenarc.rule.design
If a class defines a "void close()" then that class should implement java.io.Closeable.
CloseWithoutCloseableRule() - Constructor in CloseWithoutCloseableRule
CLOSURE_TEXT - Field in AbstractAstVisitorRule
ClosureAsLastMethodParameterRule - Class in org.codenarc.rule.groovyism
If a method is called and the last parameter is an inline closure it can be declared outside of the method call brackets.
ClosureAsLastMethodParameterRule() - Constructor in ClosureAsLastMethodParameterRule
ClosureInGStringRule - Class in org.codenarc.rule.jenkins
Closures are CPS transformed in Jenkins and will cause an error at runtime when used in GStrings.
ClosureInGStringRule() - Constructor in ClosureInGStringRule
ClosureStatementOnOpeningLineOfMultipleLineClosureRule - Class in org.codenarc.rule.formatting
Checks for closure logic on first line (after ->) for a multi-line closure
ClosureStatementOnOpeningLineOfMultipleLineClosureRule() - Constructor in ClosureStatementOnOpeningLineOfMultipleLineClosureRule
coberturaXmlFile - Property in CrapMetricRule
CodeNarc - Class in org.codenarc
Command-line runner for CodeNarc.
CodeNarc() - Constructor in CodeNarc
CODENARC_PROPERTIES_FILE_PROP - Field in AbstractTestCase
CODENARC_URL - Field in AbstractReportWriter
CodeNarcPlugin - Interface in org.codenarc.plugin
The interface defining the set of hooks for a CodeNarc Plugin
CodeNarcRunner - Class in org.codenarc
Helper class to run CodeNarc.
CodeNarcRunner() - Constructor in CodeNarcRunner
CodeNarcTask - Class in org.codenarc.ant
Ant Task for running CodeNarc.
CodeNarcTask() - Constructor in CodeNarcTask
CodeNarcVersion - Class in org.codenarc.util
Utility class to return the current version of CodeNarc
CodeNarcVersion() - Constructor in CodeNarcVersion
CollectAllIsDeprecatedRule - Class in org.codenarc.rule.groovyism
collectAll is deprecated since Groovy 1.8.1.
CollectAllIsDeprecatedRule() - Constructor in CollectAllIsDeprecatedRule
collectViolations(org.codenarc.source.SourceCode, org.codenarc.ruleset.RuleSet) - Method in AbstractSourceAnalyzer
comesBefore - Property in MisorderedStaticImportsRule
CommentsUtil - Class in org.codenarc.rule.comments
Utility methods and constants related to comments rules
CommonCatchAstVisitor - Class in org.codenarc.rule.exceptions
AstVisitor implementation that checks for catching an exception type specified in the constructor

This is an internal class and its API is subject to change.

CommonCatchAstVisitor(java.lang.String) - Constructor in CommonCatchAstVisitor
Construct a new instance, specifying the exception class name
CommonThrowAstVisitor - Class in org.codenarc.rule.exceptions
AstVisitor implementation that checks for throwing one of the exception type names specified in the constructor

This is an internal class and its API is subject to change.

CommonThrowAstVisitor(java.util.List) - Constructor in CommonThrowAstVisitor
Construct a new instance, specifying the exception type names
CompactTextReportWriter - Class in org.codenarc.report
ReportWriter that generates an simple ASCII text report, with one line per violation.
CompactTextReportWriter() - Constructor in CompactTextReportWriter
compare(org.codenarc.rule.Violation, org.codenarc.rule.Violation) - Method in AbstractAstVisitorRule
compare(org.codehaus.groovy.ast.FieldNode, org.codehaus.groovy.ast.FieldNode) - Method in AbstractFieldVisitor
compare(org.codenarc.results.FileResults, org.codenarc.results.FileResults) - Method in AntFileSetSourceAnalyzer
CompareToWithoutComparableRule - Class in org.codenarc.rule.design
If you implement a compareTo method then you should also implement the Comparable interface.
CompareToWithoutComparableRule() - Constructor in CompareToWithoutComparableRule
COMPARISON_OPERATORS - Field in AstUtil
ComparisonOfTwoConstantsRule - Class in org.codenarc.rule.basic
CodeNarc Rule.
ComparisonOfTwoConstantsRule() - Constructor in ComparisonOfTwoConstantsRule
ComparisonWithSelfRule - Class in org.codenarc.rule.basic
CodeNarc Rule.
ComparisonWithSelfRule() - Constructor in ComparisonWithSelfRule
compilerPhase - Property in ClassNotSerializableRule
compilerPhase - Property in CloneWithoutCloneableRule
compilerPhase - Property in CpsCallFromNonCpsMethodRule
compilerPhase - Property in ExpressionInCpsMethodNotSerializableRule
compilerPhase - Property in ForbiddenCallInCpsMethodRule
compilerPhase - Property in GrailsDomainGormMethodsRule
compilerPhase - Property in JUnitAssertEqualsConstantActualValueRule
compilerPhase - Property in MissingOverrideAnnotationRule
compilerPhase - Property in NonSerializableFieldInSerializableClass
compilerPhase - Property in ObjectOverrideOnlyNonCpsMethods
compilerPhase - Property in ParameterOrReturnTypeNotSerializableRule
compilerPhase - Property in UnsafeImplementationAsMapRule
CompileStaticRule - Class in org.codenarc.rule.convention
Enforces classes are annotated either with one of the CompileStatic, GrailsCompileStatic or CompileDynamic annotations
CompileStaticRule() - Constructor in CompileStaticRule
CompositeRuleSet - Class in org.codenarc.ruleset
A RuleSet implementation that aggregates a set of RuleSets and Rules.
CompositeRuleSet() - Constructor in CompositeRuleSet
configure(org.codenarc.ruleset.RuleSet, java.lang.String) - Method in PropertiesFileRuleSetConfigurer
Configure the rules within the RuleSet from the properties file (relative to the classpath).
configure(org.codenarc.ruleset.RuleSet, java.lang.String) - Method in RuleSetConfigurer
ConfusingClassNamedExceptionRule - Class in org.codenarc.rule.exceptions
This rule traps classes named exception that do not inherit from exception.
ConfusingClassNamedExceptionRule() - Constructor in ConfusingClassNamedExceptionRule
ConfusingMethodNameRule - Class in org.codenarc.rule.naming
This rule traps the condition where two methods or closures differ only by their capitalization.
ConfusingMethodNameRule() - Constructor in ConfusingMethodNameRule
ConfusingMultipleReturnsRule - Class in org.codenarc.rule.groovyism
Multiple return values can be used to set several variables at once.
ConfusingMultipleReturnsRule() - Constructor in ConfusingMultipleReturnsRule
ConfusingTernaryRule - Class in org.codenarc.rule.convention
In an "if" expression with an "else" clause, avoid negation in the test.
ConfusingTernaryRule() - Constructor in ConfusingTernaryRule
ConsecutiveBlankLinesRule - Class in org.codenarc.rule.formatting
Makes sure there are no consecutive lines that are either blank or whitespace only.
ConsecutiveBlankLinesRule() - Constructor in ConsecutiveBlankLinesRule
ConsecutiveLiteralAppendsRule - Class in org.codenarc.rule.unnecessary
Violations occur when method calls to append(Object) are chained together with literals as parameters.
ConsecutiveLiteralAppendsRule() - Constructor in ConsecutiveLiteralAppendsRule
ConsecutiveStringConcatenationRule - Class in org.codenarc.rule.unnecessary
Catches concatenation of two string literals on the same line.
ConsecutiveStringConcatenationRule() - Constructor in ConsecutiveStringConcatenationRule
ConsecutiveUtils - Class in org.codenarc.util
Utility class for Consecutive* rules.
ConsecutiveUtils() - Constructor in ConsecutiveUtils
ConstantAssertExpressionRule - Class in org.codenarc.rule.basic
Rule that checks for assert statements where the assert condition expressions is a constant value or literal value, such as:
  • assert true
  • assert false
  • assert Boolean.TRUE
  • assert Boolean.FALSE
  • assert null
  • assert 0
  • assert 99.7
  • assert ""
  • assert "abc"
  • assert [:]
  • assert [a:123, b:456]
  • assert [a, b, c]
ConstantAssertExpressionRule() - Constructor in ConstantAssertExpressionRule
ConstantIfExpressionRule - Class in org.codenarc.rule.basic
Rule that checks for if statement with a constant value for the if expression, such as:
  • if (true) { .. }
  • if (false) { .. }
  • if (Boolean.TRUE) { .. }
  • if (Boolean.FALSE) { .. }
  • if (null) { .. }
  • if (0) { .. }
  • if (99.7) { .. }
  • if ("") { .. }
  • if ("abc") { .. }
  • if ([a:123, b:456]) { .. }
  • if ([a, b]) { .. }
ConstantIfExpressionRule() - Constructor in ConstantIfExpressionRule
constants - Property in DuplicateLiteralAstVisitor
ConstantsOnlyInterfaceRule - Class in org.codenarc.rule.design
An interface should be used only to model a behaviour of a class: using an interface as a container of constants is a poor usage pattern.
ConstantsOnlyInterfaceRule() - Constructor in ConstantsOnlyInterfaceRule
ConstantTernaryExpressionRule - Class in org.codenarc.rule.basic
Rule that checks for ternary expressions with a constant value for the boolean expression, such as:
  • true ?
ConstantTernaryExpressionRule() - Constructor in ConstantTernaryExpressionRule
CONSTRUCTOR_METHOD_NAME - Field in AbstractRuleTestCase
ConstructorsSkippingFieldReferenceAstVisitor - Class in org.codenarc.rule
AstVisitor that checks for references to fields outside of constructors
ConstructorsSkippingFieldReferenceAstVisitor() - Constructor in ConstructorsSkippingFieldReferenceAstVisitor
containsOnlyAsciiCharacters(java.lang.String) - Method in SourceCodeUtil
CONTROLLERS_AND_TAGLIB_FILES - Field in GrailsUtil
CONTROLLERS_CLASSES - Field in GrailsUtil
CONTROLLERS_FILES - Field in GrailsUtil
CouldBeElvisRule - Class in org.codenarc.rule.convention
Catch an if block that could be written as an elvis expression.
CouldBeElvisRule() - Constructor in CouldBeElvisRule
CouldBeSwitchStatementRule - Class in org.codenarc.rule.convention
Checks for multiple if statements that could be converted to a switch
CouldBeSwitchStatementRule() - Constructor in CouldBeSwitchStatementRule
CoupledTestCaseRule - Class in org.codenarc.rule.junit
This rule finds test cases that are coupled to other test cases, either by invoking static methods on another test case or by creating instances of another test case.
CoupledTestCaseRule() - Constructor in CoupledTestCaseRule
CpsCallFromNonCpsMethodRule - Class in org.codenarc.rule.jenkins
CPS transformed methods may not be called from non CPS transformed methods in Jenkins
CpsCallFromNonCpsMethodRule() - Constructor in CpsCallFromNonCpsMethodRule
cpsPackages - Property in CpsCallFromNonCpsMethodRule
cpsScriptVariableName - Property in CpsCallFromNonCpsMethodRule
crapMetricClassName - Field in CrapMetricRule
CrapMetricRule - Class in org.codenarc.rule.size
Rule that calculates the CRAP Metric for methods/classes and checks against configured threshold values.
CrapMetricRule() - Constructor in CrapMetricRule
createClasspath() - Method in CodeNarcTask
createCodeNarcRunner - Field in CodeNarc
createCodeNarcRunner - Field in CodeNarcTask
createErrorMessage() - Method in ExplicitArrayListInstantiationRule.1
createErrorMessage() - Method in ExplicitHashMapInstantiationRule.1
createErrorMessage() - Method in ExplicitHashSetInstantiationRule.1
createErrorMessage() - Method in ExplicitLinkedHashMapInstantiationRule.1
createErrorMessage() - Method in ExplicitLinkedListInstantiationRule.1
createErrorMessage() - Method in ExplicitStackInstantiationRule.1
createErrorMessage() - Method in ExplicitTreeSetInstantiationRule.1
createErrorMessage() - Method in ExplicitTypeInstantiationAstVisitor
createInitialRuleSet() - Method in CodeNarcRunner
Create and return the RuleSet that provides the source of Rules to be applied.
createMetric() - Method in AbstractMethodMetricAstVisitor
createPrettyExpression(org.codehaus.groovy.ast.ASTNode) - Method in AstUtil
createRule() - Method in AbstractRuleTestCase
Create and return a new instance of the Rule class to be tested.
createSortedListOfAllRules() - Method in GenerateUtil
createSourceAnalyzer() - Method in CodeNarc
Create and return the SourceAnalyzer
createSourceAnalyzer() - Method in CodeNarcTask
Create and return the SourceAnalyzer
createViolation(org.codenarc.source.SourceCode, org.codehaus.groovy.ast.ASTNode, java.lang.String) - Method in AbstractRule
Create a new Violation for the AST node.
createViolationForImport(org.codenarc.source.SourceCode, java.lang.String, java.lang.String, java.lang.String) - Method in AbstractRule
Create and return a new Violation for this rule and the specified import className and alias
CSS_FILE - Field in AbstractHtmlReportWriter
currentClassNode - Field in AbstractMethodCallExpressionVisitor
CUSTOM_MESSAGES_BUNDLE - Field in AbstractReportWriter
CustomCompilerPhaseSourceDecorator - Class in org.codenarc.source
A SourceCode decorator overriding the decorated source's returned AST so that it meets the user's compilerPhase requirements.
CustomCompilerPhaseSourceDecorator(org.codenarc.source.SourceCode, int) - Constructor in CustomCompilerPhaseSourceDecorator
customMessagesBundleName - Field in AbstractReportWriter
CyclomaticComplexityRule - Class in org.codenarc.rule.size
Rule that calculates the Cyclomatic Complexity for methods/classes and checks against configured threshold values.
CyclomaticComplexityRule() - Constructor in CyclomaticComplexityRule

D

DeadCodeRule - Class in org.codenarc.rule.basic
Dead code appears after a return statement or an exception is thrown.
DeadCodeRule() - Constructor in DeadCodeRule
DEFAULT_COMPILER_PHASE - Field in SourceCode
DEFAULT_CONST_NAME - Field in AbstractAstVisitorRule
DEFAULT_FIELD_NAME - Field in AbstractAstVisitorRule
DEFAULT_GORM_STATIC_METHOD_NAMES - Field in GrailsDomainGormMethodsRule
DEFAULT_OUTPUT_FILE - Field in HtmlReportWriter
DEFAULT_OUTPUT_FILE - Field in SortableHtmlReportWriter
DEFAULT_TEST_CLASS_NAMES - Field in AbstractAstVisitorRule
DEFAULT_TEST_CLASS_NAMES - Field in AbstractRuleTestCase
DEFAULT_TEST_FILES - Field in AbstractAstVisitorRule
DEFAULT_TEST_FILES - Field in AbstractRuleTestCase
DEFAULT_VAR_NAME - Field in AbstractAstVisitorRule
defaultOutputFile - Property in BaselineXmlReportWriter
defaultOutputFile - Property in GitlabCodeQualityReportWriter
defaultOutputFile - Property in HtmlReportWriter
defaultOutputFile - Property in JsonReportWriter
defaultOutputFile - Property in SortableHtmlReportWriter
defaultOutputFile - Property in TextReportWriter
defaultOutputFile - Property in XmlReportWriter
defaultPropertiesFilename - Field in PropertiesFileRuleSetConfigurer
DefaultResourceFactory - Class in org.codenarc.util.io
Default implementation of ResourceFactory.
DefaultResourceFactory() - Constructor in DefaultResourceFactory
DirectConnectionManagementRule - Class in org.codenarc.rule.jdbc
The J2EE standard requires that applications use the container's resource management facilities to obtain connections to resources.
DirectConnectionManagementRule() - Constructor in DirectConnectionManagementRule
DirectoryResults - Class in org.codenarc.results
Represents the results for a directory
DirectoryResults(java.lang.String) - Constructor in DirectoryResults
Create a new instance with the specified path
disabledRuleNamesForLineNumber(java.lang.Integer) - Method in LookupTable
DisableRulesInCommentsPlugin - Class in org.codenarc.plugin.disablerules
Plugin that enables enablement/disablement of rules (and removing their violations) using comments within the source code
DisableRulesInCommentsPlugin() - Constructor in DisableRulesInCommentsPlugin
DOMAIN_FILES - Field in GrailsUtil
doNotApplyToFileNames - Property in SourceCodeCriteria
Do NOT apply to source code (file) names matching this value.
doNotApplyToFilesMatching - Property in DuplicateListLiteralRule
doNotApplyToFilesMatching - Property in DuplicateMapLiteralRule
doNotApplyToFilesMatching - Property in DuplicateNumberLiteralRule
doNotApplyToFilesMatching - Property in DuplicateStringLiteralRule
doNotApplyToFilesMatching - Property in FileCreateTempFileRule
doNotApplyToFilesMatching - Property in InsecureRandomRule
doNotApplyToFilesMatching - Property in InstanceofRule
doNotApplyToFilesMatching - Property in JavaIoPackageAccessRule
doNotApplyToFilesMatching - Property in SourceCodeCriteria
Do NOT apply to source code (file) pathnames matching this regular expression.
doNotApplyToFilesMatching - Property in UnsafeImplementationAsMapRule
doNotApplyToFilesMatching - Property in UnusedObjectRule
DoubleCheckedLockingRule - Class in org.codenarc.rule.concurrency
This rule detects double checked locking, where a 'lock hint' is tested for null before initializing an object within a synchronized block.
DoubleCheckedLockingRule() - Constructor in DoubleCheckedLockingRule
DoubleNegativeRule - Class in org.codenarc.rule.basic
There is no point in using a double negative, it is always positive.
DoubleNegativeRule() - Constructor in DoubleNegativeRule
DryUtil - Class in org.codenarc.rule.dry
Utility methods for the DRY rule classes
DryUtil() - Constructor in DryUtil
DuplicateCaseStatementRule - Class in org.codenarc.rule.basic
Rule that checks for duplicate case statements in a switch block, such as two equal integers or strings.
DuplicateCaseStatementRule() - Constructor in DuplicateCaseStatementRule
DuplicateImportRule - Class in org.codenarc.rule.imports
Rule that checks for a duplicate import
DuplicateImportRule() - Constructor in DuplicateImportRule
DuplicateListLiteralRule - Class in org.codenarc.rule.dry
Check for multiple instances of the same List literal, limited to Lists where the values are all constants or literals.
DuplicateListLiteralRule() - Constructor in DuplicateListLiteralRule
DuplicateLiteralAstVisitor - Class in org.codenarc.rule.dry
Abstract superclass for rule AstVisitor classes that detect duplicate literal constants
DuplicateLiteralAstVisitor(List<Class>, java.util.Set, groovy.lang.Closure) - Constructor in DuplicateLiteralAstVisitor
DuplicateMapKeyRule - Class in org.codenarc.rule.basic
A map literal is created with duplicated key.
DuplicateMapKeyRule() - Constructor in DuplicateMapKeyRule
DuplicateMapLiteralRule - Class in org.codenarc.rule.dry
Check for multiple instances of the same Map literal, limited to Maps where the keys and values are all constants or literals.
DuplicateMapLiteralRule() - Constructor in DuplicateMapLiteralRule
DuplicateNumberLiteralRule - Class in org.codenarc.rule.dry
Checks for duplication of constant number literal values.
DuplicateNumberLiteralRule() - Constructor in DuplicateNumberLiteralRule
duplicateNumberMinimumValue - Property in DuplicateNumberLiteralRule
DuplicateSetValueRule - Class in org.codenarc.rule.basic
A Set literal is created with duplicate constant value.
DuplicateSetValueRule() - Constructor in DuplicateSetValueRule
DuplicateStringLiteralRule - Class in org.codenarc.rule.dry
Code containing duplicate String literals can usually be improved by declaring the String as a constant field.
DuplicateStringLiteralRule() - Constructor in DuplicateStringLiteralRule
duplicateStringMinimumLength - Property in DuplicateStringLiteralRule

E

eachImportLine(org.codenarc.source.SourceCode, groovy.lang.Closure) - Method in AbstractImportRule
EFFECTIVELY_SERIALIZABLE - Property in SerializationUtil
ElseBlockBracesRule - Class in org.codenarc.rule.braces
Rule that checks that else blocks use braces rather than a single statement.
ElseBlockBracesRule() - Constructor in ElseBlockBracesRule
elseOnSameLineAsClosingBrace - Property in BracesForIfElseRule
elseOnSameLineAsOpeningBrace - Property in BracesForIfElseRule
EmptyCatchBlockRule - Class in org.codenarc.rule.basic
Rule that checks for empty catch blocks
EmptyCatchBlockRule() - Constructor in EmptyCatchBlockRule
EmptyClassRule - Class in org.codenarc.rule.basic
Reports classes without methods, fields or properties.
EmptyClassRule() - Constructor in EmptyClassRule
EmptyElseBlockRule - Class in org.codenarc.rule.basic
Rule that checks for empty else blocks
EmptyElseBlockRule() - Constructor in EmptyElseBlockRule
EmptyFinallyBlockRule - Class in org.codenarc.rule.basic
Rule that checks for empty finally blocks
EmptyFinallyBlockRule() - Constructor in EmptyFinallyBlockRule
EmptyForStatementRule - Class in org.codenarc.rule.basic
Rule that checks for empty for statements
EmptyForStatementRule() - Constructor in EmptyForStatementRule
EmptyIfStatementRule - Class in org.codenarc.rule.basic
Rule that checks for empty if statements
EmptyIfStatementRule() - Constructor in EmptyIfStatementRule
EmptyInstanceInitializerRule - Class in org.codenarc.rule.basic
The class has an empty instance initializer.
EmptyInstanceInitializerRule() - Constructor in EmptyInstanceInitializerRule
EmptyMethodInAbstractClassRule - Class in org.codenarc.rule.design
An empty method in an abstract class should be abstract instead, as developer may rely on this empty implementation rather than code the appropriate one.
EmptyMethodInAbstractClassRule() - Constructor in EmptyMethodInAbstractClassRule
EmptyMethodRule - Class in org.codenarc.rule.basic
A method was found without an implementation.
EmptyMethodRule() - Constructor in EmptyMethodRule
EmptyStaticInitializerRule - Class in org.codenarc.rule.basic
An empty static initializer was found.
EmptyStaticInitializerRule() - Constructor in EmptyStaticInitializerRule
EmptySwitchStatementRule - Class in org.codenarc.rule.basic
Rule that checks for empty switch statements
EmptySwitchStatementRule() - Constructor in EmptySwitchStatementRule
EmptySynchronizedStatementRule - Class in org.codenarc.rule.basic
Rule that checks for empty synchronized statement
EmptySynchronizedStatementRule() - Constructor in EmptySynchronizedStatementRule
EmptyTryBlockRule - Class in org.codenarc.rule.basic
Rule that checks for empty try blocks
EmptyTryBlockRule() - Constructor in EmptyTryBlockRule
EmptyWhileStatementRule - Class in org.codenarc.rule.basic
Rule that checks for empty while statements
EmptyWhileStatementRule() - Constructor in EmptyWhileStatementRule
endsWithSemicolon(java.lang.String, int) - Method in UnnecessarySemicolonRule
ENHANCED_MODE_SYSTEM_PROPERTY - Field in AbstractEnhanceableAstVisitorRule
Holds the name of the system property which allows to control the enhancedMode property.
EnumCustomSerializationIgnoredRule - Class in org.codenarc.rule.serialization
Checks for enums that define writeObject() or writeReplace() methods, or declare serialPersistentFields or serialVersionUID fields, all of which are ignored for enums.
EnumCustomSerializationIgnoredRule() - Constructor in EnumCustomSerializationIgnoredRule
EqualsAndHashCodeRule - Class in org.codenarc.rule.basic
Rule that checks that if either the boolean equals(Object) or the int hashCode() methods are overridden within a class, then both must be overridden.
EqualsAndHashCodeRule() - Constructor in EqualsAndHashCodeRule
EqualsOverloadedRule - Class in org.codenarc.rule.basic
The class has an equals method, but the parameter of the method is not of type Object.
EqualsOverloadedRule() - Constructor in EqualsOverloadedRule
errorMessage - Property in CouldBeSwitchStatementRule
errorMessage - Property in NullReturnTracker
ExceptionExtendsErrorRule - Class in org.codenarc.rule.exceptions
Errors are system exceptions.
ExceptionExtendsErrorRule() - Constructor in ExceptionExtendsErrorRule
ExceptionExtendsThrowableRule - Class in org.codenarc.rule.exceptions
Checks for classes that extend Throwable.
ExceptionExtendsThrowableRule() - Constructor in ExceptionExtendsThrowableRule
ExceptionNotThrownRule - Class in org.codenarc.rule.exceptions
Checks for an exception constructor call as the last statement within a catch block.
ExceptionNotThrownRule() - Constructor in ExceptionNotThrownRule
excludeBaseline - Property in CodeNarc
The path to a Baseline Violations report (report type "baseline").
excludeBaseline - Property in CodeNarcTask
The path to a Baseline Violations report (report type "baseline").
excludePattern - Field in NoDefRule
excludes - Field in CodeNarc
excludes - Property in FilesystemSourceAnalyzer
The ant-style pattern of files to exclude from the analysis.
execute(java.lang.String) - Method in CodeNarc
execute() - Method in CodeNarcRunner
The main entry point for this class.
execute() - Method in CodeNarcTask
Execute this Ant Task
exists() - Method in ClassPathResource
Returns:
true only if this resource exists and is accessible
exists() - Method in Resource
Returns:
true only if this resource exists and is accessible
exists() - Method in UrlResource
Returns:
true only if this resource exists and is accessible
ExplicitArrayListInstantiationRule - Class in org.codenarc.rule.groovyism
This rule checks for the explicit instantiation of an ArrayList using the no-arg constructor.
ExplicitArrayListInstantiationRule.1 - Class in org.codenarc.rule.groovyism
ExplicitArrayListInstantiationRule.1() - Constructor in ExplicitArrayListInstantiationRule.1
ExplicitArrayListInstantiationRule() - Constructor in ExplicitArrayListInstantiationRule
ExplicitCallToAndMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the and(Object) method is called directly in code instead of using the & operator.
ExplicitCallToAndMethodRule() - Constructor in ExplicitCallToAndMethodRule
ExplicitCallToCompareToMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the compareTo(Object) method is called directly in code instead of using the <=>, >, >=, <, and <= operators.
ExplicitCallToCompareToMethodRule() - Constructor in ExplicitCallToCompareToMethodRule
ExplicitCallToDivMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the div(Object) method is called directly in code instead of using the / operator.
ExplicitCallToDivMethodRule() - Constructor in ExplicitCallToDivMethodRule
ExplicitCallToEqualsMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the equals(Object) method is called directly in code instead of using the == or !
ExplicitCallToEqualsMethodRule() - Constructor in ExplicitCallToEqualsMethodRule
ExplicitCallToGetAtMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the getAt(Object) method is called directly in code instead of using the [] index operator.
ExplicitCallToGetAtMethodRule() - Constructor in ExplicitCallToGetAtMethodRule
ExplicitCallToLeftShiftMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the leftShift(Object) method is called directly in code instead of using the << operator.
ExplicitCallToLeftShiftMethodRule() - Constructor in ExplicitCallToLeftShiftMethodRule
ExplicitCallToMethodAstVisitor - Class in org.codenarc.rule.groovyism
Parent Visitor for "ExplicitCallToX" Rules.
ExplicitCallToMethodAstVisitor(java.lang.String) - Constructor in ExplicitCallToMethodAstVisitor
Parameters:
methodName - The method name to watch for.
ExplicitCallToMinusMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the minus(Object) method is called directly in code instead of using the - operator.
ExplicitCallToMinusMethodRule() - Constructor in ExplicitCallToMinusMethodRule
ExplicitCallToModMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the mod(Object) method is called directly in code instead of using the % operator.
ExplicitCallToModMethodRule() - Constructor in ExplicitCallToModMethodRule
ExplicitCallToMultiplyMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the multiply(Object) method is called directly in code instead of using the * operator.
ExplicitCallToMultiplyMethodRule() - Constructor in ExplicitCallToMultiplyMethodRule
ExplicitCallToOrMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the or(Object) method is called directly in code instead of using the | operator.
ExplicitCallToOrMethodRule() - Constructor in ExplicitCallToOrMethodRule
ExplicitCallToPlusMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the plus(Object) method is called directly in code instead of using the + operator.
ExplicitCallToPlusMethodRule() - Constructor in ExplicitCallToPlusMethodRule
ExplicitCallToPowerMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the power(Object) method is called directly in code instead of using the ** operator.
ExplicitCallToPowerMethodRule() - Constructor in ExplicitCallToPowerMethodRule
ExplicitCallToPutAtMethodRule - Class in org.codenarc.rule.groovyism
etects when the map.putAt(k, v) method is called directly rather than using map[k] = v.
ExplicitCallToPutAtMethodRule() - Constructor in ExplicitCallToPutAtMethodRule
ExplicitCallToRightShiftMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the rightShift(Object) method is called directly in code instead of using the >> operator.
ExplicitCallToRightShiftMethodRule() - Constructor in ExplicitCallToRightShiftMethodRule
ExplicitCallToXorMethodRule - Class in org.codenarc.rule.groovyism
This rule detects when the xor(Object) method is called directly in code instead of using the ^ operator.
ExplicitCallToXorMethodRule() - Constructor in ExplicitCallToXorMethodRule
ExplicitGarbageCollectionRule - Class in org.codenarc.rule.basic
Calls to System.gc(), Runtime.getRuntime().gc(), and System.runFinalization() are not advised.
ExplicitGarbageCollectionRule() - Constructor in ExplicitGarbageCollectionRule
ExplicitHashMapInstantiationRule - Class in org.codenarc.rule.groovyism
This rule checks for the explicit instantiation of a HashMap using the no-arg constructor.
ExplicitHashMapInstantiationRule.1 - Class in org.codenarc.rule.groovyism
ExplicitHashMapInstantiationRule.1() - Constructor in ExplicitHashMapInstantiationRule.1
ExplicitHashMapInstantiationRule() - Constructor in ExplicitHashMapInstantiationRule
ExplicitHashSetInstantiationRule - Class in org.codenarc.rule.groovyism
This rule checks for the explicit instantiation of a HashSet using the no-arg constructor.
ExplicitHashSetInstantiationRule.1 - Class in org.codenarc.rule.groovyism
ExplicitHashSetInstantiationRule.1() - Constructor in ExplicitHashSetInstantiationRule.1
ExplicitHashSetInstantiationRule() - Constructor in ExplicitHashSetInstantiationRule
ExplicitLinkedHashMapInstantiationRule - Class in org.codenarc.rule.groovyism
This rule checks for the explicit instantiation of a LinkedHashMap using the no-arg constructor.
ExplicitLinkedHashMapInstantiationRule.1 - Class in org.codenarc.rule.groovyism
ExplicitLinkedHashMapInstantiationRule.1() - Constructor in ExplicitLinkedHashMapInstantiationRule.1
ExplicitLinkedHashMapInstantiationRule() - Constructor in ExplicitLinkedHashMapInstantiationRule
ExplicitLinkedListInstantiationRule - Class in org.codenarc.rule.groovyism
This rule checks for the explicit instantiation of a LinkedList using the no-arg constructor.
ExplicitLinkedListInstantiationRule.1 - Class in org.codenarc.rule.groovyism
ExplicitLinkedListInstantiationRule.1() - Constructor in ExplicitLinkedListInstantiationRule.1
ExplicitLinkedListInstantiationRule() - Constructor in ExplicitLinkedListInstantiationRule
ExplicitStackInstantiationRule - Class in org.codenarc.rule.groovyism
This rule checks for the explicit instantiation of a Stack using the no-arg constructor.
ExplicitStackInstantiationRule.1 - Class in org.codenarc.rule.groovyism
ExplicitStackInstantiationRule.1() - Constructor in ExplicitStackInstantiationRule.1
ExplicitStackInstantiationRule() - Constructor in ExplicitStackInstantiationRule
ExplicitTreeSetInstantiationRule - Class in org.codenarc.rule.groovyism
This rule checks for the explicit instantiation of a TreeSet using the no-arg constructor.
ExplicitTreeSetInstantiationRule.1 - Class in org.codenarc.rule.groovyism
ExplicitTreeSetInstantiationRule.1() - Constructor in ExplicitTreeSetInstantiationRule.1
ExplicitTreeSetInstantiationRule() - Constructor in ExplicitTreeSetInstantiationRule
ExplicitTypeInstantiationAstVisitor - Class in org.codenarc.rule.groovyism
AstVisitor that checks for no-arg constructor calls for the type specified in the constructor.
ExplicitTypeInstantiationAstVisitor(java.lang.String) - Constructor in ExplicitTypeInstantiationAstVisitor
ExpressionInCpsMethodNotSerializableRule - Class in org.codenarc.rule.jenkins
Every expression/variable in a CPS transformed method in Jenkins can potentially be serialized and should therefore implement the Serializable interface
ExpressionInCpsMethodNotSerializableRule() - Constructor in ExpressionInCpsMethodNotSerializableRule
expressionIsAssignment(org.codehaus.groovy.ast.ASTNode, java.lang.String) - Method in AstUtil
expressionIsNullCheck(org.codehaus.groovy.ast.ASTNode) - Method in AstUtil
extractMethodName(java.lang.Object) - Method in AbstractMethodMetricAstVisitor

F

FactoryMethodNameRule - Class in org.codenarc.rule.naming
A factory method is a method that creates objects, and they are typically named either buildFoo(), makeFoo(), or createFoo().
FactoryMethodNameRule() - Constructor in FactoryMethodNameRule
failOnError - Property in CodeNarc
Whether to terminate and fail the task if errors occur parsing source files (true), or just log the errors (false)
failOnError - Property in CodeNarcTask
Whether to terminate and fail the task if errors occur parsing source files (true), or just log the errors (false)
failOnError - Property in FilesSourceAnalyzer
Whether to throw an exception if errors occur parsing source files (true), or just log the errors (false)
failOnError - Property in FilesystemSourceAnalyzer
Whether to throw an exception if errors occur parsing source files (true), or just log the errors (false)
FieldNameRule - Class in org.codenarc.rule.naming
Rule that verifies that the name of each field matches a regular expression.
FieldNameRule() - Constructor in FieldNameRule
FieldReferenceAstVisitor - Class in org.codenarc.rule
AST Visitor that searches for references to the fields specified on the constructor
FieldReferenceAstVisitor(Collection<FieldNode>) - Constructor in FieldReferenceAstVisitor
fieldReferenced(java.lang.String) - Method in ConstructorsSkippingFieldReferenceAstVisitor
fieldReferenced(java.lang.String) - Method in FieldReferenceAstVisitor
FieldTypeRequiredRule - Class in org.codenarc.rule.convention
Checks that field types are explicitly specified (and not using def)
FieldTypeRequiredRule() - Constructor in FieldTypeRequiredRule
FileCreateTempFileRule - Class in org.codenarc.rule.security
The File.createTempFile() method is insecure, and has been deprecated by the ESAPI secure coding library.
FileCreateTempFileRule() - Constructor in FileCreateTempFileRule
FileEndsWithoutNewlineRule - Class in org.codenarc.rule.formatting
Makes sure the source code file ends with a newline character.
FileEndsWithoutNewlineRule() - Constructor in FileEndsWithoutNewlineRule
fileName - Property in FileViolations
FileResults - Class in org.codenarc.results
Represents the results of applying a set of rules against a single sourcefile
FileResults(java.lang.String, List<Violation>, org.codenarc.source.SourceCode) - Constructor in FileResults
fileSets - Field in AntFileSetSourceAnalyzer
fileSets - Field in CodeNarcTask
FilesSourceAnalyzer - Class in org.codenarc.analyzer
SourceAnalyzer implementation that processes a list of source files
FilesSourceAnalyzer() - Constructor in FilesSourceAnalyzer
FilesystemSourceAnalyzer - Class in org.codenarc.analyzer
SourceAnalyzer implementation that recursively processes files from the file system.
FilesystemSourceAnalyzer() - Constructor in FilesystemSourceAnalyzer
FileViolations - Class in org.codenarc.plugin
Represents the violations and associated results metadata for a single file
FileViolations(org.codenarc.results.FileResults) - Constructor in FileViolations
FilteredRuleSet - Class in org.codenarc.ruleset
A RuleSet implementation that is a Decorator for another RuleSet, but provides the ability to filter included and excluded rules within that RuleSet.
FilteredRuleSet(org.codenarc.ruleset.RuleSet) - Constructor in FilteredRuleSet
Construct a new instance on the specified RuleSet
filterSuppressedViolations(Iterable<Violation>) - Method in SuppressionAnalyzer
FinalClassWithProtectedMemberRule - Class in org.codenarc.rule.design
This rule finds classes marked final that contain protected methods and fields.
FinalClassWithProtectedMemberRule() - Constructor in FinalClassWithProtectedMemberRule
finallyOnSameLineAsClosingBrace - Property in BracesForTryCatchFinallyRule
finallyOnSameLineAsOpeningBrace - Property in BracesForTryCatchFinallyRule
finalRegex - Property in FieldNameRule
finalRegex - Property in PropertyNameRule
finalRegex - Property in VariableNameRule
findClassDeclarationLineNumber(org.codehaus.groovy.ast.ClassNode, org.codenarc.source.SourceCode) - Method in AstUtil
findFirstNonAnnotationLine(org.codehaus.groovy.ast.ASTNode, org.codenarc.source.SourceCode) - Method in AstUtil
Gets the first non annotation line number of a node, taking into account annotations.
findLineNumberOfFirstClassDeclaration(org.codenarc.source.SourceCode) - Method in AbstractImportRule
Optimization: Stop checking lines for imports once a class/interface has been declared
findResultsForPath(java.lang.String) - Method in DirectoryResults
Return the Results object with the specified path within this directory or its descendents.
findResultsForPath(java.lang.String) - Method in FileResults
Return the Results object with the specified path.
findResultsForPath(java.lang.String) - Method in Results
Return the Results object with the specified path within this results object or its descendents.
findResultsForPath(java.lang.String) - Method in VirtualResults
ForbiddenCallInCpsMethodRule - Class in org.codenarc.rule.jenkins
Some methods from the standard library cannot be CPS transformed and therefore must not be called from CPS transformed methods in Jenkins
ForbiddenCallInCpsMethodRule() - Constructor in ForbiddenCallInCpsMethodRule
ForLoopShouldBeWhileLoopRule - Class in org.codenarc.rule.basic
For loops where init and update statements are empty can be simplified to while loops.
ForLoopShouldBeWhileLoopRule() - Constructor in ForLoopShouldBeWhileLoopRule
formatSourceLine(java.lang.String, int) - Method in AbstractHtmlReportWriter
Format and trim the source line.
ForStatementBracesRule - Class in org.codenarc.rule.braces
Rule that checks that for statements use braces rather than a single statement.
ForStatementBracesRule() - Constructor in ForStatementBracesRule

G

GenerateAll - Class in org.codenarc.tool
Java application (main() method) that invokes all of the Generate* scripts.
GenerateAll() - Constructor in GenerateAll
GenerateCodeNarcRulesProperties - Class in org.codenarc.tool
Java application (main() method) that generates the 'codenarc-base-rules.properties' properties file.
GenerateCodeNarcRulesProperties() - Constructor in GenerateCodeNarcRulesProperties
GenerateRuleIndexPages - Class in org.codenarc.tool
Java application (main() method) that generates the "codenarc-rule-index.md.template" file.
GenerateRuleIndexPages() - Constructor in GenerateRuleIndexPages
GenerateRuleSetAllRules - Class in org.codenarc.tool
Java application (main() method) that generates the "StarterRuleSet-AllRules.groovy.txt" file.
GenerateRuleSetAllRules() - Constructor in GenerateRuleSetAllRules
GenerateRuleSetAllRulesByCategory - Class in org.codenarc.tool
Java application (main() method) that generates the "StarterRuleSet-AllRulesByCategory.groovy.txt" file.
GenerateRuleSetAllRulesByCategory() - Constructor in GenerateRuleSetAllRulesByCategory
GenerateUtil - Class in org.codenarc.tool
Contains static utility methods related to the Generate* tools.
GenerateUtil() - Constructor in GenerateUtil
getAllImports(org.codenarc.source.SourceCode) - Method in ImportUtil
getAnnotation(org.codehaus.groovy.ast.AnnotatedNode, java.lang.String) - Method in AstUtil
Return the AnnotationNode for the named annotation, or else null.
getApplyToClassNames() - Method in AbstractAstVisitorRule
getApplyToFileNames() - Method in AbstractRule
getApplyToFilesMatching() - Method in AbstractRule
getArgumentNames(org.codehaus.groovy.ast.expr.MethodCallExpression) - Method in AstUtil
Gets the argument names of a method call.
getAst() - Method in AbstractSourceCode
Return the Groovy AST (Abstract Syntax Tree) for this source file
getAst() - Method in GMetricsSourceCodeAdapter
getAst() - Method in SourceCode
Return the Groovy AST (Abstract Syntax Tree) for this source file
getAstCompilerPhase() - Method in AbstractSourceCode
Returns:
compiler phase (as in org.codehaus.groovy.control.Phases) up to which the AST will be processed
getAstCompilerPhase() - Method in CustomCompilerPhaseSourceDecorator
getAstCompilerPhase() - Method in SourceCode
Returns:
compiler phase (as in org.codehaus.groovy.control.Phases) up to which the AST will be processed
getAstVisitor() - Method in AbstractAstVisitorRule
getAstVisitor(org.codenarc.source.SourceCode) - Method in AbstractSharedAstVisitorRule
Subclasses can override to provide an AstVisitor with SourceCode or AST-specific initialization.
getAstVisitor() - Method in CatchArrayIndexOutOfBoundsExceptionRule
getAstVisitor() - Method in CatchErrorRule
getAstVisitor() - Method in CatchExceptionRule
getAstVisitor() - Method in CatchIllegalMonitorStateExceptionRule
getAstVisitor() - Method in CatchIndexOutOfBoundsExceptionRule
getAstVisitor() - Method in CatchNullPointerExceptionRule
getAstVisitor() - Method in CatchRuntimeExceptionRule
getAstVisitor() - Method in CatchThrowableRule
getAstVisitor() - Method in CrapMetricRule
getAstVisitor() - Method in DuplicateNumberLiteralRule
getAstVisitor() - Method in DuplicateStringLiteralRule
getAstVisitor() - Method in ExplicitArrayListInstantiationRule
getAstVisitor() - Method in ExplicitHashMapInstantiationRule
getAstVisitor() - Method in ExplicitHashSetInstantiationRule
getAstVisitor() - Method in ExplicitLinkedHashMapInstantiationRule
getAstVisitor() - Method in ExplicitLinkedListInstantiationRule
getAstVisitor() - Method in ExplicitStackInstantiationRule
getAstVisitor() - Method in ExplicitTreeSetInstantiationRule
getAstVisitor() - Method in GrailsDomainReservedSqlKeywordNameRule
getAstVisitor() - Method in HashtableIsObsoleteRule
getAstVisitor() - Method in IllegalClassReferenceRule
getAstVisitor() - Method in JdbcConnectionReferenceRule
getAstVisitor() - Method in JdbcResultSetReferenceRule
getAstVisitor() - Method in JdbcStatementReferenceRule
getAstVisitor() - Method in JUnitTestMethodWithoutAssertRule
getAstVisitor() - Method in ThrowErrorRule
getAstVisitor() - Method in ThrowExceptionRule
getAstVisitor() - Method in ThrowNullPointerExceptionRule
getAstVisitor() - Method in ThrowRuntimeExceptionRule
getAstVisitor() - Method in ThrowThrowableRule
getAstVisitor(org.codenarc.source.SourceCode) - Method in UnusedPrivateFieldRule
getAstVisitor(org.codenarc.source.SourceCode) - Method in UnusedPrivateMethodRule
getAstVisitor() - Method in VectorIsObsoleteRule
getAstVisitorClass() - Method in AbstractAstVisitorRule
Each concrete subclass must either set this property or define its own property with the same name
getChildren() - Method in DirectoryResults
Returns:
the List of child Results objects; may be empty
getChildren() - Method in FileResults
Return an empty List
getChildren() - Method in Results
Returns:
the List of child Results objects; may be empty
getChildren() - Method in VirtualResults
getCodeNarcVersion() - Method in AbstractReportWriter
getColumn() - Method in Value
getCompilerPhase() - Method in AbstractEnhanceableAstVisitorRule
getCompilerPhase() - Method in AbstractRule
Returns:
the required compiler phase (as in org.codehaus.groovy.control.Phases) of the AST of the SourceCode handed to the rule via applyTo(SourceCode sourceCode)
getCompilerPhase() - Method in Rule
Returns:
the required compiler phase (as in org.codehaus.groovy.control.Phases) of the AST of the SourceCode handed to the rule via applyTo(SourceCode sourceCode)
getCssFile() - Method in AbstractHtmlReportWriter
getCurrentClassName() - Method in AbstractAstVisitor
getCurrentClassName() - Method in AbstractMethodVisitor
getCurrentClassNode() - Method in AbstractAstVisitor
getCurrentClassNode() - Method in AbstractMethodVisitor
getDeclaration(org.codehaus.groovy.ast.ASTNode, org.codenarc.source.SourceCode) - Method in AstUtil
getDescription() - Method in AbstractRule
getDescriptionForRule(org.codenarc.rule.Rule) - Method in AbstractReportWriter
getDoNotApplyToClassNames() - Method in AbstractAstVisitorRule
getDoNotApplyToFileNames() - Method in AbstractRule
getDoNotApplyToFilesMatching() - Method in AbstractRule
getEmptyBlock(org.codehaus.groovy.ast.stmt.Statement) - Method in AstUtil
getFieldType(org.codehaus.groovy.ast.FieldNode) - Method in AstUtil
Supports discovering many common JDK types, but not all.
getFormattedTimestamp() - Method in AbstractReportWriter
getGormStaticMethodsNames() - Method in GrailsDomainGormMethodsRule
getHtmlDescriptionForRule(org.codenarc.rule.Rule) - Method in AbstractReportWriter
getInputStream() - Method in ClassPathResource
Open an InputStream on the classpath resource path
getInputStream() - Method in Resource
Return the InputStream for this resource.
getInputStream() - Method in UrlResource
Open a FileInputStream on the file
getInstanceOfTarget(java.lang.Object) - Method in AstUtil
getLastLineOfNodeText(org.codehaus.groovy.ast.ASTNode, org.codenarc.source.SourceCode) - Method in AstUtil
getLineNumber(org.gmetrics.result.MetricResult) - Method in AbstractMethodMetricAstVisitor
getLineNumberForCharacterIndex(int) - Method in AbstractSourceCode
Return the line index for the line containing the character at the specified index within the source code.
getLineNumberForCharacterIndex(int) - Method in GMetricsSourceCodeAdapter
getLineNumberForCharacterIndex(int) - Method in SourceCode
Return the line index for the line containing the character at the specified index within the source code.
getLines() - Method in AbstractSourceCode
Returns:
the List of lines of the source code (with line terminators removed)
getLines() - Method in GMetricsSourceCodeAdapter
getLines() - Method in SourceCode
Returns:
the List of lines of the source code (with line terminators removed)
getMaxClassAverageMethodMetricValue() - Method in AbstractMethodMetricAstVisitor
getMaxClassMetricValue() - Method in AbstractMethodMetricAstVisitor
getMaxMethodMetricValue() - Method in AbstractMethodMetricAstVisitor
getMethodArguments(org.codehaus.groovy.ast.ASTNode) - Method in AstUtil
Return the List of Arguments for the specified MethodCallExpression or a ConstructorCallExpression.
getMethodCallExpressions() - Method in AbstractSourceCode
getMethodCallExpressions() - Method in SourceCode
This method gives you all of the MethodCallExpressions defined in the AST without forcing you to walk the entire tree on every request.
getMetricShortDescription() - Method in AbstractMethodMetricAstVisitor
getMovedOrRenamedMessageForRuleName(java.lang.String) - Method in MovedRules
getName() - Method in AbstractRule
Returns:
the unique name for this rule
getName() - Method in CustomCompilerPhaseSourceDecorator
getName() - Method in GMetricsSourceCodeAdapter
getName(java.lang.String) - Method in PathUtil
getName() - Method in Rule
Returns:
the unique id for this rule
getName() - Method in SourceCode
Get the logical name for this source code.
getName() - Method in SourceFile
Returns:
the filename for this source file, excluding path
getNodeText(org.codehaus.groovy.ast.ASTNode, org.codenarc.source.SourceCode) - Method in AstUtil
getNonStaticImportsSortedByLineNumber(org.codenarc.source.SourceCode) - Method in ImportUtil
getNullComparisonTarget(java.lang.Object) - Method in AstUtil
getNumberOfFilesWithViolations(int, boolean) - Method in DirectoryResults
Return the number of files with violations
getNumberOfFilesWithViolations(int, boolean) - Method in FileResults
Return 1 if these results include at least one violation
getNumberOfFilesWithViolations(int, boolean) - Method in Results
Return the number of files with violations
getNumberOfFilesWithViolations(int, boolean) - Method in VirtualResults
getNumberOfViolationsWithPriority(int, boolean) - Method in DirectoryResults
Return the number of violations with the specified priority
getNumberOfViolationsWithPriority(int, boolean) - Method in FileResults
Parameters:
recursive - - ignored
getNumberOfViolationsWithPriority(int, boolean) - Method in Results
Return the number of violations with the specified priority
getNumberOfViolationsWithPriority(int, boolean) - Method in VirtualResults
getParameterNames(org.codehaus.groovy.ast.MethodNode) - Method in AstUtil
Gets the parameter names of a method node.
getParentPath(java.lang.String) - Method in PathUtil
getPath() - Method in CustomCompilerPhaseSourceDecorator
getPath() - Method in DirectoryResults
Returns:
the path to the file or directory associated with these results
getPath() - Method in FileResults
Returns:
the path to the file or directory associated with these results
getPath() - Method in GMetricsSourceCodeAdapter
getPath() - Method in Results
Returns:
the path to the file or directory associated with these results
getPath() - Method in SourceCode
Get the logical path for this source code.
getPath() - Method in SourceFile
Returns:
the normalized path for this source file, including filename
getPath() - Method in VirtualResults
getPlugins() - Method in CodeNarcRunner
getPriority() - Method in AbstractRule
Returns:
the priority of this rule, between 1 (highest priority) and 3 (lowest priority), inclusive.
getPriority() - Method in Rule
Returns:
the priority of this rule; must be 1, 2 or 3
getRawLine(org.codenarc.source.SourceCode, int) - Method in AstUtil
getRawViolations() - Method in FileResults
Not intended for general use
getReceiverType(org.codehaus.groovy.ast.expr.MethodCall) - Method in JenkinsUtil
getReportWriter(java.lang.String, java.util.Map) - Method in ReportWriterFactory
getResource(java.lang.String) - Method in DefaultResourceFactory
Return a Resource instance suitable for the specified path.
getResource(java.lang.String) - Method in ResourceFactory
Return a Resource instance suitable for the specified path.
getResourceBundleString(java.lang.String, java.lang.String, boolean) - Method in AbstractReportWriter
getRule() - Method in AbstractAstVisitor
getRule() - Method in AbstractFieldVisitor
Gets the rule for this visitor.
getRule() - Method in AbstractMethodCallExpressionVisitor
Gets the rule for this visitor.
getRule() - Method in AbstractMethodVisitor
Gets the rule for this visitor.
getRuleClass(java.lang.String) - Method in PropertiesFileRuleRegistry
Return the Rule Class for the specified name or else null
getRuleClass(java.lang.String) - Method in RuleRegistry
getRuleExtraInformation() - Method in GenerateUtil
getRules() - Method in CompositeRuleSet
Returns:
a List of Rule objects.
getRules() - Method in FilteredRuleSet
Return the List of Rules that match the include(s) (if specified) AND DO NOT match any exclude(s) specified.
getRules() - Method in GroovyDslRuleSet
Returns:
a List of Rule objects
getRules() - Method in JsonFileRuleSet
Returns:
a List of Rule objects
getRules() - Method in JsonReaderRuleSet
Returns:
a List of Rule objects
getRules() - Method in ListRuleSet
Returns:
a List of Rule objects
getRules() - Method in RuleSet
Returns:
a List of optionally configured Rule objects
getRules() - Method in XmlFileRuleSet
Returns:
a List of Rule objects
getRules() - Method in XmlReaderRuleSet
Returns:
a List of Rule objects
getRuleSet() - Method in RuleSetBuilder
getSortedRules(org.codenarc.AnalysisContext) - Method in AbstractReportWriter
getSourceBetweenNodes(org.codehaus.groovy.ast.ASTNode, org.codehaus.groovy.ast.ASTNode, org.codenarc.source.SourceCode) - Method in AstUtil
getSourceCode() - Method in AbstractAstVisitor
getSourceCode() - Method in AbstractFieldVisitor
getSourceCode() - Method in AbstractMethodCallExpressionVisitor
getSourceCode() - Method in AbstractMethodVisitor
getSourceDirectories() - Method in AntFileSetSourceAnalyzer
getSourceDirectories() - Method in FilesSourceAnalyzer
getSourceDirectories() - Method in FilesystemSourceAnalyzer
getSourceDirectories() - Method in SourceAnalyzer
Return the List of source directories to be analyzed.
getSourceDirectories() - Method in StringSourceAnalyzer
getSourceLine(java.lang.Integer) - Method in AbstractMethodMetricAstVisitor
getSourceLinesForNode(org.codehaus.groovy.ast.ASTNode, org.codenarc.source.SourceCode) - Method in AstUtil
getSourceUnit() - Method in AbstractAstVisitor
getSourceUnit() - Method in AbstractFieldVisitor
getSourceUnit() - Method in AbstractMethodCallExpressionVisitor
getSourceUnit() - Method in AbstractMethodVisitor
getSourceUnit() - Method in ReferenceCollector
getSuppressionAnalyzer() - Method in CustomCompilerPhaseSourceDecorator
getSuppressionAnalyzer() - Method in SourceCode
Returns information about this classes' suppressed warnings.
getTag() - Method in AbstractJavadocEmptyTagRule
getTag() - Method in AbstractJavadocMissingDescriptionRule
getTag() - Method in JavadocEmptyAuthorTagRule
getTag() - Method in JavadocEmptyExceptionTagRule
getTag() - Method in JavadocEmptyParamTagRule
getTag() - Method in JavadocEmptyReturnTagRule
getTag() - Method in JavadocEmptySeeTagRule
getTag() - Method in JavadocEmptySinceTagRule
getTag() - Method in JavadocEmptyThrowsTagRule
getTag() - Method in JavadocEmptyVersionTagRule
getTag() - Method in JavadocMissingExceptionDescriptionRule
getTag() - Method in JavadocMissingParamDescriptionRule
getTag() - Method in JavadocMissingThrowsDescriptionRule
GetterMethodCouldBePropertyRule - Class in org.codenarc.rule.groovyism
If a class defines a public method that follows the Java getter notation and returns a constant, then it is cleaner to provide a Groovy property for the value rather than a Groovy method.
GetterMethodCouldBePropertyRule() - Constructor in GetterMethodCouldBePropertyRule
getText() - Method in CustomCompilerPhaseSourceDecorator
getText() - Method in GMetricsSourceCodeAdapter
getText() - Method in SourceCode
Returns:
the full text of the source code
getText() - Method in SourceFile
Returns:
the full text of the source code
getText() - Method in SourceString
Returns:
the full text of the source code
getTimestamp - Field in AbstractReportWriter
getTotalNumberOfFiles(boolean) - Method in DirectoryResults
Return the total number of (Groovy) files analyzed
getTotalNumberOfFiles(boolean) - Method in FileResults
Return the total number of (Groovy) files analyzed
getTotalNumberOfFiles(boolean) - Method in Results
Return the total number of (Groovy) files analyzed
getTotalNumberOfFiles(boolean) - Method in VirtualResults
getUnreferencedFields() - Method in FieldReferenceAstVisitor
getValue() - Method in Value
getValues() - Method in ValueRecorder
getVariableExpressions(org.codehaus.groovy.ast.expr.DeclarationExpression) - Method in AstUtil
Return the List of VariableExpression objects referenced by the specified DeclarationExpression.
getViolationLocationString(org.codenarc.rule.Violation, java.lang.String) - Method in IdeTextReportWriter
getViolationLocationString(org.codenarc.rule.Violation, java.lang.String) - Method in TextReportWriter
getViolationMessage(org.codehaus.groovy.ast.expr.ConstructorCallExpression) - Method in AbstractConstructorCallAstVisitor
getViolationMessage() - Method in AbstractRule
getViolationMessage(org.codehaus.groovy.ast.expr.MethodCallExpression) - Method in ExplicitCallToMethodAstVisitor
getViolations() - Method in AbstractAstVisitor
getViolations() - Method in AbstractFieldVisitor
Retrieve the List of Violations resulting from applying this visitor
getViolations() - Method in AbstractMethodCallExpressionVisitor
Retrieve the List of Violations resulting from applying this visitor
getViolations() - Method in AbstractMethodVisitor
Retrieve the List of Violations resulting from applying this visitor
getViolations(org.codenarc.rule.AstVisitor, org.codenarc.source.SourceCode) - Method in AbstractSharedAstVisitorRule
getViolations() - Method in AstVisitor
Retrieve the List of Violations resulting from applying this visitor
getViolations() - Method in DirectoryResults
Returns:
the List of all violations; may be empty
getViolations() - Method in FileResults
Returns:
the List of all violations
getViolations(org.codenarc.rule.AstVisitor, org.codenarc.source.SourceCode) - Method in PrivateFieldCouldBeFinalRule
getViolations() - Method in Results
Returns:
the List of all violations; may be empty
getViolations(org.codenarc.rule.AstVisitor, org.codenarc.source.SourceCode) - Method in UnusedPrivateFieldRule
getViolations(org.codenarc.rule.AstVisitor, org.codenarc.source.SourceCode) - Method in UnusedPrivateMethodRule
getViolations() - Method in VirtualResults
getVisited() - Method in AbstractAstVisitor
GitlabCodeQualityReportWriter - Class in org.codenarc.report
ReportWriter that generates a JSON report in the format expected by GitLab's Code Quality service.
GitlabCodeQualityReportWriter() - Constructor in GitlabCodeQualityReportWriter
GMetricsSourceCodeAdapter - Class in org.codenarc.rule.size
Adapter that adapts from a GMetrics SourceCode object to a CodeNarc SourceCode object.
GMetricsSourceCodeAdapter(org.codenarc.source.SourceCode) - Constructor in GMetricsSourceCodeAdapter
gormStaticMethodsNamesList - Property in GrailsDomainGormMethodsRule
GrailsDomainGormMethodsRule - Class in org.codenarc.rule.grails
Database operation should be performed by Data Services instead of calling GORM static and instance methods.
GrailsDomainGormMethodsRule() - Constructor in GrailsDomainGormMethodsRule
GrailsDomainHasEqualsRule - Class in org.codenarc.rule.grails
Checks that Grails domain classes redefine equals().
GrailsDomainHasEqualsRule() - Constructor in GrailsDomainHasEqualsRule
GrailsDomainHasToStringRule - Class in org.codenarc.rule.grails
Checks that Grails domain classes redefine toString()
GrailsDomainHasToStringRule() - Constructor in GrailsDomainHasToStringRule
GrailsDomainReservedSqlKeywordNameRule - Class in org.codenarc.rule.grails
Forbids usage of SQL reserved keywords as class or field names in Grails domain classes.
GrailsDomainReservedSqlKeywordNameRule() - Constructor in GrailsDomainReservedSqlKeywordNameRule
GrailsDomainStringPropertyMaxSizeRule - Class in org.codenarc.rule.grails
String properties in Grails domain classes have to define maximum size otherwise the property is mapped to VARCHAR(255) causing runtime exceptions to occur
GrailsDomainStringPropertyMaxSizeRule() - Constructor in GrailsDomainStringPropertyMaxSizeRule
GrailsDomainWithServiceReferenceRule - Class in org.codenarc.rule.grails
Checks that Grails Domain classes do not have Service classes injected.
GrailsDomainWithServiceReferenceRule() - Constructor in GrailsDomainWithServiceReferenceRule
GrailsDuplicateConstraintRule - Class in org.codenarc.rule.grails
Check for duplicate constraints entry
GrailsDuplicateConstraintRule() - Constructor in GrailsDuplicateConstraintRule
GrailsDuplicateMappingRule - Class in org.codenarc.rule.grails
Check for duplicate entry in a domain class mapping
GrailsDuplicateMappingRule() - Constructor in GrailsDuplicateMappingRule
GrailsMassAssignmentRule - Class in org.codenarc.rule.grails
Untrusted input should not be allowed to set arbitrary object fields without restriction.
GrailsMassAssignmentRule() - Constructor in GrailsMassAssignmentRule
GrailsPublicControllerMethodRule - Class in org.codenarc.rule.grails
Rule that checks for public methods on Grails controller classes.
GrailsPublicControllerMethodRule() - Constructor in GrailsPublicControllerMethodRule
GrailsServletContextReferenceRule - Class in org.codenarc.rule.grails
Rule that checks for references to the servletContext object from within Grails controller and taglib classes.
GrailsServletContextReferenceRule() - Constructor in GrailsServletContextReferenceRule
GrailsStatelessServiceRule - Class in org.codenarc.rule.grails
Rule that checks for non-final fields on a Grails service class.
GrailsStatelessServiceRule() - Constructor in GrailsStatelessServiceRule
GrailsUtil - Class in org.codenarc.rule.grails
Utility methods and constants for Grails rule classes.
GroovyDslRuleSet - Class in org.codenarc.ruleset
A RuleSet implementation that parses a Groovy DSL of RuleSet definitions.
GroovyDslRuleSet(java.lang.String) - Constructor in GroovyDslRuleSet
Construct a new instance on the specified Groovy DSL RuleSet file path
GroovyLangImmutableRule - Class in org.codenarc.rule.groovyism
The groovy.lang.Immutable annotation has been deprecated and replaced by groovy.transform.Immutable.
GroovyLangImmutableRule() - Constructor in GroovyLangImmutableRule
GroovyVersion - Class in org.codenarc.util
Utility class to provide Groovy system information
GroovyVersion() - Constructor in GroovyVersion
group(java.lang.String) - Method in CommentsUtil
groupId - Property in PackageNameMatchesFilePathRule
GStringAsMapKeyRule - Class in org.codenarc.rule.groovyism
A rule that disallows GStrings as map keys as they might change their hashcode over time.
GStringAsMapKeyRule() - Constructor in GStringAsMapKeyRule
GStringExpressionWithinStringRule - Class in org.codenarc.rule.groovyism
Check for regular (single quote) strings containing a GString-type expression (${..}).
GStringExpressionWithinStringRule() - Constructor in GStringExpressionWithinStringRule

H

HardCodedWindowsFileSeparatorRule - Class in org.codenarc.rule.basic
This rule finds usages of a Windows file separator within the constructor call of a File object.
HardCodedWindowsFileSeparatorRule() - Constructor in HardCodedWindowsFileSeparatorRule
HardCodedWindowsRootDirectoryRule - Class in org.codenarc.rule.basic
This rule find cases where a File object is constructed with a windows-based path.
HardCodedWindowsRootDirectoryRule() - Constructor in HardCodedWindowsRootDirectoryRule
hasAnnotation(org.codehaus.groovy.ast.AnnotatedNode, java.lang.String) - Method in AstUtil
Return true only if the node has the named annotation
hasAnyAnnotation(org.codehaus.groovy.ast.AnnotatedNode, java.lang.String) - Method in AstUtil
Return true only if the node has any of the named annotations
HashtableIsObsoleteRule - Class in org.codenarc.rule.convention
Check for direct use of Vector or java.util.Hashtable.
HashtableIsObsoleteRule() - Constructor in HashtableIsObsoleteRule
hasTextOnNextLine(org.codenarc.source.SourceCode, int) - Method in CommentsUtil
haveTheSameConstantOrLiteralValue(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression) - Method in DryUtil
Returns:
true only if both Expressions have the same constant or literal value
haveTheSameConstantPropertyExpression(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression) - Method in DryUtil
Returns:
true only if both Expressions have the same constant property expression (e.g., Object.Property)
haveTheSameConstantValue(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression) - Method in DryUtil
Returns:
true only if both Expressions have the same constant or literal values
haveTheSameListLiteralValue(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression) - Method in DryUtil
Returns:
true only if both Expressions are ListExpressions and both have the same set of constant or literal values, in the same order.
haveTheSameMapLiteralValue(org.codehaus.groovy.ast.expr.Expression, org.codehaus.groovy.ast.expr.Expression) - Method in DryUtil
Returns:
true only if both Expressions are MapExpressions and both have the same set of constant or literal keys and values, in the same order.
HELP - Field in CodeNarc
HtmlReportWriter - Class in org.codenarc.report
ReportWriter that generates an HTML report.
HtmlReportWriter() - Constructor in HtmlReportWriter

I

IdeTextReportWriter - Class in org.codenarc.report
ReportWriter that generates an simple ASCII text report, and includes IDE-compatible (Eclipse, Idea) hyperlinks to source code for violations.
IdeTextReportWriter() - Constructor in IdeTextReportWriter
IfStatementBracesRule - Class in org.codenarc.rule.braces
Rule that checks that if statements use braces rather than a single statement.
IfStatementBracesRule() - Constructor in IfStatementBracesRule
IfStatementCouldBeTernaryRule - Class in org.codenarc.rule.convention
Checks for:
IfStatementCouldBeTernaryRule() - Constructor in IfStatementCouldBeTernaryRule
ignoreAnnotations - Property in UnnecessaryConstructorRule
ignoreCallsToMethodNames - Property in ClosureAsLastMethodParameterRule
ignoreClassesAnnotatedWithNames - Property in UnusedPrivateFieldRule
ignoreClassRegex - Property in UnusedMethodParameterRule
ignoreEmptyBlock - Property in SpaceAfterOpeningBraceRule
ignoreEmptyBlock - Property in SpaceBeforeClosingBraceRule
ignoreFieldNames - Property in FieldNameRule
ignoreFieldNames - Property in FieldTypeRequiredRule
ignoreFieldNames - Property in PrivateFieldCouldBeFinalRule
ignoreFieldNames - Property in StatelessClassRule
ignoreFieldNames - Property in UnusedPrivateFieldRule
ignoreFieldTypes - Property in StatelessClassRule
ignoreImports - Property in NoWildcardImportsRule
ignoreImportStatements - Property in LineLengthRule
ignoreInnerClasses - Property in ClassEndsWithBlankLineRule
ignoreInnerClasses - Property in ClassStartsWithBlankLineRule
ignoreJpaEntities - Property in PrivateFieldCouldBeFinalRule
ignoreLineRegex - Property in LineLengthRule
ignoreMethodNames - Property in AbcMetricRule
ignoreMethodNames - Property in CrapMetricRule
ignoreMethodNames - Property in CyclomaticComplexityRule
ignoreMethodNames - Property in GrailsPublicControllerMethodRule
ignoreMethodNames - Property in IllegalClassMemberRule
ignoreMethodNames - Property in MethodNameRule
ignoreMethodNames - Property in MethodReturnTypeRequiredRule
ignoreMethodNames - Property in MethodSizeRule
ignoreMethodNames - Property in PublicMethodsBeforeNonPublicMethodsRule
ignoreMethodNames - Property in StaticMethodsBeforeInstanceMethodsRule
ignoreMethodNames - Property in UnnecessaryGetterRule
ignoreMethodParameterNames - Property in MethodParameterTypeRequired
ignoreMethodsWithAnnotationNames - Property in IllegalClassMemberRule
ignoreMethodsWithAnnotationNames - Property in UnusedPrivateMethodRule
ignoreMethodsWithOverrideAnnotation - Property in GetterMethodCouldBePropertyRule
ignoreNumbers - Property in DuplicateNumberLiteralRule
ignoreOverriddenMethods - Property in ParameterCountRule
ignorePackageStatements - Property in LineLengthRule
ignoreParameterDefaultValueAssignments - Property in SpaceAroundOperatorRule
ignoreParameterNames - Property in ParameterNameRule
ignorePropertyNames - Property in JUnitPublicPropertyRule
ignorePropertyNames - Property in PropertyNameRule
ignoreRegex - Property in EmptyCatchBlockRule
ignoreRegex - Property in NestedBlockDepthRule
ignoreRegex - Property in UnusedMethodParameterRule
ignoreRegex - Property in UnusedPrivateMethodParameterRule
ignoreSingleElementList - Property in TrailingCommaRule
ignoreSingleElementMap - Property in TrailingCommaRule
ignoreSingleLineClasses - Property in ClassEndsWithBlankLineRule
ignoreSingleLineClasses - Property in ClassStartsWithBlankLineRule
ignoreStaticImports - Property in NoWildcardImportsRule
ignoreStrings - Property in DuplicateStringLiteralRule
ignoreStringsDelimiter - Property in DuplicateStringLiteralRule
ignoreThisReference - Property in ExplicitCallToAndMethodRule
ignoreThisReference - Property in ExplicitCallToCompareToMethodRule
ignoreThisReference - Property in ExplicitCallToDivMethodRule
ignoreThisReference - Property in ExplicitCallToEqualsMethodRule
ignoreThisReference - Property in ExplicitCallToGetAtMethodRule
ignoreThisReference - Property in ExplicitCallToLeftShiftMethodRule
ignoreThisReference - Property in ExplicitCallToMinusMethodRule
ignoreThisReference - Property in ExplicitCallToModMethodRule
ignoreThisReference - Property in ExplicitCallToMultiplyMethodRule
ignoreThisReference - Property in ExplicitCallToOrMethodRule
ignoreThisReference - Property in ExplicitCallToPlusMethodRule
ignoreThisReference - Property in ExplicitCallToPowerMethodRule
ignoreThisReference - Property in ExplicitCallToPutAtMethodRule
ignoreThisReference - Property in ExplicitCallToRightShiftMethodRule
ignoreThisReference - Property in ExplicitCallToXorMethodRule
ignoreTypeNames - Property in InstanceofRule
ignoreVariableNames - Property in UnusedVariableRule
ignoreVariableNames - Property in VariableNameRule
ignoreVariableNames - Property in VariableTypeRequiredRule
IllegalClassMemberRule - Class in org.codenarc.rule.generic
Checks for classes containing fields/properties/methods matching configured illegal member modifiers.
IllegalClassMemberRule() - Constructor in IllegalClassMemberRule
IllegalClassReferenceRule - Class in org.codenarc.rule.generic
Checks for reference to any of the named classes.
IllegalClassReferenceRule() - Constructor in IllegalClassReferenceRule
illegalFieldModifiersList - Field in IllegalClassMemberRule
illegalFieldModifiersString - Field in IllegalClassMemberRule
illegalMethodModifiersList - Field in IllegalClassMemberRule
illegalMethodModifiersString - Field in IllegalClassMemberRule
IllegalPackageReferenceRule - Class in org.codenarc.rule.generic
Checks for reference to any of the named packages.
IllegalPackageReferenceRule() - Constructor in IllegalPackageReferenceRule
illegalPropertyModifiersList - Field in IllegalClassMemberRule
illegalPropertyModifiersString - Field in IllegalClassMemberRule
IllegalRegexRule - Class in org.codenarc.rule.generic
Checks for a specified illegal regular expression within the source code.
IllegalRegexRule() - Constructor in IllegalRegexRule
IllegalStringRule - Class in org.codenarc.rule.generic
Checks for a specified illegal string within the source code.
IllegalStringRule() - Constructor in IllegalStringRule
IllegalSubclassRule - Class in org.codenarc.rule.generic
Checks for classes that extend one of the specified set of illegal superclasses.
IllegalSubclassRule() - Constructor in IllegalSubclassRule
ImplementationAsTypeRule - Class in org.codenarc.rule.design
Checks for use of the following concrete classes when specifying the type of a method parameter, closure parameter, constructor parameter, method return type or field type (the associated interfaces should be used to specify the type instead):
  • java.util.ArrayList
  • java.util.GregorianCalendar
  • java.util.HashMap
  • java.util.HashSet
  • java.util.Hashtable
  • java.util.LinkedHashMap
  • java.util.LinkedHashSet
  • java.util.LinkedList
  • java.util.TreeMap
  • java.util.TreeSet
  • java.util.Vector
  • java.util.concurrent.ArrayBlockingQueue
  • java.util.concurrent.ConcurrentHashMap
  • java.util.concurrent.ConcurrentLinkedQueue
  • java.util.concurrent.CopyOnWriteArrayList
  • java.util.concurrent.CopyOnWriteArraySet
  • java.util.concurrent.DelayQueue
  • java.util.concurrent.LinkedBlockingQueue
  • java.util.concurrent.PriorityBlockingQueue
  • java.util.concurrent.PriorityQueue
  • java.util.concurrent.SynchronousQueue
ImplementationAsTypeRule() - Constructor in ImplementationAsTypeRule
ImplicitClosureParameterRule - Class in org.codenarc.rule.convention
Checks that the implicit it closure parameter is not used and that parameters are declared explicitly instead
ImplicitClosureParameterRule() - Constructor in ImplicitClosureParameterRule
ImplicitReturnStatementRule - Class in org.codenarc.rule.convention
Checks for methods that are missing an explicit return statement.
ImplicitReturnStatementRule() - Constructor in ImplicitReturnStatementRule
ImportFromSamePackageRule - Class in org.codenarc.rule.imports
Checks for an import of a class that is within the same package as the importing class.
ImportFromSamePackageRule() - Constructor in ImportFromSamePackageRule
ImportFromSunPackagesRule - Class in org.codenarc.rule.imports
Avoid importing anything from the 'sun.*' packages.
ImportFromSunPackagesRule() - Constructor in ImportFromSunPackagesRule
ImportUtil - Class in org.codenarc.util
Contains static utility methods and constants related to Import statements.
ImportUtil() - Constructor in ImportUtil
includeRuleDescriptions - Property in AbstractHtmlReportWriter
includes - Field in CodeNarc
includes - Property in FilesystemSourceAnalyzer
The ant-style pattern of files to include in the analysis.
includeSummaryByPackage - Property in HtmlReportWriter
InconsistentPropertyLockingRule - Class in org.codenarc.rule.concurrency
Class contains similarly-named get and set methods where one method of the pair is marked either
WithReadLock:
or
WithWriteLock:
and the other is not locked at all.
InconsistentPropertyLockingRule() - Constructor in InconsistentPropertyLockingRule
InconsistentPropertySynchronizationRule - Class in org.codenarc.rule.concurrency
Class contains similarly-named get and set methods where the set method is synchronized and the get method is not, or the get method is synchronized and the set method is not.
InconsistentPropertySynchronizationRule() - Constructor in InconsistentPropertySynchronizationRule
IndentationRule - Class in org.codenarc.rule.formatting
Check indentation for class and method declarations
IndentationRule() - Constructor in IndentationRule
indentUnderLabel - Property in IndentationRule
indexOfClosingBrace(java.lang.String, int) - Method in AbstractSpaceAroundBraceAstVisitor
initialize() - Method in AbstractCodeNarcPlugin
initialize() - Method in BaselineResultsPlugin
initialize() - Method in CodeNarcPlugin
Perform plugin initialization
initializeDefaultResourceBundle() - Method in AbstractReportWriter
initializeResourceBundle - Field in AbstractReportWriter
initializeRuleRegistry() - Method in RuleRegistryInitializer
initializeWildcardPatterns() - Method in FilesystemSourceAnalyzer
inlineViolation(java.lang.String) - Method in AbstractRuleTestCase
Prepares an inline violation with a given message, escaping all '#' characters and preventing accidental escaping of next inline violation's start when the message ends with a '\' character.
inlineViolation(java.lang.String) - Method in InlineViolationsParser
InlineViolationsParser - Class in org.codenarc.rule
Parser for inline violation metadata within Rule test classes
InlineViolationsParser.ParseResult - Class in org.codenarc.rule
InlineViolationsParser.ParseResult() - Constructor in InlineViolationsParser.ParseResult
InlineViolationsParser() - Constructor in InlineViolationsParser
InlineXmlReportWriter - Class in org.codenarc.report
ReportWriter that generates an XML report with inline rule descriptions.
InlineXmlReportWriter() - Constructor in InlineXmlReportWriter
inMultilineComment - Field in MultilineCommentChecker
InsecureRandomRule - Class in org.codenarc.rule.security
Reports usages of java.util.Random, which can produce very predictable results.
InsecureRandomRule() - Constructor in InsecureRandomRule
InstanceofRule - Class in org.codenarc.rule.design
Checks for use of the instanceof operator.
InstanceofRule() - Constructor in InstanceofRule
instanceRegex - Property in StatelessSingletonRule
IntegerGetIntegerRule - Class in org.codenarc.rule.basic
This rule catches usages of java.lang.Integer.getInteger(String, ...) which reads an Integer from the System properties.
IntegerGetIntegerRule() - Constructor in IntegerGetIntegerRule
InterfaceNameRule - Class in org.codenarc.rule.naming
Rule that verifies that the name of an interface matches a regular expression specified in the regex property.
InterfaceNameRule() - Constructor in InterfaceNameRule
InterfaceNameSameAsSuperInterfaceRule - Class in org.codenarc.rule.naming
Checks for any interface that has an identical name to its super-interface, other than the package.
InterfaceNameSameAsSuperInterfaceRule() - Constructor in InterfaceNameSameAsSuperInterfaceRule
InvertedConditionRule - Class in org.codenarc.rule.convention
An inverted condition is one where a constant expression is used on the left hand side of the equals comparision.
InvertedConditionRule() - Constructor in InvertedConditionRule
InvertedIfElseRule - Class in org.codenarc.rule.convention
An inverted if-else statement is one in which there is a single if statement with a single else branch and the boolean test of the if is negated.
InvertedIfElseRule() - Constructor in InvertedIfElseRule
isAscii(char) - Method in SourceCodeUtil
isAssertCallWithConstantValue(org.codehaus.groovy.ast.expr.MethodCallExpression, java.lang.String, java.lang.Object) - Method in JUnitUtil
Return true if the MethodCallExpression represents a JUnit assert method call with the specified method name and constant argument value.
isAssertCallWithLiteralValue(org.codehaus.groovy.ast.expr.MethodCallExpression, java.lang.String, boolean) - Method in JUnitUtil
Return true if the MethodCallExpression represents a JUnit assert method call with the specified method name and constant argument value.
isAssertCallWithNonNullConstantValue(org.codehaus.groovy.ast.expr.MethodCallExpression, java.lang.String) - Method in JUnitUtil
isBinaryExpressionType(org.codehaus.groovy.ast.expr.Expression, List<String>) - Method in AstUtil
Returns true if the expression is a binary expression with the specified token.
isBlock(org.codehaus.groovy.ast.stmt.Statement) - Method in AstUtil
Return true if the Statement is a block
isBoolean(org.codehaus.groovy.ast.expr.Expression) - Method in AstUtil
Tells you if the expression is either the true or false literal.
isClosureDeclaration(org.codehaus.groovy.ast.ASTNode) - Method in AstUtil
Returns true if the ASTNode is a declaration of a closure, either as a declaration or a field.
isConstant(org.codehaus.groovy.ast.expr.Expression, java.lang.Object) - Method in AstUtil
Tells you if an expression is the expected constant.
isConstantOrConstantLiteral(org.codehaus.groovy.ast.expr.Expression) - Method in AstUtil
Returns true if an expression is a constant or else a literal that contains only constant values.
isConstantOrLiteral(org.codehaus.groovy.ast.expr.Expression) - Method in AstUtil
Tells you if an expression is a constant or literal.
isConstructorCall(org.codehaus.groovy.ast.expr.Expression, java.lang.String) - Method in AstUtil
Return true if the expression is a constructor call on a class that matches the supplied.
isConstructorCallAViolation(org.codehaus.groovy.ast.expr.ConstructorCallExpression) - Method in AbstractConstructorCallAstVisitor
Subclasses must implement to return true if the visited constructor call causes a rule violation
isCpsMethod(org.codehaus.groovy.ast.MethodNode, boolean) - Method in JenkinsUtil
isDefinedInJpaEntity(org.codehaus.groovy.ast.FieldNode) - Method in PrivateFieldCouldBeFinalRule
isDirectoryContainingFiles(org.codenarc.results.Results) - Method in AbstractHtmlReportWriter
Return true if the Results represents a directory that contains at least one file
isDirectoryContainingFilesWithViolations(org.codenarc.results.Results) - Method in AbstractHtmlReportWriter
Return true if the Results represents a directory that contains at least one file with one or more violations.
isEmptyBlock(org.codehaus.groovy.ast.stmt.Statement) - Method in AstUtil
Return true if the Statement is a block and it is empty (contains no "meaningful" statements).
isEnabled(org.codenarc.rule.Rule) - Method in AbstractReportWriter
isEnabled() - Method in AbstractRule
isEnhancedMode() - Method in AbstractEnhanceableAstVisitorRule
isFalse(org.codehaus.groovy.ast.expr.Expression) - Method in AstUtil
Tells you if the expression is the false expression, either literal or constant.
isFile() - Method in DirectoryResults
Returns:
false (this object does not represents the results for a single file)
isFile() - Method in FileResults
Returns:
true (this object represents the results for a single file)
isFile() - Method in Results
Returns:
true only if this object represents the results for a single file
isFile() - Method in VirtualResults
isFinalVariable(org.codehaus.groovy.ast.expr.DeclarationExpression, org.codenarc.source.SourceCode) - Method in AstUtil
Return true if the DeclarationExpression represents a 'final' variable declaration.
isFirstVisit(java.lang.Object) - Method in AbstractAstVisitor
Return true if the AST expression has not already been visited.
isFromGeneratedSourceCode(org.codehaus.groovy.ast.ASTNode) - Method in AstUtil
Returns:
true if the ASTNode was generated (synthetic) rather than from the "real" input source code.
isGeneratedCode(org.codehaus.groovy.ast.ASTNode) - Method in AbstractAstVisitor
isGroovyVersion2() - Method in GroovyVersion
isIgnoredMethodName(java.lang.String) - Method in AbstractMethodMetricAstVisitor
isInstanceOfCheck(java.lang.Object) - Method in AstUtil
isJoinableType(org.codehaus.groovy.ast.expr.Expression) - Method in ConsecutiveUtils
isLastStatementInBlock(org.codehaus.groovy.ast.stmt.Statement) - Method in AbstractLastStatementInBlockAstVisitor
isListLiteralWithOnlyConstantValues(org.codehaus.groovy.ast.expr.Expression) - Method in AstUtil
Returns true if a List literal that contains only entries that are constants.
isMapLiteralWithOnlyConstantValues(org.codehaus.groovy.ast.expr.Expression) - Method in AstUtil
Returns true if a Map literal that contains only entries where both key and value are constants.
isMatchingLoggerDefinition(org.codehaus.groovy.ast.expr.Expression) - Method in LogUtil
isMethodCall(org.codehaus.groovy.ast.expr.Expression, java.lang.String, groovy.lang.Range) - Method in AstUtil
Tells you if the expression is a method call for a certain method name with a certain number of arguments.
isMethodCallOnObject(org.codehaus.groovy.ast.expr.Expression, java.lang.String) - Method in AstUtil
Tells you if the expression is a method call on a particular object (which is represented as a String).
isMethodNamed(org.codehaus.groovy.ast.expr.MethodCallExpression, java.lang.String) - Method in AstUtil
isMethodNode(org.codehaus.groovy.ast.ASTNode, java.lang.String) - Method in AstUtil
isNotCharacter(java.lang.String, char, int) - Method in AbstractSpaceAroundBraceAstVisitor
isNotGeneratedCode(org.codehaus.groovy.ast.ASTNode) - Method in AbstractAstVisitor
isNotInsideGString() - Method in AbstractSpaceAroundBraceAstVisitor
isNotNullCheck(java.lang.Object) - Method in AstUtil
isNotWhitespace(java.lang.String, int) - Method in AbstractSpaceAroundBraceAstVisitor
Return true if the specified (1-based) index is valid and the character at that index is not a whitespace character
isNull(org.codehaus.groovy.ast.ASTNode) - Method in AstUtil
Tells you if the expression is the null literal.
isNullCheck(java.lang.Object) - Method in AstUtil
isOneLiner(java.lang.Object) - Method in AstUtil
isPropertyNamed(org.codehaus.groovy.ast.expr.Expression, java.lang.Object) - Method in AstUtil
isPublic(org.codehaus.groovy.ast.ASTNode) - Method in AstUtil
Tells you if the ASTNode has a public modifier on it.
isReady() - Method in AbstractClassNameRule
isReady() - Method in AbstractRule
Allows rules to check whether preconditions are satisfied and short-circuit execution (i.e., do nothing) if those preconditions are not satisfied.
isReady() - Method in CrapMetricRule
isReady() - Method in IllegalClassMemberRule
isReady() - Method in IllegalClassReferenceRule
isReady() - Method in IllegalPackageReferenceRule
isReady() - Method in IllegalRegexRule
isReady() - Method in IllegalStringRule
isReady() - Method in IllegalSubclassRule
isReady() - Method in InterfaceNameRule
isReady() - Method in PackageNameMatchesFilePathRule
isReady() - Method in RequiredRegexRule
isReady() - Method in RequiredStringRule
isReady() - Method in StatelessClassRule
isRoot(org.codenarc.results.Results) - Method in JsonReportWriter
isRoot(org.codenarc.results.Results) - Method in XmlReportWriter
isRuleSuppressed(org.codenarc.rule.Rule) - Method in SuppressionAnalyzer
isSafe(org.codehaus.groovy.ast.expr.Expression) - Method in AstUtil
Tells you if the expression is a null safe dereference.
isSerializableOrDynamicType(org.codehaus.groovy.ast.ClassNode) - Method in SerializationUtil
isSetUpMethod(org.codehaus.groovy.ast.MethodNode) - Method in JUnitUtil
isSpreadSafe(org.codehaus.groovy.ast.expr.Expression) - Method in AstUtil
Tells you if the expression is a spread operator call
isStatementWithinFinally(org.codehaus.groovy.ast.stmt.Statement) - Method in AbstractFinallyAstVisitor
Returns:
true if the specified statement is within a finally block
isSuperReference(org.codehaus.groovy.ast.expr.Expression) - Method in AstUtil
isTearDownMethod(org.codehaus.groovy.ast.MethodNode) - Method in JUnitUtil
isTestMethod(org.codehaus.groovy.ast.ASTNode) - Method in JUnitUtil
Tells you if an ASTNode is a test MethodNode.
isThisReference(org.codehaus.groovy.ast.expr.Expression) - Method in AstUtil
isTrue(org.codehaus.groovy.ast.expr.Expression) - Method in AstUtil
Tells you if the expression is true, which can be true or Boolean.TRUE.
isTypeSuffixNecessary(java.lang.Object) - Method in UnnecessaryInstantiationAstVisitor
isValid() - Method in AbstractSourceCode
Return true if and only if the source code can be successfully compiled
isValid() - Method in GMetricsSourceCodeAdapter
isValid() - Method in SourceCode
Return true if and only if the source code can be successfully compiled
isVariable(org.codehaus.groovy.ast.ASTNode, java.lang.String) - Method in AstUtil
Tells you if the given ASTNode is a VariableExpression with the given name.
isViolationSuppressed(org.codenarc.rule.Violation) - Method in SuppressionAnalyzer
isWriteAsSingleLine() - Method in GitlabCodeQualityReportWriter
isWriteAsSingleLine() - Method in JsonReportWriter
isWriteToStandardOut() - Method in AbstractReportWriter

J

JAVADOC_ANY_LINES - Field in CommentsUtil
JAVADOC_EMPTY_LINE - Field in CommentsUtil
JAVADOC_END - Field in CommentsUtil
JAVADOC_LINE_PREFIX - Field in CommentsUtil
JAVADOC_LINE_WITH_TEXT - Field in CommentsUtil
JAVADOC_START - Field in CommentsUtil
JavadocConsecutiveEmptyLinesRule - Class in org.codenarc.rule.comments
Checks for javadoc comments with more than one consecutive empty line
JavadocConsecutiveEmptyLinesRule() - Constructor in JavadocConsecutiveEmptyLinesRule
JavadocEmptyAuthorTagRule - Class in org.codenarc.rule.comments
Checks for empty
Authors:
tags in javadoc.
JavadocEmptyAuthorTagRule() - Constructor in JavadocEmptyAuthorTagRule
JavadocEmptyExceptionTagRule - Class in org.codenarc.rule.comments
Checks for empty
Throws:
tag within javadoc.
JavadocEmptyExceptionTagRule() - Constructor in JavadocEmptyExceptionTagRule
JavadocEmptyFirstLineRule - Class in org.codenarc.rule.comments
Check for javadoc comments with an empty top line
JavadocEmptyFirstLineRule() - Constructor in JavadocEmptyFirstLineRule
JavadocEmptyLastLineRule - Class in org.codenarc.rule.comments
Check for javadoc comments with an empty line at the bottom
JavadocEmptyLastLineRule() - Constructor in JavadocEmptyLastLineRule
JavadocEmptyParamTagRule - Class in org.codenarc.rule.comments
Checks for empty
Parameters:
tags - within javadoc
JavadocEmptyParamTagRule() - Constructor in JavadocEmptyParamTagRule
JavadocEmptyReturnTagRule - Class in org.codenarc.rule.comments
Checks for empty
Returns:
tags within javadoc.
JavadocEmptyReturnTagRule() - Constructor in JavadocEmptyReturnTagRule
JavadocEmptySeeTagRule - Class in org.codenarc.rule.comments
Checks for empty
See Also:
tags
JavadocEmptySeeTagRule() - Constructor in JavadocEmptySeeTagRule
JavadocEmptySinceTagRule - Class in org.codenarc.rule.comments
Checks for empty
Since:
tags within javadoc.
JavadocEmptySinceTagRule() - Constructor in JavadocEmptySinceTagRule
JavadocEmptyThrowsTagRule - Class in org.codenarc.rule.comments
Checks for empty
throws:
tag within javadoc
JavadocEmptyThrowsTagRule() - Constructor in JavadocEmptyThrowsTagRule
JavadocEmptyVersionTagRule - Class in org.codenarc.rule.comments
Checks for empty
Version:
tags within javadoc.
JavadocEmptyVersionTagRule() - Constructor in JavadocEmptyVersionTagRule
JavadocMissingExceptionDescriptionRule - Class in org.codenarc.rule.comments
Checks for missing description within
Throws:
javadoc tag
JavadocMissingExceptionDescriptionRule() - Constructor in JavadocMissingExceptionDescriptionRule
JavadocMissingParamDescriptionRule - Class in org.codenarc.rule.comments
Checks for missing description within
Parameters:
javadoc - tags
JavadocMissingParamDescriptionRule() - Constructor in JavadocMissingParamDescriptionRule
JavadocMissingThrowsDescriptionRule - Class in org.codenarc.rule.comments
Checks for missing description within
throws:
javadoc tag
JavadocMissingThrowsDescriptionRule() - Constructor in JavadocMissingThrowsDescriptionRule
JavaIoPackageAccessRule - Class in org.codenarc.rule.security
This rule reports violations of the Enterprise JavaBeans specification by using the java.io package to access files or the file system.
JavaIoPackageAccessRule() - Constructor in JavaIoPackageAccessRule
JdbcConnectionReferenceRule - Class in org.codenarc.rule.jdbc
Check for direct use of java.sql.Connection.
JdbcConnectionReferenceRule() - Constructor in JdbcConnectionReferenceRule
JdbcResultSetReferenceRule - Class in org.codenarc.rule.jdbc
Check for direct use of java.sql.ResultSet, which is not necessary if using the Groovy Sql facility or an ORM framework such as Hibernate.
JdbcResultSetReferenceRule() - Constructor in JdbcResultSetReferenceRule
JdbcStatementReferenceRule - Class in org.codenarc.rule.jdbc
Check for direct use of java.sql.Statement, PreparedStatement, or CallableStatement, which is not necessary if using the Groovy Sql facility or an ORM framework such as Hibernate.
JdbcStatementReferenceRule() - Constructor in JdbcStatementReferenceRule
JenkinsUtil - Class in org.codenarc.rule.jenkins
Common functionality for Jenkins rules
JenkinsUtil() - Constructor in JenkinsUtil
JsonFileRuleSet - Class in org.codenarc.ruleset
A RuleSet implementation that parses Rule definitions from JSON read from a file.
JsonFileRuleSet(java.lang.String) - Constructor in JsonFileRuleSet
Construct a new instance on the specified RuleSet file path
JsonReaderRuleSet - Class in org.codenarc.ruleset
A RuleSet implementation that parses Rule definitions from Json read from a Reader.
JsonReaderRuleSet(java.io.Reader) - Constructor in JsonReaderRuleSet
Construct a new instance on the specified Reader
JsonReportWriter - Class in org.codenarc.report
ReportWriter that generates an JSON report.
JsonReportWriter() - Constructor in JsonReportWriter
JUnitAssertAlwaysFailsRule - Class in org.codenarc.rule.junit
Rule that checks for JUnit assert() method calls with constant arguments such that the assertion always fails.
JUnitAssertAlwaysFailsRule() - Constructor in JUnitAssertAlwaysFailsRule
JUnitAssertAlwaysSucceedsRule - Class in org.codenarc.rule.junit
Rule that checks for JUnit assert() method calls with constant arguments such that the assertion always succeeds.
JUnitAssertAlwaysSucceedsRule() - Constructor in JUnitAssertAlwaysSucceedsRule
JUnitAssertEqualsConstantActualValueRule - Class in org.codenarc.rule.junit
Reports usages of org.junit.Assert.assertEquals([message,] expected, actual) where the 'actual' parameter is a constant or a literal.
JUnitAssertEqualsConstantActualValueRule() - Constructor in JUnitAssertEqualsConstantActualValueRule
JUnitFailWithoutMessageRule - Class in org.codenarc.rule.junit
This rule detects JUnit calling the fail() method without an argument.
JUnitFailWithoutMessageRule() - Constructor in JUnitFailWithoutMessageRule
JUnitLostTestRule - Class in org.codenarc.rule.junit
Rule that checks if a JUnit 4 test class contains public, instance, void, no-arg methods named test*() that are NOT abstract and NOT annotated with
Test.:
JUnitLostTestRule() - Constructor in JUnitLostTestRule
JUnitPublicFieldRule - Class in org.codenarc.rule.junit
Checks for public field on a JUnit test class.
JUnitPublicFieldRule() - Constructor in JUnitPublicFieldRule
JUnitPublicNonTestMethodRule - Class in org.codenarc.rule.junit
Rule that checks if a JUnit test class contains public methods other than:
  • Zero-argument methods with names starting with "test"
  • The setUp() and tearDown() methods
  • Methods annotated with @Test
  • Methods annotated with
    Before:
    and
    @After
  • Methods annotated with
    BeforeClass:
    and
    @AfterClass
Public, non-test methods on a test class violate conventional usage of test classes, and can be confusing.
JUnitPublicNonTestMethodRule() - Constructor in JUnitPublicNonTestMethodRule
JUnitPublicPropertyRule - Class in org.codenarc.rule.junit
Checks for public properties defined on JUnit test classes.
JUnitPublicPropertyRule() - Constructor in JUnitPublicPropertyRule
JUnitSetUpCallsSuperRule - Class in org.codenarc.rule.junit
Rule that checks that if the JUnit setUp() method is defined, that it includes a call to super.setUp().
JUnitSetUpCallsSuperRule() - Constructor in JUnitSetUpCallsSuperRule
JUnitStyleAssertionsRule - Class in org.codenarc.rule.junit
This rule detects calling JUnit style assertions like assertEquals, assertTrue, assertFalse, assertNull, assertNotNull.
JUnitStyleAssertionsRule() - Constructor in JUnitStyleAssertionsRule
JUnitTearDownCallsSuperRule - Class in org.codenarc.rule.junit
Rule that checks that if the JUnit tearDown() method is defined, that it includes a call to super.tearDown().
JUnitTearDownCallsSuperRule() - Constructor in JUnitTearDownCallsSuperRule
JUnitTestMethodWithoutAssertRule - Class in org.codenarc.rule.junit
This rule searches for test methods that do not contain assert statements.
JUnitTestMethodWithoutAssertRule() - Constructor in JUnitTestMethodWithoutAssertRule
JUnitUnnecessarySetUpRule - Class in org.codenarc.rule.junit
Rule that checks for a JUnit setUp() method that only contains a call to super.setUp().
JUnitUnnecessarySetUpRule() - Constructor in JUnitUnnecessarySetUpRule
JUnitUnnecessaryTearDownRule - Class in org.codenarc.rule.junit
Rule that checks for a JUnit tearDown() method that only contains a call to super.tearDown().
JUnitUnnecessaryTearDownRule() - Constructor in JUnitUnnecessaryTearDownRule
JUnitUnnecessaryThrowsExceptionRule - Class in org.codenarc.rule.junit
Check for throws clauses on JUnit test methods.
JUnitUnnecessaryThrowsExceptionRule() - Constructor in JUnitUnnecessaryThrowsExceptionRule
JUnitUtil - Class in org.codenarc.rule.junit
Utility methods for JUnit rule classes.

K

L

lastSourceLine(org.codehaus.groovy.ast.ASTNode) - Method in AbstractAstVisitor
Return the last raw source line corresponding to the specified AST node
lastSourceLine(org.codehaus.groovy.ast.ASTNode, org.codenarc.source.SourceCode) - Method in AstUtil
lastSourceLineOrEmpty(org.codehaus.groovy.ast.ASTNode) - Method in AbstractSpaceAroundBraceAstVisitor
lastSourceLineTrimmed(org.codehaus.groovy.ast.ASTNode) - Method in AbstractAstVisitor
Return the trimmed last source line corresponding to the specified AST node
length - Property in LineLengthRule
line(int) - Method in AbstractSourceCode
Get the trimmed line at the specified index
line(int) - Method in GMetricsSourceCodeAdapter
line(int) - Method in SourceCode
Get the trimmed line at the specified index
LineLengthRule - Class in org.codenarc.rule.formatting
Checks the maximum length for each line of source code.
LineLengthRule() - Constructor in LineLengthRule
lineNumber - Property in Violation
ListRuleSet - Class in org.codenarc.ruleset
A RuleSet implementation that returns a static List of Rules passed into its constructor.
ListRuleSet(java.util.List) - Constructor in ListRuleSet
Construct a new instance from the specified List of rules.
loadRuleScriptFile(java.lang.String) - Method in RuleSetUtil
loadRuleSetFile(java.lang.String) - Method in RuleSetUtil
loadRuleSetFromString(java.lang.String) - Method in RuleSetUtil
LocaleSetDefaultRule - Class in org.codenarc.rule.design
Checks for calls to Locale.setDefault(), which sets the Locale across the entire JVM.
LocaleSetDefaultRule() - Constructor in LocaleSetDefaultRule
LOG - Property in AbstractSourceCode
LOG - Field in AbstractTestCase
LoggerForDifferentClassRule - Class in org.codenarc.rule.logging
Rule that checks for instantiating a logger for a class other than the current class.
LoggerForDifferentClassRule() - Constructor in LoggerForDifferentClassRule
LoggerWithWrongModifiersRule - Class in org.codenarc.rule.logging
Logger objects should be declared private, static and final.
LoggerWithWrongModifiersRule() - Constructor in LoggerWithWrongModifiersRule
LoggingSwallowsStacktraceRule - Class in org.codenarc.rule.logging
If you are logging an exception then the proper API is to call error(Object, Throwable), which will log the message and the exception stack trace.
LoggingSwallowsStacktraceRule() - Constructor in LoggingSwallowsStacktraceRule
LOGO_FILE - Field in AbstractHtmlReportWriter
LogUtil - Class in org.codenarc.rule.logging
Utility methods for Logging rules
LogUtil() - Constructor in LogUtil
LongLiteralWithLowerCaseLRule - Class in org.codenarc.rule.convention
In Java and Groovy, you can specify long literals with the L or l character, for instance 55L or 24l.
LongLiteralWithLowerCaseLRule() - Constructor in LongLiteralWithLowerCaseLRule
LookupTable - Class in org.codenarc.plugin.disablerules
Manages a lookup table for disabled rules within a single source file
LookupTable(java.lang.String) - Constructor in LookupTable

M

main(java.lang.String) - Method in CodeNarc
Main command-line entry-point.
main(java.lang.String) - Method in GenerateAll
Invoke all generation scripts
main(java.lang.String) - Method in GenerateCodeNarcRulesProperties
Write out all current rules to the 'codenarc-base-rules.properties' properties file
main(java.lang.String) - Method in GenerateRuleIndexPages
Write out rule index by rule category to the 'codenarc-rule-index.apt' APT file, and the rule index by name to the 'codenarc-rule-index-by-name.apt' APT file.
main(java.lang.String) - Method in GenerateRuleSetAllRules
Write out all current rules to the 'StarterRuleSet-AllRules.groovy.txt' properties file
main(java.lang.String) - Method in GenerateRuleSetAllRulesByCategory
Write out all current rules to the 'StarterRuleSet-AllRulesByCategory.groovy.txt' properties file
manuallyApplyRule(java.lang.String) - Method in AbstractRuleTestCase
Apply the current Rule to the specified source (String) and return the resulting List of Violations.
matches(org.codenarc.source.SourceCode) - Method in FilesystemSourceAnalyzer
matches(org.codenarc.source.SourceCode) - Method in SourceCodeCriteria
Return true if all of the criteria specified in this object apply to thw SourceCode.
matches(java.lang.String) - Method in WildcardPattern
Return true if the specified String matches the pattern or if the original patternString (specified in the constructor) was null or empty and the value for defaultMatches (also specified in the constructor) was true.
matchesAnyModifiers(java.lang.Integer, List<Integer>) - Method in ModifiersUtil
matchesModifiers(java.lang.Integer, java.lang.Integer) - Method in ModifiersUtil
Return true only if the actualModifiers int value contains all of the bits (enabled) from the expectedModifiers
MAX_SOURCE_LINE_LENGTH - Field in AbstractHtmlReportWriter
maxClassAbcScore - Property in AbcMetricRule
maxClassAverageMethodAbcScore - Property in AbcMetricRule
maxClassAverageMethodComplexity - Property in CyclomaticComplexityRule
maxClassAverageMethodCrapScore - Property in CrapMetricRule
maxClassComplexity - Property in CyclomaticComplexityRule
maxClassCrapScore - Property in CrapMetricRule
maxLines - Property in ClassSizeRule
maxLines - Property in MethodSizeRule
maxMethodAbcScore - Property in AbcMetricRule
maxMethodComplexity - Property in CyclomaticComplexityRule
maxMethodCrapScore - Property in CrapMetricRule
maxMethods - Property in MethodCountRule
maxNestedBlockDepth - Property in NestedBlockDepthRule
maxParameters - Property in ParameterCountRule
maxPriority1Violations - Field in CodeNarc
maxPriority1Violations - Property in CodeNarcTask
maxPriority2Violations - Field in CodeNarc
maxPriority2Violations - Property in CodeNarcTask
maxPriority3Violations - Field in CodeNarc
maxPriority3Violations - Property in CodeNarcTask
maxPriority - Property in AbstractHtmlReportWriter
maxPriority - Property in TextReportWriter
maxReferencesAllowed - Property in UnnecessaryObjectReferencesRule
measureRuleProcessingTime(org.codenarc.rule.Rule, groovy.lang.Closure) - Method in AbstractSourceAnalyzer
message - Property in BaselineViolation
MESSAGE - Field in CollectAllIsDeprecatedRule
MESSAGE_DEF_FIELD - Field in NoDefRule
MESSAGE_DEF_PARAMETER - Field in NoDefRule
MESSAGE_DEF_RETURN - Field in NoDefRule
MESSAGE - Field in NoDefRule
MESSAGE - Field in UnnecessarySemicolonRule
MESSAGE - Field in UseCollectManyRule
MESSAGE - Field in UseCollectNestedRule
message - Property in Violation
MethodCountRule - Class in org.codenarc.rule.size
A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine-grained objects.
MethodCountRule() - Constructor in MethodCountRule
methodName - Property in ExplicitCallToMethodAstVisitor
methodNameRegex - Property in BuilderMethodWithSideEffectsRule
MethodNameRule - Class in org.codenarc.rule.naming
Rule that verifies that the name of each method matches a regular expression.
MethodNameRule() - Constructor in MethodNameRule
MethodParameterTypeRequired - Class in org.codenarc.rule.convention
Checks that method parameters are not dynamically typed, that is they are explicitly stated and different than def.
MethodParameterTypeRequired() - Constructor in MethodParameterTypeRequired
MethodReturnTypeRequiredRule - Class in org.codenarc.rule.convention
Checks that method return types are not dynamic, that they are explicitly stated and different than def.
MethodReturnTypeRequiredRule() - Constructor in MethodReturnTypeRequiredRule
MethodSizeRule - Class in org.codenarc.rule.size
Rule that checks the size of a method.
MethodSizeRule() - Constructor in MethodSizeRule
metric - Field in AbstractMethodMetricAstVisitor
MisorderedStaticImportsRule - Class in org.codenarc.rule.imports
Static imports should be before nonstatic imports
MisorderedStaticImportsRule() - Constructor in MisorderedStaticImportsRule
MissingBlankLineAfterImportsRule - Class in org.codenarc.rule.formatting
Makes sure there is a blank line after the imports of a source code file.
MissingBlankLineAfterImportsRule() - Constructor in MissingBlankLineAfterImportsRule
MissingBlankLineAfterPackageRule - Class in org.codenarc.rule.formatting
Makes sure there is a blank line after the package statement of a source code file.
MissingBlankLineAfterPackageRule() - Constructor in MissingBlankLineAfterPackageRule
MissingBlankLineBeforeAnnotatedFieldRule - Class in org.codenarc.rule.formatting
Checks that there is a blank line before a field declaration that uses annotations.
MissingBlankLineBeforeAnnotatedFieldRule() - Constructor in MissingBlankLineBeforeAnnotatedFieldRule
MissingNewInThrowStatementRule - Class in org.codenarc.rule.exceptions
A common Groovy mistake when throwing exceptions is to forget the new keyword.
MissingNewInThrowStatementRule() - Constructor in MissingNewInThrowStatementRule
MissingOverrideAnnotationRule - Class in org.codenarc.rule.enhanced
Checks for methods that override a method in a super class or implement a method in an interface but are not annotated with @Override.
MissingOverrideAnnotationRule() - Constructor in MissingOverrideAnnotationRule
ModifiersUtil - Class in org.codenarc.util
Provide static utility methods for parsing AST member modifiers, e.g. public/protected/private, static, final, etc.
MovedRules - Class in org.codenarc.ruleset
Helper class to manage information for moved or renamed rules, and provide helpful error message.
MultilineCommentChecker - Class in org.codenarc.util
A class that is used to hold the state of a the presence of multiline comments.
MultilineCommentChecker() - Constructor in MultilineCommentChecker
MultipleLoggersRule - Class in org.codenarc.rule.logging
This rule catches classes that have more than one logger object defined.
MultipleLoggersRule() - Constructor in MultipleLoggersRule
MultipleUnaryOperatorsRule - Class in org.codenarc.rule.basic
Checks for multiple consecutive unary operators.
MultipleUnaryOperatorsRule() - Constructor in MultipleUnaryOperatorsRule

N

name - Property in AbcMetricRule
name - Property in AbstractClassNameRule
name - Property in AbstractClassWithoutAbstractMethodRule
name - Property in AbstractClassWithPublicConstructorRule
name - Property in AddEmptyStringRule
name - Property in AssertWithinFinallyBlockRule
name - Property in AssignCollectionSortRule
name - Property in AssignCollectionUniqueRule
name - Property in AssignmentInConditionalRule
name - Property in AssignmentToStaticFieldFromInstanceMethodRule
name - Property in BigDecimalInstantiationRule
name - Property in BitwiseOperatorInConditionalRule
name - Property in BlankLineBeforePackageRule
name - Property in BlockEndsWithBlankLineRule
name - Property in BlockStartsWithBlankLineRule
name - Property in BooleanGetBooleanRule
name - Property in BooleanMethodReturnsNullRule
name - Property in BracesForClassRule
name - Property in BracesForForLoopRule
name - Property in BracesForIfElseRule
name - Property in BracesForMethodRule
name - Property in BracesForTryCatchFinallyRule
name - Property in BrokenNullCheckRule
name - Property in BrokenOddnessCheckRule
name - Property in BuilderMethodWithSideEffectsRule
name - Property in BusyWaitRule
name - Property in CatchArrayIndexOutOfBoundsExceptionRule
name - Property in CatchErrorRule
name - Property in CatchExceptionRule
name - Property in CatchIllegalMonitorStateExceptionRule
name - Property in CatchIndexOutOfBoundsExceptionRule
name - Property in CatchNullPointerExceptionRule
name - Property in CatchRuntimeExceptionRule
name - Property in CatchThrowableRule
name - Property in ChainedTestRule
name - Property in ClassEndsWithBlankLineRule
name - Property in ClassForNameRule
name - Property in ClassJavadocRule
name - Property in ClassNameRule
name - Property in ClassNameSameAsFilenameRule
name - Property in ClassNameSameAsSuperclassRule
name - Property in ClassNotSerializableRule
name - Property in ClassSizeRule
name - Property in ClassStartsWithBlankLineRule
name - Property in CloneableWithoutCloneRule
name - Property in CloneWithoutCloneableRule
name - Property in CloseWithoutCloseableRule
name - Property in ClosureAsLastMethodParameterRule
name - Property in ClosureInGStringRule
name - Property in ClosureStatementOnOpeningLineOfMultipleLineClosureRule
name - Property in CollectAllIsDeprecatedRule
name - Property in CompareToWithoutComparableRule
name - Property in ComparisonOfTwoConstantsRule
name - Property in ComparisonWithSelfRule
name - Property in CompileStaticRule
name - Property in ConfusingClassNamedExceptionRule
name - Property in ConfusingMethodNameRule
name - Property in ConfusingMultipleReturnsRule
name - Property in ConfusingTernaryRule
name - Property in ConsecutiveBlankLinesRule
name - Property in ConsecutiveLiteralAppendsRule
name - Property in ConsecutiveStringConcatenationRule
name - Property in ConstantAssertExpressionRule
name - Property in ConstantIfExpressionRule
name - Property in ConstantsOnlyInterfaceRule
name - Property in ConstantTernaryExpressionRule
name - Property in CouldBeElvisRule
name - Property in CouldBeSwitchStatementRule
name - Property in CoupledTestCaseRule
name - Property in CpsCallFromNonCpsMethodRule
name - Property in CrapMetricRule
name - Property in CyclomaticComplexityRule
name - Property in DeadCodeRule
name - Property in DirectConnectionManagementRule
name - Property in DoubleCheckedLockingRule
name - Property in DoubleNegativeRule
name - Property in DuplicateCaseStatementRule
name - Property in DuplicateImportRule
name - Property in DuplicateListLiteralRule
name - Property in DuplicateMapKeyRule
name - Property in DuplicateMapLiteralRule
name - Property in DuplicateNumberLiteralRule
name - Property in DuplicateSetValueRule
name - Property in DuplicateStringLiteralRule
name - Property in ElseBlockBracesRule
name - Property in EmptyCatchBlockRule
name - Property in EmptyClassRule
name - Property in EmptyElseBlockRule
name - Property in EmptyFinallyBlockRule
name - Property in EmptyForStatementRule
name - Property in EmptyIfStatementRule
name - Property in EmptyInstanceInitializerRule
name - Property in EmptyMethodInAbstractClassRule
name - Property in EmptyMethodRule
name - Property in EmptyStaticInitializerRule
name - Property in EmptySwitchStatementRule
name - Property in EmptySynchronizedStatementRule
name - Property in EmptyTryBlockRule
name - Property in EmptyWhileStatementRule
name - Property in EnumCustomSerializationIgnoredRule
name - Property in EqualsAndHashCodeRule
name - Property in EqualsOverloadedRule
name - Property in ExceptionExtendsErrorRule
name - Property in ExceptionExtendsThrowableRule
name - Property in ExceptionNotThrownRule
name - Property in ExplicitArrayListInstantiationRule
name - Property in ExplicitCallToAndMethodRule
name - Property in ExplicitCallToCompareToMethodRule
name - Property in ExplicitCallToDivMethodRule
name - Property in ExplicitCallToEqualsMethodRule
name - Property in ExplicitCallToGetAtMethodRule
name - Property in ExplicitCallToLeftShiftMethodRule
name - Property in ExplicitCallToMinusMethodRule
name - Property in ExplicitCallToModMethodRule
name - Property in ExplicitCallToMultiplyMethodRule
name - Property in ExplicitCallToOrMethodRule
name - Property in ExplicitCallToPlusMethodRule
name - Property in ExplicitCallToPowerMethodRule
name - Property in ExplicitCallToPutAtMethodRule
name - Property in ExplicitCallToRightShiftMethodRule
name - Property in ExplicitCallToXorMethodRule
name - Property in ExplicitGarbageCollectionRule
name - Property in ExplicitHashMapInstantiationRule
name - Property in ExplicitHashSetInstantiationRule
name - Property in ExplicitLinkedHashMapInstantiationRule
name - Property in ExplicitLinkedListInstantiationRule
name - Property in ExplicitStackInstantiationRule
name - Property in ExplicitTreeSetInstantiationRule
name - Property in ExpressionInCpsMethodNotSerializableRule
name - Property in FactoryMethodNameRule
name - Property in FieldNameRule
name - Property in FieldTypeRequiredRule
name - Property in FileCreateTempFileRule
name - Property in FileEndsWithoutNewlineRule
name - Property in FinalClassWithProtectedMemberRule
name - Property in ForbiddenCallInCpsMethodRule
name - Property in ForLoopShouldBeWhileLoopRule
name - Property in ForStatementBracesRule
name - Property in GetterMethodCouldBePropertyRule
name - Property in GrailsDomainGormMethodsRule
name - Property in GrailsDomainHasEqualsRule
name - Property in GrailsDomainHasToStringRule
name - Property in GrailsDomainReservedSqlKeywordNameRule
name - Property in GrailsDomainStringPropertyMaxSizeRule
name - Property in GrailsDomainWithServiceReferenceRule
name - Property in GrailsDuplicateConstraintRule
name - Property in GrailsDuplicateMappingRule
name - Property in GrailsMassAssignmentRule
name - Property in GrailsPublicControllerMethodRule
name - Property in GrailsServletContextReferenceRule
name - Property in GrailsStatelessServiceRule
name - Property in GroovyLangImmutableRule
name - Property in GStringAsMapKeyRule
name - Property in GStringExpressionWithinStringRule
name - Property in HardCodedWindowsFileSeparatorRule
name - Property in HardCodedWindowsRootDirectoryRule
name - Property in HashtableIsObsoleteRule
name - Property in IfStatementBracesRule
name - Property in IfStatementCouldBeTernaryRule
name - Property in IllegalClassMemberRule
name - Property in IllegalClassReferenceRule
name - Property in IllegalPackageReferenceRule
name - Property in IllegalRegexRule
name - Property in IllegalStringRule
name - Property in IllegalSubclassRule
name - Property in ImplementationAsTypeRule
name - Property in ImplicitClosureParameterRule
name - Property in ImplicitReturnStatementRule
name - Property in ImportFromSamePackageRule
name - Property in ImportFromSunPackagesRule
name - Property in InconsistentPropertyLockingRule
name - Property in InconsistentPropertySynchronizationRule
name - Property in IndentationRule
name - Property in InsecureRandomRule
name - Property in InstanceofRule
name - Property in IntegerGetIntegerRule
name - Property in InterfaceNameRule
name - Property in InterfaceNameSameAsSuperInterfaceRule
name - Property in InvertedConditionRule
name - Property in InvertedIfElseRule
name - Property in JavadocConsecutiveEmptyLinesRule
name - Property in JavadocEmptyAuthorTagRule
name - Property in JavadocEmptyExceptionTagRule
name - Property in JavadocEmptyFirstLineRule
name - Property in JavadocEmptyLastLineRule
name - Property in JavadocEmptyParamTagRule
name - Property in JavadocEmptyReturnTagRule
name - Property in JavadocEmptySeeTagRule
name - Property in JavadocEmptySinceTagRule
name - Property in JavadocEmptyThrowsTagRule
name - Property in JavadocEmptyVersionTagRule
name - Property in JavadocMissingExceptionDescriptionRule
name - Property in JavadocMissingParamDescriptionRule
name - Property in JavadocMissingThrowsDescriptionRule
name - Property in JavaIoPackageAccessRule
name - Property in JdbcConnectionReferenceRule
name - Property in JdbcResultSetReferenceRule
name - Property in JdbcStatementReferenceRule
name - Property in JUnitAssertAlwaysFailsRule
name - Property in JUnitAssertAlwaysSucceedsRule
name - Property in JUnitAssertEqualsConstantActualValueRule
name - Property in JUnitFailWithoutMessageRule
name - Property in JUnitLostTestRule
name - Property in JUnitPublicFieldRule
name - Property in JUnitPublicNonTestMethodRule
name - Property in JUnitPublicPropertyRule
name - Property in JUnitSetUpCallsSuperRule
name - Property in JUnitStyleAssertionsRule
name - Property in JUnitTearDownCallsSuperRule
name - Property in JUnitTestMethodWithoutAssertRule
name - Property in JUnitUnnecessarySetUpRule
name - Property in JUnitUnnecessaryTearDownRule
name - Property in JUnitUnnecessaryThrowsExceptionRule
name - Property in LineLengthRule
name - Property in LocaleSetDefaultRule
name - Property in LoggerForDifferentClassRule
name - Property in LoggerWithWrongModifiersRule
name - Property in LoggingSwallowsStacktraceRule
name - Property in LongLiteralWithLowerCaseLRule
name - Property in MethodCountRule
name - Property in MethodNameRule
name - Property in MethodParameterTypeRequired
name - Property in MethodReturnTypeRequiredRule
name - Property in MethodSizeRule
name - Property in MisorderedStaticImportsRule
name - Property in MissingBlankLineAfterImportsRule
name - Property in MissingBlankLineAfterPackageRule
name - Property in MissingBlankLineBeforeAnnotatedFieldRule
name - Property in MissingNewInThrowStatementRule
name - Property in MissingOverrideAnnotationRule
name - Property in MultipleLoggersRule
name - Property in MultipleUnaryOperatorsRule
name - Property in NestedBlockDepthRule
name - Property in NestedForLoopRule
name - Property in NestedSynchronizationRule
name - Property in NoDefRule
name - Property in NoDoubleRule
name - Property in NoFloatRule
name - Property in NoJavaUtilDateRule
name - Property in NonFinalPublicFieldRule
name - Property in NonFinalSubclassOfSensitiveInterfaceRule
name - Property in NonSerializableFieldInSerializableClass
name - Property in NoScriptBindingsRule
name - Property in NoTabCharacterRule
name - Property in NoWildcardImportsRule
name - Property in ObjectFinalizeRule
name - Property in ObjectOverrideMisspelledMethodNameRule
name - Property in ObjectOverrideOnlyNonCpsMethods
name - Property in OptionalCollectionReturnTypeRule
name - Property in OptionalFieldRule
name - Property in OptionalMethodParameterRule
name - Property in PackageNameMatchesFilePathRule
name - Property in PackageNameRule
name - Property in ParameterAssignmentInFilterClosureRule
name - Property in ParameterCountRule
name - Property in ParameterNameRule
name - Property in ParameterOrReturnTypeNotSerializableRule
name - Property in ParameterReassignmentRule
name - Property in PrintlnRule
name - Property in PrintStackTraceRule
name - Property in PrivateFieldCouldBeFinalRule
name - Property in PropertyNameRule
name - Property in PublicFinalizeMethodRule
name - Property in PublicInstanceFieldRule
name - Property in PublicMethodsBeforeNonPublicMethodsRule
name - Property in RandomDoubleCoercedToZeroRule
name - Property in RemoveAllOnSelfRule
name - Property in ReportOption
name - Property in RequiredRegexRule
name - Property in RequiredStringRule
name - Property in ReturnFromFinallyBlockRule
name - Property in ReturnNullFromCatchBlockRule
name - Property in ReturnsNullInsteadOfEmptyArrayRule
name - Property in ReturnsNullInsteadOfEmptyCollectionRule
name - Property in SerializableClassMustDefineSerialVersionUIDRule
name - Property in SerialPersistentFieldsRule
name - Property in SerialVersionUIDRule
name - Property in SimpleDateFormatMissingLocaleRule
name - Property in SourceString
name - Property in SpaceAfterCatchRule
name - Property in SpaceAfterClosingBraceRule
name - Property in SpaceAfterCommaRule
name - Property in SpaceAfterCommentDelimiterRule
name - Property in SpaceAfterForRule
name - Property in SpaceAfterIfRule
name - Property in SpaceAfterMethodCallNameRule
name - Property in SpaceAfterMethodDeclarationNameRule
name - Property in SpaceAfterNotOperatorRule
name - Property in SpaceAfterOpeningBraceRule
name - Property in SpaceAfterSemicolonRule
name - Property in SpaceAfterSwitchRule
name - Property in SpaceAfterWhileRule
name - Property in SpaceAroundClosureArrowRule
name - Property in SpaceAroundMapEntryColonRule
name - Property in SpaceAroundOperatorRule
name - Property in SpaceBeforeClosingBraceRule
name - Property in SpaceBeforeCommentDelimiterRule
name - Property in SpaceBeforeOpeningBraceRule
name - Property in SpaceInsideParenthesesRule
name - Property in SpockIgnoreRestUsedRule
name - Property in SpockMissingAssertRule
name - Property in StatelessClassRule
name - Property in StatelessSingletonRule
name - Property in StaticCalendarFieldRule
name - Property in StaticConnectionRule
name - Property in StaticDateFormatFieldRule
name - Property in StaticFieldsBeforeInstanceFieldsRule
name - Property in StaticMatcherFieldRule
name - Property in StaticMethodsBeforeInstanceMethodsRule
name - Property in StaticSimpleDateFormatFieldRule
name - Property in StubRule
name - Property in SwallowThreadDeathRule
name - Property in SynchronizedMethodRule
name - Property in SynchronizedOnBoxedPrimitiveRule
name - Property in SynchronizedOnGetClassRule
name - Property in SynchronizedOnReentrantLockRule
name - Property in SynchronizedOnStringRule
name - Property in SynchronizedOnThisRule
name - Property in SynchronizedReadObjectMethodRule
name - Property in SystemErrPrintRule
name - Property in SystemExitRule
name - Property in SystemOutPrintRule
name - Property in SystemRunFinalizersOnExitRule
name - Property in TernaryCouldBeElvisRule
name - Property in ThisReferenceEscapesConstructorRule
name - Property in ThreadGroupRule
name - Property in ThreadLocalNotStaticFinalRule
name - Property in ThreadYieldRule
name - Property in ThrowErrorRule
name - Property in ThrowExceptionFromFinallyBlockRule
name - Property in ThrowExceptionRule
name - Property in ThrowNullPointerExceptionRule
name - Property in ThrowRuntimeExceptionRule
name - Property in ThrowThrowableRule
name - Property in ToStringReturnsNullRule
name - Property in TrailingCommaRule
name - Property in TrailingWhitespaceRule
name - Property in UnnecessaryBigDecimalInstantiationRule
name - Property in UnnecessaryBigIntegerInstantiationRule
name - Property in UnnecessaryBooleanExpressionRule
name - Property in UnnecessaryBooleanInstantiationRule
name - Property in UnnecessaryCallForLastElementRule
name - Property in UnnecessaryCallToSubstringRule
name - Property in UnnecessaryCastRule
name - Property in UnnecessaryCatchBlockRule
name - Property in UnnecessaryCollectCallRule
name - Property in UnnecessaryCollectionCallRule
name - Property in UnnecessaryConstructorRule
name - Property in UnnecessaryDefInFieldDeclarationRule
name - Property in UnnecessaryDefInMethodDeclarationRule
name - Property in UnnecessaryDefInVariableDeclarationRule
name - Property in UnnecessaryDotClassRule
name - Property in UnnecessaryDoubleInstantiationRule
name - Property in UnnecessaryElseStatementRule
name - Property in UnnecessaryFailRule
name - Property in UnnecessaryFinalOnPrivateMethodRule
name - Property in UnnecessaryFloatInstantiationRule
name - Property in UnnecessaryGetterRule
name - Property in UnnecessaryGroovyImportRule
name - Property in UnnecessaryGStringRule
name - Property in UnnecessaryIfStatementRule
name - Property in UnnecessaryInstanceOfCheckRule
name - Property in UnnecessaryInstantiationToGetClassRule
name - Property in UnnecessaryIntegerInstantiationRule
name - Property in UnnecessaryLongInstantiationRule
name - Property in UnnecessaryModOneRule
name - Property in UnnecessaryNullCheckBeforeInstanceOfRule
name - Property in UnnecessaryNullCheckRule
name - Property in UnnecessaryObjectReferencesRule
name - Property in UnnecessaryOverridingMethodRule
name - Property in UnnecessaryPackageReferenceRule
name - Property in UnnecessaryParenthesesForMethodCallWithClosureRule
name - Property in UnnecessaryPublicModifierRule
name - Property in UnnecessaryReturnKeywordRule
name - Property in UnnecessarySafeNavigationOperatorRule
name - Property in UnnecessarySelfAssignmentRule
name - Property in UnnecessarySemicolonRule
name - Property in UnnecessarySetterRule
name - Property in UnnecessaryStringInstantiationRule
name - Property in UnnecessaryTernaryExpressionRule
name - Property in UnnecessaryToStringRule
name - Property in UnnecessaryTransientModifierRule
name - Property in UnsafeArrayDeclarationRule
name - Property in UnsafeImplementationAsMapRule
name - Property in UnusedArrayRule
name - Property in UnusedImportRule
name - Property in UnusedMethodParameterRule
name - Property in UnusedObjectRule
name - Property in UnusedPrivateFieldRule
name - Property in UnusedPrivateMethodParameterRule
name - Property in UnusedPrivateMethodRule
name - Property in UnusedVariableRule
name - Property in UseAssertEqualsInsteadOfAssertTrueRule
name - Property in UseAssertFalseInsteadOfNegationRule
name - Property in UseAssertNullInsteadOfAssertEqualsRule
name - Property in UseAssertSameInsteadOfAssertTrueRule
name - Property in UseAssertTrueInsteadOfAssertEqualsRule
name - Property in UseAssertTrueInsteadOfNegationRule
name - Property in UseCollectManyRule
name - Property in UseCollectNestedRule
name - Property in UseOfNotifyMethodRule
name - Property in VariableNameRule
name - Property in VariableTypeRequiredRule
name - Property in VectorIsObsoleteRule
name - Property in VolatileArrayFieldRule
name - Property in VolatileLongOrDoubleFieldRule
name - Property in WaitOutsideOfWhileLoopRule
name - Property in WhileStatementBracesRule
NestedBlockDepthRule - Class in org.codenarc.rule.size
Rule that checks for blocks or closures nested more than a configured maximum number.
NestedBlockDepthRule() - Constructor in NestedBlockDepthRule
NestedForLoopRule - Class in org.codenarc.rule.design
Reports classes with nested for loops.
NestedForLoopRule() - Constructor in NestedForLoopRule
NestedSynchronizationRule - Class in org.codenarc.rule.concurrency
Rule to detect nested synchronization blocks.
NestedSynchronizationRule() - Constructor in NestedSynchronizationRule
NEW_LINE - Field in CommentsUtil
NoDefRule - Class in org.codenarc.rule.convention
Def keyword is overused and should be replaced with specific type.
NoDefRule() - Constructor in NoDefRule
nodeSourceLines(org.codenarc.source.SourceCode, org.codehaus.groovy.ast.ASTNode) - Method in SourceCodeUtil
NoDoubleRule - Class in org.codenarc.rule.convention
Checks for use of the double or Double types, in fields, variables, method parameters and method return types.
NoDoubleRule() - Constructor in NoDoubleRule
NoFloatRule - Class in org.codenarc.rule.convention
Checks for use of the float or Float types, in fields, variables, method parameters and method return types.
NoFloatRule() - Constructor in NoFloatRule
NoJavaUtilDateRule - Class in org.codenarc.rule.convention
Do not use java.util.Date.
NoJavaUtilDateRule() - Constructor in NoJavaUtilDateRule
NON_STATIC_IMPORT_PATTERN - Field in AbstractImportRule
NON_WHITESPACE_CHARS - Field in CommentsUtil
nonCpsAnnotationName - Property in JenkinsUtil
NonFinalPublicFieldRule - Class in org.codenarc.rule.security
Finds code that violates secure coding principles for mobile code by declaring a member variable public but not final.
NonFinalPublicFieldRule() - Constructor in NonFinalPublicFieldRule
NonFinalSubclassOfSensitiveInterfaceRule - Class in org.codenarc.rule.security
The permissions classes such as java.security.Permission and java.security.BasicPermission are designed to be extended.
NonFinalSubclassOfSensitiveInterfaceRule() - Constructor in NonFinalSubclassOfSensitiveInterfaceRule
NonSerializableFieldInSerializableClass - Class in org.codenarc.rule.serialization
All fields of a class that implements Serializable should also implement it
NonSerializableFieldInSerializableClass() - Constructor in NonSerializableFieldInSerializableClass
normalizePath(java.lang.String) - Method in AbstractSourceCode
Return the normalized value of the specified path.
normalizePath(java.lang.String) - Method in PathUtil
NoScriptBindingsRule - Class in org.codenarc.rule.concurrency
Script bindings can cause bad concurrency bugs and can usually be replaced with local variables.
NoScriptBindingsRule() - Constructor in NoScriptBindingsRule
NoTabCharacterRule - Class in org.codenarc.rule.convention
Checks that all source files do not contain the tab character
NoTabCharacterRule() - Constructor in NoTabCharacterRule
NoWildcardImportsRule - Class in org.codenarc.rule.imports
Checks for wildcard (star) imports.
NoWildcardImportsRule() - Constructor in NoWildcardImportsRule
NullReturnTracker - Class in org.codenarc.rule
Helper AST visitor that adds rule violation if a return statement is encountered that returns a null constant.
NullReturnTracker() - Constructor in NullReturnTracker
numArgs - Property in ExplicitCallToMethodAstVisitor
numViolationsRemoved - Field in BaselineResultsPlugin

O

ObjectFinalizeRule - Class in org.codenarc.rule.security
The finalize() method should only be called by the JVM after the object has been garbage collected.
ObjectFinalizeRule() - Constructor in ObjectFinalizeRule
ObjectOverrideMisspelledMethodNameRule - Class in org.codenarc.rule.naming
Rule that checks that the names of the most commonly overridden methods: equals, hashCode and toString, are correct.
ObjectOverrideMisspelledMethodNameRule() - Constructor in ObjectOverrideMisspelledMethodNameRule
ObjectOverrideOnlyNonCpsMethods - Class in org.codenarc.rule.jenkins
Overridden methods of the standard library (e.g. from java.lang.Object) are often called from there and therefore must not be CPS transformed in Jenkins
ObjectOverrideOnlyNonCpsMethods() - Constructor in ObjectOverrideOnlyNonCpsMethods
OPTIONAL_WHITESPACE - Field in CommentsUtil
OptionalCollectionReturnTypeRule - Class in org.codenarc.rule.design
Do not declare a method return type of Optional (or Collection, ArrayList, Set, Map, HashMap, etc.).
OptionalCollectionReturnTypeRule() - Constructor in OptionalCollectionReturnTypeRule
OptionalFieldRule - Class in org.codenarc.rule.design
Do not use an Optional as a field type.
OptionalFieldRule() - Constructor in OptionalFieldRule
OptionalMethodParameterRule - Class in org.codenarc.rule.design
Do not use an Optional as a parameter type for method or constructor.
OptionalMethodParameterRule() - Constructor in OptionalMethodParameterRule
options - Property in Report
outputFile - Property in AbstractReportWriter

P

packageNameForImport(org.codehaus.groovy.ast.ImportNode) - Method in ImportUtil
Return the package name for the specified import statement or else an empty String
PackageNameMatchesFilePathRule - Class in org.codenarc.rule.naming
A package source file's path should match the package declaration.
PackageNameMatchesFilePathRule() - Constructor in PackageNameMatchesFilePathRule
packageNameRequired - Property in PackageNameRule
PackageNameRule - Class in org.codenarc.rule.naming
Rule that verifies that the package name of a class matches a regular expression.
PackageNameRule() - Constructor in PackageNameRule
packageNames - Property in IllegalPackageReferenceRule
ParameterAssignmentInFilterClosureRule - Class in org.codenarc.rule.basic
An assignment operator was used on a parameter in a filtering closure.
ParameterAssignmentInFilterClosureRule() - Constructor in ParameterAssignmentInFilterClosureRule
ParameterCountRule - Class in org.codenarc.rule.size
Checks if the number of parameters in method/constructor exceeds the number of parameters specified by the maxParameters property.
ParameterCountRule() - Constructor in ParameterCountRule
ParameterNameRule - Class in org.codenarc.rule.naming
Rule that verifies that the name of each parameter matches a regular expression.
ParameterNameRule() - Constructor in ParameterNameRule
ParameterOrReturnTypeNotSerializableRule - Class in org.codenarc.rule.jenkins
Every parameter and return type has to implement the Serializable interface in Jenkins
ParameterOrReturnTypeNotSerializableRule() - Constructor in ParameterOrReturnTypeNotSerializableRule
ParameterReassignmentRule - Class in org.codenarc.rule.convention
Checks for a method or closure parameter being reassigned to a new value within the body of the method/closure, which is a confusing, questionable practice.
ParameterReassignmentRule() - Constructor in ParameterReassignmentRule
parameterTypes - Property in UnnecessaryInstantiationAstVisitor
parent - Property in NullReturnTracker
parse(java.lang.String) - Method in InlineViolationsParser
parseArgs(java.lang.String) - Method in CodeNarc
parseBaselineXmlReport(java.lang.String) - Method in BaselineXmlReportParser
parseModifiers(java.lang.String) - Method in ModifiersUtil
Parse a group of whitespace-delimited modifier names
parseModifiersList(java.lang.String) - Method in ModifiersUtil
Parse comma-separated list of modifier groups
parseRuleNames(java.lang.String, java.lang.String) - Method in LookupTable
path - Property in ClassPathResource
path - Property in FileViolations
path - Property in SourceString
path - Property in UrlResource
PathUtil - Class in org.codenarc.util
Path-related utility methods.
plugins - Field in CodeNarc
plugins - Field in CodeNarcRunner
plugins - Property in CodeNarcTask
The optional list of CodeNarcPlugin class names to register, separated by commas.
PLUGINS_PROPERTY - Field in CodeNarcRunner
PrintlnRule - Class in org.codenarc.rule.logging
Rule that checks for calls to this.print(), this.println() or this.printf().
PrintlnRule() - Constructor in PrintlnRule
printRuleProcessingTimes() - Method in AbstractSourceAnalyzer
PrintStackTraceRule - Class in org.codenarc.rule.logging
Rule that checks for calls to printStackTrace().
PrintStackTraceRule() - Constructor in PrintStackTraceRule
priority - Property in AbcMetricRule
priority - Property in AbstractClassNameRule
priority - Property in AbstractClassWithoutAbstractMethodRule
priority - Property in AbstractClassWithPublicConstructorRule
priority - Property in AbstractJavadocEmptyTagRule
priority - Property in AbstractJavadocMissingDescriptionRule
priority - Property in AddEmptyStringRule
priority - Property in AssertWithinFinallyBlockRule
priority - Property in AssignCollectionSortRule
priority - Property in AssignCollectionUniqueRule
priority - Property in AssignmentInConditionalRule
priority - Property in AssignmentToStaticFieldFromInstanceMethodRule
priority - Property in BigDecimalInstantiationRule
priority - Property in BitwiseOperatorInConditionalRule
priority - Property in BlankLineBeforePackageRule
priority - Property in BlockEndsWithBlankLineRule
priority - Property in BlockStartsWithBlankLineRule
priority - Property in BooleanGetBooleanRule
priority - Property in BooleanMethodReturnsNullRule
priority - Property in BracesForClassRule
priority - Property in BracesForForLoopRule
priority - Property in BracesForIfElseRule
priority - Property in BracesForMethodRule
priority - Property in BracesForTryCatchFinallyRule
priority - Property in BrokenNullCheckRule
priority - Property in BrokenOddnessCheckRule
priority - Property in BuilderMethodWithSideEffectsRule
priority - Property in BusyWaitRule
priority - Property in CatchArrayIndexOutOfBoundsExceptionRule
priority - Property in CatchErrorRule
priority - Property in CatchExceptionRule
priority - Property in CatchIllegalMonitorStateExceptionRule
priority - Property in CatchIndexOutOfBoundsExceptionRule
priority - Property in CatchNullPointerExceptionRule
priority - Property in CatchRuntimeExceptionRule
priority - Property in CatchThrowableRule
priority - Property in ChainedTestRule
priority - Property in ClassEndsWithBlankLineRule
priority - Property in ClassForNameRule
priority - Property in ClassJavadocRule
priority - Property in ClassNameRule
priority - Property in ClassNameSameAsFilenameRule
priority - Property in ClassNameSameAsSuperclassRule
priority - Property in ClassNotSerializableRule
priority - Property in ClassSizeRule
priority - Property in ClassStartsWithBlankLineRule
priority - Property in CloneableWithoutCloneRule
priority - Property in CloneWithoutCloneableRule
priority - Property in CloseWithoutCloseableRule
priority - Property in ClosureAsLastMethodParameterRule
priority - Property in ClosureInGStringRule
priority - Property in ClosureStatementOnOpeningLineOfMultipleLineClosureRule
priority - Property in CollectAllIsDeprecatedRule
priority - Property in CompareToWithoutComparableRule
priority - Property in ComparisonOfTwoConstantsRule
priority - Property in ComparisonWithSelfRule
priority - Property in CompileStaticRule
priority - Property in ConfusingClassNamedExceptionRule
priority - Property in ConfusingMethodNameRule
priority - Property in ConfusingMultipleReturnsRule
priority - Property in ConfusingTernaryRule
priority - Property in ConsecutiveBlankLinesRule
priority - Property in ConsecutiveLiteralAppendsRule
priority - Property in ConsecutiveStringConcatenationRule
priority - Property in ConstantAssertExpressionRule
priority - Property in ConstantIfExpressionRule
priority - Property in ConstantsOnlyInterfaceRule
priority - Property in ConstantTernaryExpressionRule
priority - Property in CouldBeElvisRule
priority - Property in CouldBeSwitchStatementRule
priority - Property in CoupledTestCaseRule
priority - Property in CpsCallFromNonCpsMethodRule
priority - Property in CrapMetricRule
priority - Property in CyclomaticComplexityRule
priority - Property in DeadCodeRule
priority - Property in DirectConnectionManagementRule
priority - Property in DoubleCheckedLockingRule
priority - Property in DoubleNegativeRule
priority - Property in DuplicateCaseStatementRule
priority - Property in DuplicateImportRule
priority - Property in DuplicateListLiteralRule
priority - Property in DuplicateMapKeyRule
priority - Property in DuplicateMapLiteralRule
priority - Property in DuplicateNumberLiteralRule
priority - Property in DuplicateSetValueRule
priority - Property in DuplicateStringLiteralRule
priority - Property in ElseBlockBracesRule
priority - Property in EmptyCatchBlockRule
priority - Property in EmptyClassRule
priority - Property in EmptyElseBlockRule
priority - Property in EmptyFinallyBlockRule
priority - Property in EmptyForStatementRule
priority - Property in EmptyIfStatementRule
priority - Property in EmptyInstanceInitializerRule
priority - Property in EmptyMethodInAbstractClassRule
priority - Property in EmptyMethodRule
priority - Property in EmptyStaticInitializerRule
priority - Property in EmptySwitchStatementRule
priority - Property in EmptySynchronizedStatementRule
priority - Property in EmptyTryBlockRule
priority - Property in EmptyWhileStatementRule
priority - Property in EnumCustomSerializationIgnoredRule
priority - Property in EqualsAndHashCodeRule
priority - Property in EqualsOverloadedRule
priority - Property in ExceptionExtendsErrorRule
priority - Property in ExceptionExtendsThrowableRule
priority - Property in ExceptionNotThrownRule
priority - Property in ExplicitArrayListInstantiationRule
priority - Property in ExplicitCallToAndMethodRule
priority - Property in ExplicitCallToCompareToMethodRule
priority - Property in ExplicitCallToDivMethodRule
priority - Property in ExplicitCallToEqualsMethodRule
priority - Property in ExplicitCallToGetAtMethodRule
priority - Property in ExplicitCallToLeftShiftMethodRule
priority - Property in ExplicitCallToMinusMethodRule
priority - Property in ExplicitCallToModMethodRule
priority - Property in ExplicitCallToMultiplyMethodRule
priority - Property in ExplicitCallToOrMethodRule
priority - Property in ExplicitCallToPlusMethodRule
priority - Property in ExplicitCallToPowerMethodRule
priority - Property in ExplicitCallToPutAtMethodRule
priority - Property in ExplicitCallToRightShiftMethodRule
priority - Property in ExplicitCallToXorMethodRule
priority - Property in ExplicitGarbageCollectionRule
priority - Property in ExplicitHashMapInstantiationRule
priority - Property in ExplicitHashSetInstantiationRule
priority - Property in ExplicitLinkedHashMapInstantiationRule
priority - Property in ExplicitLinkedListInstantiationRule
priority - Property in ExplicitStackInstantiationRule
priority - Property in ExplicitTreeSetInstantiationRule
priority - Property in ExpressionInCpsMethodNotSerializableRule
priority - Property in FactoryMethodNameRule
priority - Property in FieldNameRule
priority - Property in FieldTypeRequiredRule
priority - Property in FileCreateTempFileRule
priority - Property in FileEndsWithoutNewlineRule
priority - Property in FinalClassWithProtectedMemberRule
priority - Property in ForbiddenCallInCpsMethodRule
priority - Property in ForLoopShouldBeWhileLoopRule
priority - Property in ForStatementBracesRule
priority - Property in GetterMethodCouldBePropertyRule
priority - Property in GrailsDomainGormMethodsRule
priority - Property in GrailsDomainHasEqualsRule
priority - Property in GrailsDomainHasToStringRule
priority - Property in GrailsDomainReservedSqlKeywordNameRule
priority - Property in GrailsDomainStringPropertyMaxSizeRule
priority - Property in GrailsDomainWithServiceReferenceRule
priority - Property in GrailsDuplicateConstraintRule
priority - Property in GrailsDuplicateMappingRule
priority - Property in GrailsMassAssignmentRule
priority - Property in GrailsPublicControllerMethodRule
priority - Property in GrailsServletContextReferenceRule
priority - Property in GrailsStatelessServiceRule
priority - Property in GroovyLangImmutableRule
priority - Property in GStringAsMapKeyRule
priority - Property in GStringExpressionWithinStringRule
priority - Property in HardCodedWindowsFileSeparatorRule
priority - Property in HardCodedWindowsRootDirectoryRule
priority - Property in HashtableIsObsoleteRule
priority - Property in IfStatementBracesRule
priority - Property in IfStatementCouldBeTernaryRule
priority - Property in IllegalClassMemberRule
priority - Property in IllegalClassReferenceRule
priority - Property in IllegalPackageReferenceRule
priority - Property in IllegalRegexRule
priority - Property in IllegalStringRule
priority - Property in IllegalSubclassRule
priority - Property in ImplementationAsTypeRule
priority - Property in ImplicitClosureParameterRule
priority - Property in ImplicitReturnStatementRule
priority - Property in ImportFromSamePackageRule
priority - Property in ImportFromSunPackagesRule
priority - Property in InconsistentPropertyLockingRule
priority - Property in InconsistentPropertySynchronizationRule
priority - Property in IndentationRule
priority - Property in InsecureRandomRule
priority - Property in InstanceofRule
priority - Property in IntegerGetIntegerRule
priority - Property in InterfaceNameRule
priority - Property in InterfaceNameSameAsSuperInterfaceRule
priority - Property in InvertedConditionRule
priority - Property in InvertedIfElseRule
priority - Property in JavadocConsecutiveEmptyLinesRule
priority - Property in JavadocEmptyFirstLineRule
priority - Property in JavadocEmptyLastLineRule
priority - Property in JavaIoPackageAccessRule
priority - Property in JdbcConnectionReferenceRule
priority - Property in JdbcResultSetReferenceRule
priority - Property in JdbcStatementReferenceRule
priority - Property in JUnitAssertAlwaysFailsRule
priority - Property in JUnitAssertAlwaysSucceedsRule
priority - Property in JUnitAssertEqualsConstantActualValueRule
priority - Property in JUnitFailWithoutMessageRule
priority - Property in JUnitLostTestRule
priority - Property in JUnitPublicFieldRule
priority - Property in JUnitPublicNonTestMethodRule
priority - Property in JUnitPublicPropertyRule
priority - Property in JUnitSetUpCallsSuperRule
priority - Property in JUnitStyleAssertionsRule
priority - Property in JUnitTearDownCallsSuperRule
priority - Property in JUnitTestMethodWithoutAssertRule
priority - Property in JUnitUnnecessarySetUpRule
priority - Property in JUnitUnnecessaryTearDownRule
priority - Property in JUnitUnnecessaryThrowsExceptionRule
priority - Property in LineLengthRule
priority - Property in LocaleSetDefaultRule
priority - Property in LoggerForDifferentClassRule
priority - Property in LoggerWithWrongModifiersRule
priority - Property in LoggingSwallowsStacktraceRule
priority - Property in LongLiteralWithLowerCaseLRule
priority - Property in MethodCountRule
priority - Property in MethodNameRule
priority - Property in MethodParameterTypeRequired
priority - Property in MethodReturnTypeRequiredRule
priority - Property in MethodSizeRule
priority - Property in MisorderedStaticImportsRule
priority - Property in MissingBlankLineAfterImportsRule
priority - Property in MissingBlankLineAfterPackageRule
priority - Property in MissingBlankLineBeforeAnnotatedFieldRule
priority - Property in MissingNewInThrowStatementRule
priority - Property in MissingOverrideAnnotationRule
priority - Property in MultipleLoggersRule
priority - Property in MultipleUnaryOperatorsRule
priority - Property in NestedBlockDepthRule
priority - Property in NestedForLoopRule
priority - Property in NestedSynchronizationRule
priority - Property in NoDefRule
priority - Property in NoDoubleRule
priority - Property in NoFloatRule
priority - Property in NoJavaUtilDateRule
priority - Property in NonFinalPublicFieldRule
priority - Property in NonFinalSubclassOfSensitiveInterfaceRule
priority - Property in NonSerializableFieldInSerializableClass
priority - Property in NoScriptBindingsRule
priority - Property in NoTabCharacterRule
priority - Property in NoWildcardImportsRule
priority - Property in ObjectFinalizeRule
priority - Property in ObjectOverrideMisspelledMethodNameRule
priority - Property in ObjectOverrideOnlyNonCpsMethods
priority - Property in OptionalCollectionReturnTypeRule
priority - Property in OptionalFieldRule
priority - Property in OptionalMethodParameterRule
priority - Property in PackageNameMatchesFilePathRule
priority - Property in PackageNameRule
priority - Property in ParameterAssignmentInFilterClosureRule
priority - Property in ParameterCountRule
priority - Property in ParameterNameRule
priority - Property in ParameterOrReturnTypeNotSerializableRule
priority - Property in ParameterReassignmentRule
priority - Property in PrintlnRule
priority - Property in PrintStackTraceRule
priority - Property in PrivateFieldCouldBeFinalRule
priority - Property in PropertyNameRule
priority - Property in PublicFinalizeMethodRule
priority - Property in PublicInstanceFieldRule
priority - Property in PublicMethodsBeforeNonPublicMethodsRule
priority - Property in RandomDoubleCoercedToZeroRule
priority - Property in RemoveAllOnSelfRule
priority - Property in RequiredRegexRule
priority - Property in RequiredStringRule
priority - Property in ReturnFromFinallyBlockRule
priority - Property in ReturnNullFromCatchBlockRule
priority - Property in ReturnsNullInsteadOfEmptyArrayRule
priority - Property in ReturnsNullInsteadOfEmptyCollectionRule
priority - Property in SerializableClassMustDefineSerialVersionUIDRule
priority - Property in SerialPersistentFieldsRule
priority - Property in SerialVersionUIDRule
priority - Property in SimpleDateFormatMissingLocaleRule
priority - Property in SpaceAfterCatchRule
priority - Property in SpaceAfterClosingBraceRule
priority - Property in SpaceAfterCommaRule
priority - Property in SpaceAfterCommentDelimiterRule
priority - Property in SpaceAfterForRule
priority - Property in SpaceAfterIfRule
priority - Property in SpaceAfterMethodCallNameRule
priority - Property in SpaceAfterMethodDeclarationNameRule
priority - Property in SpaceAfterNotOperatorRule
priority - Property in SpaceAfterOpeningBraceRule
priority - Property in SpaceAfterSemicolonRule
priority - Property in SpaceAfterSwitchRule
priority - Property in SpaceAfterWhileRule
priority - Property in SpaceAroundClosureArrowRule
priority - Property in SpaceAroundMapEntryColonRule
priority - Property in SpaceAroundOperatorRule
priority - Property in SpaceBeforeClosingBraceRule
priority - Property in SpaceBeforeCommentDelimiterRule
priority - Property in SpaceBeforeOpeningBraceRule
priority - Property in SpaceInsideParenthesesRule
priority - Property in SpockIgnoreRestUsedRule
priority - Property in SpockMissingAssertRule
priority - Property in StatelessClassRule
priority - Property in StatelessSingletonRule
priority - Property in StaticCalendarFieldRule
priority - Property in StaticConnectionRule
priority - Property in StaticDateFormatFieldRule
priority - Property in StaticFieldsBeforeInstanceFieldsRule
priority - Property in StaticMatcherFieldRule
priority - Property in StaticMethodsBeforeInstanceMethodsRule
priority - Property in StaticSimpleDateFormatFieldRule
priority - Property in StubRule
priority - Property in SwallowThreadDeathRule
priority - Property in SynchronizedMethodRule
priority - Property in SynchronizedOnBoxedPrimitiveRule
priority - Property in SynchronizedOnGetClassRule
priority - Property in SynchronizedOnReentrantLockRule
priority - Property in SynchronizedOnStringRule
priority - Property in SynchronizedOnThisRule
priority - Property in SynchronizedReadObjectMethodRule
priority - Property in SystemErrPrintRule
priority - Property in SystemExitRule
priority - Property in SystemOutPrintRule
priority - Property in SystemRunFinalizersOnExitRule
priority - Property in TernaryCouldBeElvisRule
priority - Property in ThisReferenceEscapesConstructorRule
priority - Property in ThreadGroupRule
priority - Property in ThreadLocalNotStaticFinalRule
priority - Property in ThreadYieldRule
priority - Property in ThrowErrorRule
priority - Property in ThrowExceptionFromFinallyBlockRule
priority - Property in ThrowExceptionRule
priority - Property in ThrowNullPointerExceptionRule
priority - Property in ThrowRuntimeExceptionRule
priority - Property in ThrowThrowableRule
priority - Property in ToStringReturnsNullRule
priority - Property in TrailingCommaRule
priority - Property in TrailingWhitespaceRule
priority - Property in UnnecessaryBigDecimalInstantiationRule
priority - Property in UnnecessaryBigIntegerInstantiationRule
priority - Property in UnnecessaryBooleanExpressionRule
priority - Property in UnnecessaryBooleanInstantiationRule
priority - Property in UnnecessaryCallForLastElementRule
priority - Property in UnnecessaryCallToSubstringRule
priority - Property in UnnecessaryCastRule
priority - Property in UnnecessaryCatchBlockRule
priority - Property in UnnecessaryCollectCallRule
priority - Property in UnnecessaryCollectionCallRule
priority - Property in UnnecessaryConstructorRule
priority - Property in UnnecessaryDefInFieldDeclarationRule
priority - Property in UnnecessaryDefInMethodDeclarationRule
priority - Property in UnnecessaryDefInVariableDeclarationRule
priority - Property in UnnecessaryDotClassRule
priority - Property in UnnecessaryDoubleInstantiationRule
priority - Property in UnnecessaryElseStatementRule
priority - Property in UnnecessaryFailRule
priority - Property in UnnecessaryFinalOnPrivateMethodRule
priority - Property in UnnecessaryFloatInstantiationRule
priority - Property in UnnecessaryGetterRule
priority - Property in UnnecessaryGroovyImportRule
priority - Property in UnnecessaryGStringRule
priority - Property in UnnecessaryIfStatementRule
priority - Property in UnnecessaryInstanceOfCheckRule
priority - Property in UnnecessaryInstantiationToGetClassRule
priority - Property in UnnecessaryIntegerInstantiationRule
priority - Property in UnnecessaryLongInstantiationRule
priority - Property in UnnecessaryModOneRule
priority - Property in UnnecessaryNullCheckBeforeInstanceOfRule
priority - Property in UnnecessaryNullCheckRule
priority - Property in UnnecessaryObjectReferencesRule
priority - Property in UnnecessaryOverridingMethodRule
priority - Property in UnnecessaryPackageReferenceRule
priority - Property in UnnecessaryParenthesesForMethodCallWithClosureRule
priority - Property in UnnecessaryPublicModifierRule
priority - Property in UnnecessaryReturnKeywordRule
priority - Property in UnnecessarySafeNavigationOperatorRule
priority - Property in UnnecessarySelfAssignmentRule
priority - Property in UnnecessarySemicolonRule
priority - Property in UnnecessarySetterRule
priority - Property in UnnecessaryStringInstantiationRule
priority - Property in UnnecessaryTernaryExpressionRule
priority - Property in UnnecessaryToStringRule
priority - Property in UnnecessaryTransientModifierRule
priority - Property in UnsafeArrayDeclarationRule
priority - Property in UnsafeImplementationAsMapRule
priority - Property in UnusedArrayRule
priority - Property in UnusedImportRule
priority - Property in UnusedMethodParameterRule
priority - Property in UnusedObjectRule
priority - Property in UnusedPrivateFieldRule
priority - Property in UnusedPrivateMethodParameterRule
priority - Property in UnusedPrivateMethodRule
priority - Property in UnusedVariableRule
priority - Property in UseAssertEqualsInsteadOfAssertTrueRule
priority - Property in UseAssertFalseInsteadOfNegationRule
priority - Property in UseAssertNullInsteadOfAssertEqualsRule
priority - Property in UseAssertSameInsteadOfAssertTrueRule
priority - Property in UseAssertTrueInsteadOfAssertEqualsRule
priority - Property in UseAssertTrueInsteadOfNegationRule
priority - Property in UseCollectManyRule
priority - Property in UseCollectNestedRule
priority - Property in UseOfNotifyMethodRule
priority - Property in VariableNameRule
priority - Property in VariableTypeRequiredRule
priority - Property in VectorIsObsoleteRule
priority - Property in VolatileArrayFieldRule
priority - Property in VolatileLongOrDoubleFieldRule
priority - Property in WaitOutsideOfWhileLoopRule
priority - Property in WhileStatementBracesRule
PrivateFieldCouldBeFinalRule - Class in org.codenarc.rule.design
Rule that checks for private fields that are only set within a constructor or field initializer.
PrivateFieldCouldBeFinalRule() - Constructor in PrivateFieldCouldBeFinalRule
privateStaticFinalRegex - Property in FieldNameRule
processLine(java.lang.String) - Method in MultilineCommentChecker
Processes a line of code sets the inMultilineComment state based on the status of the current line.
processReports(List<ReportWriter>) - Method in AbstractCodeNarcPlugin
processReports(List<ReportWriter>) - Method in BaselineResultsPlugin
processReports(List<ReportWriter>) - Method in CodeNarcPlugin
Process the list of ReportWriter.
processRules(List<Rule>) - Method in AbstractCodeNarcPlugin
processRules(List<Rule>) - Method in CodeNarcPlugin
Process the list of Rules.
processViolationsForFile(org.codenarc.plugin.FileViolations) - Method in AbstractCodeNarcPlugin
processViolationsForFile(org.codenarc.plugin.FileViolations) - Method in BaselineResultsPlugin
processViolationsForFile(org.codenarc.plugin.FileViolations) - Method in CodeNarcPlugin
Process the violations for a single file.
processViolationsForFile(org.codenarc.plugin.FileViolations) - Method in DisableRulesInCommentsPlugin
Remove any violations for rules disabled by comments within the source code.
PROPERTIES_FILE - Field in GenerateCodeNarcRulesProperties
PROPERTIES_FILE - Field in PropertiesFileRuleRegistry
propertiesFile - Field in GenerateCodeNarcRulesProperties
propertiesFilename - Field in CodeNarc
propertiesFilename - Property in CodeNarcRunner
PropertiesFileRuleRegistry - Class in org.codenarc.ruleregistry
Implementation of RuleRegistry that loads the rules from the 'codenarc-base-rules.properties' properties file.
PropertiesFileRuleRegistry() - Constructor in PropertiesFileRuleRegistry
PropertiesFileRuleSetConfigurer - Class in org.codenarc.ruleset
Reads the properties file named "codenarc.properties", if found on the classpath, and applies the property values to matching Rules within a specified RuleSet.
PropertiesFileRuleSetConfigurer() - Constructor in PropertiesFileRuleSetConfigurer
PropertyNameRule - Class in org.codenarc.rule.naming
Rule that verifies that the name of each property matches a regular expression.
PropertyNameRule() - Constructor in PropertyNameRule
PropertyUtil - Class in org.codenarc.util
Contains property-related static utility methods
PublicFinalizeMethodRule - Class in org.codenarc.rule.security
Creates a violation when the program violates secure coding principles by declaring a finalize() method public.
PublicFinalizeMethodRule() - Constructor in PublicFinalizeMethodRule
PublicInstanceFieldRule - Class in org.codenarc.rule.design
Using public fields is considered to be a bad design.
PublicInstanceFieldRule() - Constructor in PublicInstanceFieldRule
PublicMethodsBeforeNonPublicMethodsRule - Class in org.codenarc.rule.convention
Enforce that all public methods are above protected and private methods.
PublicMethodsBeforeNonPublicMethodsRule() - Constructor in PublicMethodsBeforeNonPublicMethodsRule

Q

R

RandomDoubleCoercedToZeroRule - Class in org.codenarc.rule.basic
The Math.random() method returns a double result greater than or equal to 0.0 and less than 1.0.
RandomDoubleCoercedToZeroRule() - Constructor in RandomDoubleCoercedToZeroRule
RECORD_METHOD_NAME - Field in ValueRecorder
record(java.lang.Object, int) - Method in ValueRecorder
ReferenceCollector - Class in org.codenarc.rule.unused
Class visitor that collects the names of all method call and variable references
ReferenceCollector() - Constructor in ReferenceCollector
references - Property in ReferenceCollector
regex - Property in AbstractClassNameRule
regex - Property in ClassNameRule
regex - Property in FactoryMethodNameRule
regex - Property in FieldNameRule
regex - Property in IllegalRegexRule
regex - Property in InterfaceNameRule
regex - Property in MethodNameRule
regex - Property in PackageNameRule
regex - Property in ParameterNameRule
regex - Property in PropertyNameRule
regex - Property in RequiredRegexRule
regex - Property in VariableNameRule
registerPlugin(org.codenarc.plugin.CodeNarcPlugin) - Method in CodeNarcRunner
registerPluginsForClassNames(java.lang.String) - Method in CodeNarcRunner
RELUCTANT - Field in CommentsUtil
RemoveAllOnSelfRule - Class in org.codenarc.rule.basic
This rule catches calling the method removeAll with yourself as a parameter.
RemoveAllOnSelfRule() - Constructor in RemoveAllOnSelfRule
removeIllegalCharacters(java.lang.String) - Method in XmlReportUtil
removeInlineViolations(java.lang.String) - Method in AbstractRuleTestCase
Removes all inline violations from a source.
removeLeadingSlash(java.lang.String) - Method in PathUtil
removePathPrefix(java.lang.String, java.lang.String) - Method in PathUtil
removeViolation(org.codenarc.rule.Violation) - Method in DirectoryResults
removeViolation(org.codenarc.rule.Violation) - Method in FileResults
removeViolation(org.codenarc.rule.Violation) - Method in Results
Remove the specified violation
removeViolation(org.codenarc.rule.Violation) - Method in VirtualResults
replaceNonPrintableCharacters(java.lang.String) - Method in AbstractSpaceAroundBraceAstVisitor
Report - Class in org.codenarc.ant
JavaBean class holding the properties for a element with the CodeNarc Ant Task.
Report() - Constructor in Report
ReportOption - Class in org.codenarc.ant
JavaBean class holding the properties for a
ReportOption() - Constructor in ReportOption
reports - Field in CodeNarc
ReportWriter - Interface in org.codenarc.report
Represents the interface of an object that can write out a report
ReportWriterFactory - Class in org.codenarc.report
Factory for ReportWriter objects based on the report type (name).
ReportWriterFactory() - Constructor in ReportWriterFactory
reportWriters - Property in CodeNarcRunner
reportWriters - Field in CodeNarcTask
RequiredRegexRule - Class in org.codenarc.rule.generic
Checks for a specified regular expression that must exist within the source code.
RequiredRegexRule() - Constructor in RequiredRegexRule
RequiredStringRule - Class in org.codenarc.rule.generic
Checks for a specified String that must exist within the source code.
RequiredStringRule() - Constructor in RequiredStringRule
Resource - Interface in org.codenarc.util.io
Defines the interface for objects that represent a resource (e.g. a file) and provide access to its InputStream.
resource - Property in BaselineResultsPlugin
resourceBundle - Field in AbstractReportWriter
ResourceFactory - Interface in org.codenarc.util.io
Defines the interface for factory objects that create/return Resource instances.
respondsTo(java.lang.Object, java.lang.String) - Method in AstUtil
Return true only if the specified object responds to the named method
result - Property in InlineViolationsParser
Results - Interface in org.codenarc.results
Represents the results of applying rules to one or more source files/directories
ReturnFromFinallyBlockRule - Class in org.codenarc.rule.basic
Rule that checks for a return from within a finally block
ReturnFromFinallyBlockRule() - Constructor in ReturnFromFinallyBlockRule
ReturnNullFromCatchBlockRule - Class in org.codenarc.rule.exceptions
Returning null from a catch block often masks errors and requires the client to handle error codes.
ReturnNullFromCatchBlockRule() - Constructor in ReturnNullFromCatchBlockRule
ReturnsNullInsteadOfEmptyArrayRule - Class in org.codenarc.rule.design
This rule detects when null is returned from a method that might return an array.
ReturnsNullInsteadOfEmptyArrayRule() - Constructor in ReturnsNullInsteadOfEmptyArrayRule
ReturnsNullInsteadOfEmptyCollectionRule - Class in org.codenarc.rule.design
This rule detects when null is returned from a method or Closure that might return a collection.
ReturnsNullInsteadOfEmptyCollectionRule() - Constructor in ReturnsNullInsteadOfEmptyCollectionRule
Rule - Interface in org.codenarc.rule
Represents a source code analysis rule .
rule - Field in AbstractRuleTestCase
RULE_INDEX_BY_CATEGORY_FILE - Field in GenerateRuleIndexPages
RULE_INDEX_BY_NAME_FILE - Field in GenerateRuleIndexPages
rule - Property in Violation
ruleIndexByCategoryFile - Field in GenerateRuleIndexPages
ruleIndexByNameFile - Field in GenerateRuleIndexPages
ruleName - Property in BaselineViolation
ruleProcessingTimes - Field in AbstractSourceAnalyzer
RuleRegistry - Interface in org.codenarc.ruleregistry
Represents a registry of rule classes, accessible by rule name
ruleRegistry - Property in RuleRegistryHolder
RuleRegistryHolder - Class in org.codenarc.ruleregistry
Holds a reference to the RuleRegistry static singleton
RuleRegistryHolder() - Constructor in RuleRegistryHolder
RuleRegistryInitializer - Class in org.codenarc.ruleregistry
Performs initialization (loading) of the RuleRegistry singleton held by RuleRegistryHolder
RuleRegistryInitializer() - Constructor in RuleRegistryInitializer
RuleSet - Interface in org.codenarc.ruleset
Represents a set of (configured) Rule objects that can be applied for static analysis.
ruleSet - Property in AnalysisContext
The RuleSet containing the rules being applied.
ruleset - Field in CodeNarc
ruleSet - Field in CodeNarcTask
RULESET_FILE - Field in GenerateRuleSetAllRules
RULESET_FILE - Field in GenerateRuleSetAllRulesByCategory
ruleset(groovy.lang.Closure) - Method in RuleSetBuilder
RuleSetBuilder - Class in org.codenarc.ruleset
A Builder for RuleSets.
RuleSetBuilder() - Constructor in RuleSetBuilder
RuleSetConfigurer - Interface in org.codenarc.ruleset
Represents a configurer for a ruleset
ruleSetConfigurer - Field in CodeNarcRunner
ruleSetFile - Field in GenerateRuleSetAllRules
ruleSetFile - Field in GenerateRuleSetAllRulesByCategory
ruleSetFiles - Field in CodeNarc
ruleSetFiles - Property in CodeNarcRunner
ruleSetFiles - Property in CodeNarcTask
The path to the Groovy or XML RuleSet definition files, relative to the classpath.
RuleSets - Class in org.codenarc.ruleset
Holds list of all RuleSet files.
RuleSets() - Constructor in RuleSets
ruleSetString - Property in CodeNarcRunner
RuleSetUtil - Class in org.codenarc.ruleset
A private utility class for the RuleSet classes.
run() - Method in AntFileSetSourceAnalyzer

S

sameLine - Property in BracesForClassRule
sameLine - Property in BracesForForLoopRule
sameLine - Property in BracesForIfElseRule
sameLine - Property in BracesForMethodRule
sameLine - Property in BracesForTryCatchFinallyRule
SEPARATOR_PROP - Property in AbstractSourceCode
SerializableClassMustDefineSerialVersionUIDRule - Class in org.codenarc.rule.serialization
Classes that implement Serializable should define a serialVersionUID.
SerializableClassMustDefineSerialVersionUIDRule() - Constructor in SerializableClassMustDefineSerialVersionUIDRule
SerializationUtil - Class in org.codenarc.rule.serialization
Authors:
Daniel Zänker
SerializationUtil() - Constructor in SerializationUtil
SerialPersistentFieldsRule - Class in org.codenarc.rule.serialization
To use a Serializable object's serialPersistentFields correctly, it must be declared private, static, and final.
SerialPersistentFieldsRule() - Constructor in SerialPersistentFieldsRule
SerialVersionUIDRule - Class in org.codenarc.rule.serialization
Rule that checks that serialVersionUID field is static final and type long, and is not a property.
SerialVersionUIDRule() - Constructor in SerialVersionUIDRule
SERVICE_CLASSES - Field in GrailsUtil
SERVICE_FILES - Field in GrailsUtil
setAddToIgnoreFieldNames(java.lang.String) - Method in StatelessClassRule
Add more field names to the existing ignoreFieldNames property value.
setAllowedFieldModifiers(java.lang.String) - Method in IllegalClassMemberRule
setAllowedMethodModifiers(java.lang.String) - Method in IllegalClassMemberRule
setAllowedPropertyModifiers(java.lang.String) - Method in IllegalClassMemberRule
setApplyToClassNames(java.lang.String) - Method in AbstractAstVisitorRule
setApplyToFileNames(java.lang.String) - Method in AbstractRule
setApplyToFilesMatching(java.lang.String) - Method in AbstractRule
setClasspathRef(org.apache.tools.ant.types.Reference) - Method in CodeNarcTask
Adds a reference to a classpath defined elsewhere to be used when compiling analysed classes.
setDefaultsIfNecessary() - Method in CodeNarc
setDescription(java.lang.String) - Method in AbstractRule
setDoNotApplyToClassNames(java.lang.String) - Method in AbstractAstVisitorRule
setDoNotApplyToFileNames(java.lang.String) - Method in AbstractRule
setDoNotApplyToFilesMatching(java.lang.String) - Method in AbstractRule
setEnabled(boolean) - Method in AbstractRule
setEnhancedMode(boolean) - Method in AbstractEnhanceableAstVisitorRule
setExcludeRegex(java.lang.String) - Method in NoDefRule
setGormStaticMethodsNames(java.lang.String) - Method in GrailsDomainGormMethodsRule
setIgnoreMethodsWithAnnotations(java.lang.String) - Method in JUnitPublicNonTestMethodRule
setIllegalFieldModifiers(java.lang.String) - Method in IllegalClassMemberRule
setIllegalMethodModifiers(java.lang.String) - Method in IllegalClassMemberRule
setIllegalPropertyModifiers(java.lang.String) - Method in IllegalClassMemberRule
setMaxParameters(int) - Method in ParameterCountRule
setName(java.lang.String) - Method in AbstractRule
Set the unique name for this rule
setPath(java.lang.String) - Method in SourceString
setPriority(int) - Method in AbstractRule
Set the priority for this rule
setPropertyFromString(java.lang.Object, java.lang.String, java.lang.String) - Method in PropertyUtil
Set the value of the named property on the specified Object from a String value.
setRule(org.codenarc.rule.Rule) - Method in AbstractAstVisitor
setRule(org.codenarc.rule.Rule) - Method in AbstractFieldVisitor
Set the Rule associated with this visitor
setRule(org.codenarc.rule.Rule) - Method in AbstractMethodCallExpressionVisitor
Set the Rule associated with this visitor
setRule(org.codenarc.rule.Rule) - Method in AbstractMethodVisitor
Set the Rule associated with this visitor
setRule(org.codenarc.rule.Rule) - Method in AstVisitor
Set the Rule associated with this visitor
setSourceCode(org.codenarc.source.SourceCode) - Method in AbstractAstVisitor
setSourceCode(org.codenarc.source.SourceCode) - Method in AbstractFieldVisitor
Set the SourceCode associated with this visitor
setSourceCode(org.codenarc.source.SourceCode) - Method in AbstractMethodCallExpressionVisitor
Set the SourceCode associated with this visitor
setSourceCode(org.codenarc.source.SourceCode) - Method in AbstractMethodVisitor
Set the SourceCode associated with this visitor
setSourceCode(org.codenarc.source.SourceCode) - Method in AstVisitor
Set the SourceCode associated with this visitor
setSuppressionAnalyzer(org.codenarc.analyzer.SuppressionAnalyzer) - Method in AbstractSourceCode
Setter exists to avoid circular dependency.
setUpAbstractRuleTestCase() - Method in AbstractRuleTestCase
setUpAbstractTestCase(org.junit.jupiter.api.TestInfo) - Method in AbstractTestCase
setViolationMessage(java.lang.String) - Method in AbstractRule
setVisited(Set<Object>) - Method in AbstractAstVisitor
shouldApplyThisRuleTo(org.codehaus.groovy.ast.ClassNode) - Method in AbstractAstVisitorRule
Return true if this rule should be applied for the specified ClassNode, based on the configuration of this rule.
shouldApplyThisRuleTo(org.codehaus.groovy.ast.ClassNode) - Method in UnusedPrivateFieldRule
shouldIgnoreField(org.codehaus.groovy.ast.FieldNode) - Method in GrailsStatelessServiceRule
shouldIgnoreField(org.codehaus.groovy.ast.FieldNode) - Method in StatelessClassRule
Subclasses can optionally override to provide more specific filtering of fields
shouldIgnoreViolationForMethodCall(org.codehaus.groovy.ast.expr.MethodCallExpression) - Method in ExplicitCallToMethodAstVisitor
shouldSkipViolation(java.lang.Object) - Method in UnnecessaryInstantiationAstVisitor
shouldVisit(org.codehaus.groovy.ast.ClassNode) - Method in AbstractTypeNameAstVisitor
Returns:
true only if this visitor should be applied to (visit) the specified ClassNode.
shouldVisitMethod(org.codehaus.groovy.ast.MethodNode) - Method in AbstractAstVisitor
SimpleDateFormatMissingLocaleRule - Class in org.codenarc.rule.design
Be sure to specify a Locale when creating a new instance of SimpleDateFormat; the class is locale-sensitive.
SimpleDateFormatMissingLocaleRule() - Constructor in SimpleDateFormatMissingLocaleRule
SortableHtmlReportWriter - Class in org.codenarc.report
ReportWriter that generates an HTML report that can be dynamically sorted in multiple ways.
SortableHtmlReportWriter() - Constructor in SortableHtmlReportWriter
sortRules(java.util.List) - Method in GenerateUtil
source - Property in InlineViolationsParser.ParseResult
SOURCE_LINE_LAST_SEGMENT_LENGTH - Field in AbstractHtmlReportWriter
source - Property in StringSourceAnalyzer
SourceAnalyzer - Interface in org.codenarc.analyzer
The interface for objects that can analyze the source files within one or more directory trees using a specified RuleSet and produce report results.
sourceAnalyzer - Property in CodeNarcRunner
SourceCode - Interface in org.codenarc.source
Represents a unit of source code to be analyzed
SourceCodeCriteria - Class in org.codenarc.source
Represents the set of criteria used to filter source code (files).
SourceCodeCriteria() - Constructor in SourceCodeCriteria
sourceCodeName - Field in AbstractRuleTestCase
sourceCodeNameWithoutExtension(org.codenarc.source.SourceCode) - Method in ClassJavadocRule
sourceCodePath - Field in AbstractRuleTestCase
SourceCodeUtil - Class in org.codenarc.util
Contains source related static utility methods
SourceCodeUtil() - Constructor in SourceCodeUtil
sourceDirectories - Property in AnalysisContext
The List of source directories being analyzed.
SourceFile - Class in org.codenarc.source
The SourceCode implementation for a single file.
SourceFile(java.io.File) - Constructor in SourceFile
Construct a new instance for the file at the specified path
sourceFiles - Field in CodeNarc
sourceFiles - Property in FilesSourceAnalyzer
List of groovy files that will be analyzed.
sourceLine(org.codehaus.groovy.ast.ASTNode) - Method in AbstractAstVisitor
Return the raw source line corresponding to the specified AST node
sourceLine - Property in Violation
sourceLineAndNumberForImport(org.codenarc.source.SourceCode, org.codehaus.groovy.ast.ImportNode) - Method in ImportUtil
Return the source line and line number for the specified import
sourceLineAndNumberForNonStarImport(org.codenarc.source.SourceCode, org.codehaus.groovy.ast.ImportNode) - Method in ImportUtil
sourceLineAndNumberForStarImport(org.codenarc.source.SourceCode, org.codehaus.groovy.ast.ImportNode) - Method in ImportUtil
Return the source line and line number for the specified import class name and alias
sourceLineOrEmpty(org.codehaus.groovy.ast.ASTNode) - Method in AbstractSpaceAroundBraceAstVisitor
sourceLinesBetween(org.codenarc.source.SourceCode, int, int, int, int) - Method in SourceCodeUtil
Retrieves source lines between the start line and column and end line and column.
sourceLinesBetweenNodes(org.codenarc.source.SourceCode, org.codehaus.groovy.ast.ASTNode, org.codehaus.groovy.ast.ASTNode) - Method in SourceCodeUtil
sourceLineTrimmed(org.codehaus.groovy.ast.ASTNode) - Method in AbstractAstVisitor
Return the trimmed source line corresponding to the specified AST node
SourceString - Class in org.codenarc.source
SourceCode implementation that uses source from a pre-defined String.
SourceString(java.lang.String, java.lang.String, java.lang.String) - Constructor in SourceString
Construct a new instance for the file at the specified path
sourceText - Property in FileViolations
SpaceAfterCatchRule - Class in org.codenarc.rule.formatting
Check that there is exactly one space (blank) after the catch keyword and before the opening parenthesis.
SpaceAfterCatchRule() - Constructor in SpaceAfterCatchRule
SpaceAfterClosingBraceRule - Class in org.codenarc.rule.formatting
Check that there is at least one space (blank) or whitespace after each closing brace ("}").
SpaceAfterClosingBraceRule() - Constructor in SpaceAfterClosingBraceRule
SpaceAfterCommaRule - Class in org.codenarc.rule.formatting
Check that there is at least one space (blank) or whitespace following each comma.
SpaceAfterCommaRule() - Constructor in SpaceAfterCommaRule
SpaceAfterCommentDelimiterRule - Class in org.codenarc.rule.comments
Checks that there is whitespace after comment characters: // and /*
SpaceAfterCommentDelimiterRule() - Constructor in SpaceAfterCommentDelimiterRule
SpaceAfterForRule - Class in org.codenarc.rule.formatting
Check that there is exactly one space (blank) after the for keyword and before the opening parenthesis.
SpaceAfterForRule() - Constructor in SpaceAfterForRule
SpaceAfterIfRule - Class in org.codenarc.rule.formatting
Check that there is exactly one space (blank) after the if keyword and before the opening parenthesis.
SpaceAfterIfRule() - Constructor in SpaceAfterIfRule
SpaceAfterMethodCallNameRule - Class in org.codenarc.rule.formatting
Checks that there is no whitespace at the end of the method name when a method call contains parenthesis or that there is at most one space after the method name if the call does not contain parenthesis
SpaceAfterMethodCallNameRule() - Constructor in SpaceAfterMethodCallNameRule
SpaceAfterMethodDeclarationNameRule - Class in org.codenarc.rule.formatting
Check whether method declarations do not contain unnecessary whitespace between method name and the opening parenthesis for parameter list.
SpaceAfterMethodDeclarationNameRule() - Constructor in SpaceAfterMethodDeclarationNameRule
SpaceAfterNotOperatorRule - Class in org.codenarc.rule.formatting
Check that there are no whitespace characters directly after the not (!)
SpaceAfterNotOperatorRule() - Constructor in SpaceAfterNotOperatorRule
SpaceAfterOpeningBraceRule - Class in org.codenarc.rule.formatting
Check that there is at least one space (blank) or whitespace after each opening brace ("{").
SpaceAfterOpeningBraceRule() - Constructor in SpaceAfterOpeningBraceRule
SpaceAfterSemicolonRule - Class in org.codenarc.rule.formatting
Check that there is at least one space (blank) or whitespace following a semicolon that separates: - multiple statements on a single line - the clauses within a classic for loop, e.g. for (i=0;i<10;i++)
SpaceAfterSemicolonRule() - Constructor in SpaceAfterSemicolonRule
SpaceAfterSwitchRule - Class in org.codenarc.rule.formatting
Check that there is exactly one space (blank) after the switch keyword and before the opening parenthesis.
SpaceAfterSwitchRule() - Constructor in SpaceAfterSwitchRule
SpaceAfterWhileRule - Class in org.codenarc.rule.formatting
Check that there is exactly one space (blank) after the while keyword and before the opening parenthesis.
SpaceAfterWhileRule() - Constructor in SpaceAfterWhileRule
SpaceAroundClosureArrowRule - Class in org.codenarc.rule.formatting
Checks that there is whitespace around the closure arrow (->) symbol
SpaceAroundClosureArrowRule() - Constructor in SpaceAroundClosureArrowRule
SpaceAroundMapEntryColonRule - Class in org.codenarc.rule.formatting
Check for configured formatting of whitespace around colons for literal Map entries
SpaceAroundMapEntryColonRule() - Constructor in SpaceAroundMapEntryColonRule
SpaceAroundOperatorRule - Class in org.codenarc.rule.formatting
Check that there is at least one space (blank) or whitespace around each binary operator, including: +, -, *, /, >>, <<, &&, ||, &, |, ?
SpaceAroundOperatorRule() - Constructor in SpaceAroundOperatorRule
SpaceBeforeClosingBraceRule - Class in org.codenarc.rule.formatting
Check that there is at least one space (blank) or whitespace before each closing brace ("}").
SpaceBeforeClosingBraceRule() - Constructor in SpaceBeforeClosingBraceRule
SpaceBeforeCommentDelimiterRule - Class in org.codenarc.rule.comments
Checks that there is whitespace before comment characters: // and /*
SpaceBeforeCommentDelimiterRule() - Constructor in SpaceBeforeCommentDelimiterRule
SpaceBeforeOpeningBraceRule - Class in org.codenarc.rule.formatting
Check that there is at least one space (blank) or whitespace before each opening brace ("{").
SpaceBeforeOpeningBraceRule() - Constructor in SpaceBeforeOpeningBraceRule
SpaceInsideParenthesesRule - Class in org.codenarc.rule.formatting
Check for whitespace after opening parentheses and before closing parentheses
SpaceInsideParenthesesRule() - Constructor in SpaceInsideParenthesesRule
spacesPerIndentLevel - Property in IndentationRule
specificationClassNames - Property in SpockIgnoreRestUsedRule
specificationClassNames - Property in SpockMissingAssertRule
specificationSuperclassNames - Property in SpockIgnoreRestUsedRule
specificationSuperclassNames - Property in SpockMissingAssertRule
SpockIgnoreRestUsedRule - Class in org.codenarc.rule.junit
If Spock's
IgnoreRest:
on any method, all non-annotated test methods are not executed.
SpockIgnoreRestUsedRule() - Constructor in SpockIgnoreRestUsedRule
SpockMissingAssertRule - Class in org.codenarc.rule.junit
Spock treats all expressions on the first level of a then or expect block as an implicit assertion.
SpockMissingAssertRule() - Constructor in SpockMissingAssertRule
STANDARD_PLUGIN_CLASSES - Field in CodeNarcRunner
StatelessClassRule - Class in org.codenarc.rule.generic
Rule that checks for non-final fields on a class.
StatelessClassRule() - Constructor in StatelessClassRule
StatelessSingletonRule - Class in org.codenarc.rule.design
There is no benefit in creating a stateless Singleton.
StatelessSingletonRule() - Constructor in StatelessSingletonRule
STATIC_IMPORT_PATTERN - Field in AbstractImportRule
StaticCalendarFieldRule - Class in org.codenarc.rule.concurrency
Calendar objects should not be used as static fields.
StaticCalendarFieldRule() - Constructor in StaticCalendarFieldRule
StaticConnectionRule - Class in org.codenarc.rule.concurrency
Creates violations when a java.sql.Connection object is used as a static field.
StaticConnectionRule() - Constructor in StaticConnectionRule
StaticDateFormatFieldRule - Class in org.codenarc.rule.concurrency
DateFormat objects should not be used as static fields.
StaticDateFormatFieldRule() - Constructor in StaticDateFormatFieldRule
StaticFieldsBeforeInstanceFieldsRule - Class in org.codenarc.rule.convention
Enforce that all static fields are above all instance fields within a class
StaticFieldsBeforeInstanceFieldsRule() - Constructor in StaticFieldsBeforeInstanceFieldsRule
staticFinalRegex - Property in FieldNameRule
staticFinalRegex - Property in PropertyNameRule
StaticMatcherFieldRule - Class in org.codenarc.rule.concurrency
Matcher objects should not be used as static fields.
StaticMatcherFieldRule() - Constructor in StaticMatcherFieldRule
StaticMethodsBeforeInstanceMethodsRule - Class in org.codenarc.rule.convention
Enforce that all static methods within each visibility level (public, protected, private) are above all instance methods within that same visibility level.
StaticMethodsBeforeInstanceMethodsRule() - Constructor in StaticMethodsBeforeInstanceMethodsRule
staticRegex - Property in FieldNameRule
staticRegex - Property in PropertyNameRule
StaticSimpleDateFormatFieldRule - Class in org.codenarc.rule.concurrency
SimpleDateFormat objects should not be used as static fields.
StaticSimpleDateFormatFieldRule() - Constructor in StaticSimpleDateFormatFieldRule
string - Property in IllegalStringRule
string - Property in RequiredStringRule
StringSourceAnalyzer - Class in org.codenarc.analyzer
Analyzes Strings.
StringSourceAnalyzer(java.lang.String) - Constructor in StringSourceAnalyzer
StubRule - Class in org.codenarc.rule
Stub implementation of the Rule interface for testing
StubRule(int) - Constructor in StubRule
suffix - Property in UnnecessaryInstantiationAstVisitor
superclassNames - Property in IllegalSubclassRule
SuppressionAnalyzer - Class in org.codenarc.analyzer
This class encapsulates all of the logic for determining if an rule is suppressed or not.
suppressionAnalyzer - Property in AbstractSourceCode
SuppressionAnalyzer(org.codenarc.source.SourceCode) - Constructor in SuppressionAnalyzer
SwallowThreadDeathRule - Class in org.codenarc.rule.exceptions
Detects code that catches java.lang.ThreadDeath without re-throwing it.
SwallowThreadDeathRule() - Constructor in SwallowThreadDeathRule
SynchronizedMethodRule - Class in org.codenarc.rule.concurrency
Synchronized Method Rule - This rule reports uses of the synchronized keyword on methods.
SynchronizedMethodRule() - Constructor in SynchronizedMethodRule
SynchronizedOnBoxedPrimitiveRule - Class in org.codenarc.rule.concurrency
The code synchronizes on a boxed primitive constant, such as an Integer.
SynchronizedOnBoxedPrimitiveRule() - Constructor in SynchronizedOnBoxedPrimitiveRule
SynchronizedOnGetClassRule - Class in org.codenarc.rule.concurrency
Synchronized on getClass rather than class literal.
SynchronizedOnGetClassRule() - Constructor in SynchronizedOnGetClassRule
SynchronizedOnReentrantLockRule - Class in org.codenarc.rule.concurrency
Synchronizing on a ReentrantLock field is almost never the intended usage.
SynchronizedOnReentrantLockRule() - Constructor in SynchronizedOnReentrantLockRule
SynchronizedOnStringRule - Class in org.codenarc.rule.concurrency
Synchronization on a String field can lead to deadlock because Strings are interned by the JVM and can be shared.
SynchronizedOnStringRule() - Constructor in SynchronizedOnStringRule
SynchronizedOnThisRule - Class in org.codenarc.rule.concurrency
Synchronized On This Rule - This rule reports uses of the synchronized blocks where the synchronization reference is 'this'.
SynchronizedOnThisRule() - Constructor in SynchronizedOnThisRule
SynchronizedReadObjectMethodRule - Class in org.codenarc.rule.concurrency
Catches Serializable classes that define a synchronized readObject method.
SynchronizedReadObjectMethodRule() - Constructor in SynchronizedReadObjectMethodRule
SystemErrPrintRule - Class in org.codenarc.rule.logging
Rule that checks for calls to System.err.print(), System.err.println() or System.err.printf().
SystemErrPrintRule() - Constructor in SystemErrPrintRule
systemExit - Field in CodeNarc
SystemExitRule - Class in org.codenarc.rule.security
Web applications should never call System.exit().
SystemExitRule() - Constructor in SystemExitRule
SystemOutPrintRule - Class in org.codenarc.rule.logging
Rule that checks for calls to System.out.print(), System.out.println() or System.out.printf().
SystemOutPrintRule() - Constructor in SystemOutPrintRule
SystemRunFinalizersOnExitRule - Class in org.codenarc.rule.concurrency
Method calls to System.runFinalizersOnExit() should not be allowed.
SystemRunFinalizersOnExitRule() - Constructor in SystemRunFinalizersOnExitRule

T

tabCharacter - Property in NoTabCharacterRule
targetType - Property in UnnecessaryInstantiationAstVisitor
TernaryCouldBeElvisRule - Class in org.codenarc.rule.convention
Rule that checks for ternary expressions where the boolean and true expressions are the same.
TernaryCouldBeElvisRule() - Constructor in TernaryCouldBeElvisRule
testThatApplyToFilesMatchingValuesAreValidRegex() - Method in AbstractRuleTestCase
testThatInvalidCodeHasNoViolations() - Method in AbstractRuleTestCase
testThatUnrelatedCodeHasNoViolations() - Method in AbstractRuleTestCase
Make sure that code unrelated to the rule under test causes no violations.
TextReportWriter - Class in org.codenarc.report
ReportWriter that generates an simple ASCII text report.
TextReportWriter() - Constructor in TextReportWriter
ThisReferenceEscapesConstructorRule - Class in org.codenarc.rule.concurrency
Reports constructors passing the 'this' reference to other methods.
ThisReferenceEscapesConstructorRule() - Constructor in ThisReferenceEscapesConstructorRule
ThreadGroupRule - Class in org.codenarc.rule.concurrency
Avoid using ThreadGroup; although it is intended to be used in a threaded environment it contains methods that are not thread safe.
ThreadGroupRule() - Constructor in ThreadGroupRule
ThreadLocalNotStaticFinalRule - Class in org.codenarc.rule.concurrency
ThreadLocal fields should be static and final.
ThreadLocalNotStaticFinalRule() - Constructor in ThreadLocalNotStaticFinalRule
ThreadYieldRule - Class in org.codenarc.rule.concurrency
Method calls to Thread.yield() should not be allowed.
ThreadYieldRule() - Constructor in ThreadYieldRule
ThrowErrorRule - Class in org.codenarc.rule.exceptions
Rule that checks for throwing an instance of java.lang.Error
ThrowErrorRule() - Constructor in ThrowErrorRule
ThrowExceptionFromFinallyBlockRule - Class in org.codenarc.rule.basic
Rule that checks for throwing an exception from within a finally block
ThrowExceptionFromFinallyBlockRule() - Constructor in ThrowExceptionFromFinallyBlockRule
ThrowExceptionRule - Class in org.codenarc.rule.exceptions
Rule that checks for throwing an instance of java.lang.Exception
ThrowExceptionRule() - Constructor in ThrowExceptionRule
ThrowNullPointerExceptionRule - Class in org.codenarc.rule.exceptions
Rule that checks for throwing an instance of java.lang.NullPointerException
ThrowNullPointerExceptionRule() - Constructor in ThrowNullPointerExceptionRule
ThrowRuntimeExceptionRule - Class in org.codenarc.rule.exceptions
Rule that checks for throwing an instance of java.lang.RuntimeException
ThrowRuntimeExceptionRule() - Constructor in ThrowRuntimeExceptionRule
ThrowThrowableRule - Class in org.codenarc.rule.exceptions
Rule that checks for throwing an instance of java.lang.Throwable
ThrowThrowableRule() - Constructor in ThrowThrowableRule
title - Property in AbstractHtmlReportWriter
title - Property in BaselineXmlReportWriter
title - Field in CodeNarc
title - Property in JsonReportWriter
title - Property in TextReportWriter
title - Property in XmlReportWriter
toString() - Method in AbstractRule
toString() - Method in CustomCompilerPhaseSourceDecorator
toString() - Method in DirectoryResults
toString() - Method in FileResults
toString() - Method in HtmlReportWriter
toString() - Method in SortableHtmlReportWriter
toString() - Method in SourceFile
toString() - Method in SourceString
toString() - Method in Violation
ToStringReturnsNullRule - Class in org.codenarc.rule.design
Checks for toString() methods that return null.
ToStringReturnsNullRule() - Constructor in ToStringReturnsNullRule
TrailingCommaRule - Class in org.codenarc.rule.convention
Check whether list and map literals contain optional trailing comma.
TrailingCommaRule() - Constructor in TrailingCommaRule
TrailingWhitespaceRule - Class in org.codenarc.rule.formatting
Checks that no lines of source code end with whitespace characters.
TrailingWhitespaceRule() - Constructor in TrailingWhitespaceRule
type - Property in Report

U

unescapeXml(java.lang.String) - Method in BaselineXmlReportParser
UnnecessaryBigDecimalInstantiationRule - Class in org.codenarc.rule.unnecessary
It is unnecessary to instantiate BigDecimal objects.
UnnecessaryBigDecimalInstantiationRule() - Constructor in UnnecessaryBigDecimalInstantiationRule
UnnecessaryBigIntegerInstantiationRule - Class in org.codenarc.rule.unnecessary
It is unnecessary to instantiate BigInteger objects.
UnnecessaryBigIntegerInstantiationRule() - Constructor in UnnecessaryBigIntegerInstantiationRule
UnnecessaryBooleanExpressionRule - Class in org.codenarc.rule.unnecessary
Rule that checks unnecessary boolean expressions, including ANDing (&&) or ORing (||) with true, false, null, or a Map/List/String/Number literal.
UnnecessaryBooleanExpressionRule() - Constructor in UnnecessaryBooleanExpressionRule
UnnecessaryBooleanInstantiationRule - Class in org.codenarc.rule.unnecessary
Rule that checks for direct call to Boolean constructor - use Boolean.valueOf() instead.
UnnecessaryBooleanInstantiationRule() - Constructor in UnnecessaryBooleanInstantiationRule
UnnecessaryCallForLastElementRule - Class in org.codenarc.rule.unnecessary
This rule checks for excessively verbose methods of accessing the last element of an array or list.
UnnecessaryCallForLastElementRule() - Constructor in UnnecessaryCallForLastElementRule
UnnecessaryCallToSubstringRule - Class in org.codenarc.rule.unnecessary
Calling String.substring(0) always returns the original string.
UnnecessaryCallToSubstringRule() - Constructor in UnnecessaryCallToSubstringRule
UnnecessaryCastRule - Class in org.codenarc.rule.unnecessary
Checks for unnecessary cast operations
UnnecessaryCastRule() - Constructor in UnnecessaryCastRule
UnnecessaryCatchBlockRule - Class in org.codenarc.rule.unnecessary
Violations are triggered when a catch block does nothing but throw the original exception.
UnnecessaryCatchBlockRule() - Constructor in UnnecessaryCatchBlockRule
UnnecessaryCollectCallRule - Class in org.codenarc.rule.unnecessary
Some method calls to Object.collect(Closure) can be replaced with the spread operator.
UnnecessaryCollectCallRule() - Constructor in UnnecessaryCollectCallRule
UnnecessaryCollectionCallRule - Class in org.codenarc.rule.unnecessary
Useless call to collections.
UnnecessaryCollectionCallRule() - Constructor in UnnecessaryCollectionCallRule
UnnecessaryConstructorRule - Class in org.codenarc.rule.unnecessary
UnnecessaryConstructor.
UnnecessaryConstructorRule() - Constructor in UnnecessaryConstructorRule
UnnecessaryDefInFieldDeclarationRule - Class in org.codenarc.rule.unnecessary
If a field has a visibility modifier or a type declaration, then the def keyword is unneeded.
UnnecessaryDefInFieldDeclarationRule() - Constructor in UnnecessaryDefInFieldDeclarationRule
UnnecessaryDefInMethodDeclarationRule - Class in org.codenarc.rule.unnecessary
If a method has a visibility modifier or a type declaration, then the def keyword is unneeded.
UnnecessaryDefInMethodDeclarationRule() - Constructor in UnnecessaryDefInMethodDeclarationRule
UnnecessaryDefInVariableDeclarationRule - Class in org.codenarc.rule.unnecessary
If a variable has a visibility modifier or a type declaration, then the def keyword is unneeded.
UnnecessaryDefInVariableDeclarationRule() - Constructor in UnnecessaryDefInVariableDeclarationRule
UnnecessaryDotClassRule - Class in org.codenarc.rule.unnecessary
To make a reference to a class, it is unnecessary to specify the '.class' identifier.
UnnecessaryDotClassRule() - Constructor in UnnecessaryDotClassRule
UnnecessaryDoubleInstantiationRule - Class in org.codenarc.rule.unnecessary
It is unnecessary to instantiate Double objects.
UnnecessaryDoubleInstantiationRule() - Constructor in UnnecessaryDoubleInstantiationRule
UnnecessaryElseStatementRule - Class in org.codenarc.rule.unnecessary
When an if statement block ends with a return statement the else is unnecessary
UnnecessaryElseStatementRule() - Constructor in UnnecessaryElseStatementRule
UnnecessaryFailRule - Class in org.codenarc.rule.junit
In a unit test, catching an exception and immediately calling Assert.fail() is pointless and hides the stack trace.
UnnecessaryFailRule() - Constructor in UnnecessaryFailRule
UnnecessaryFinalOnPrivateMethodRule - Class in org.codenarc.rule.unnecessary
A private method is marked final.
UnnecessaryFinalOnPrivateMethodRule() - Constructor in UnnecessaryFinalOnPrivateMethodRule
UnnecessaryFloatInstantiationRule - Class in org.codenarc.rule.unnecessary
It is unnecessary to instantiate Float objects.
UnnecessaryFloatInstantiationRule() - Constructor in UnnecessaryFloatInstantiationRule
UnnecessaryGetterRule - Class in org.codenarc.rule.unnecessary
Checks for explicit calls to getter/accessor methods which can, for the most part, be replaced by property access.
UnnecessaryGetterRule() - Constructor in UnnecessaryGetterRule
UnnecessaryGroovyImportRule - Class in org.codenarc.rule.imports
Rule that checks for non-static imports from any packages that are automatically imported by Groovy, including:
  • java.io
  • java.lang
  • java.net
  • java.util
  • java.math.BigDecimal
  • java.math.BigInteger
  • groovy.lang
  • groovy.util
UnnecessaryGroovyImportRule() - Constructor in UnnecessaryGroovyImportRule
UnnecessaryGStringRule - Class in org.codenarc.rule.unnecessary
String objects should be created with single quotes, and GString objects created with double quotes.
UnnecessaryGStringRule() - Constructor in UnnecessaryGStringRule
UnnecessaryIfStatementRule - Class in org.codenarc.rule.unnecessary
Rule that checks for unnecessary if statements.
UnnecessaryIfStatementRule() - Constructor in UnnecessaryIfStatementRule
UnnecessaryInstanceOfCheckRule - Class in org.codenarc.rule.unnecessary
This rule finds instanceof checks that cannot possibly evaluate to true.
UnnecessaryInstanceOfCheckRule() - Constructor in UnnecessaryInstanceOfCheckRule
UnnecessaryInstantiationAstVisitor - Class in org.codenarc.rule.unnecessary
Base visitor for unnecessary constructor calls.
UnnecessaryInstantiationAstVisitor(java.lang.Class, List<Class>, java.lang.String) - Constructor in UnnecessaryInstantiationAstVisitor
UnnecessaryInstantiationToGetClassRule - Class in org.codenarc.rule.unnecessary
Avoid instantiating an object just to call getClass() on it; use the .class public member instead.
UnnecessaryInstantiationToGetClassRule() - Constructor in UnnecessaryInstantiationToGetClassRule
UnnecessaryIntegerInstantiationRule - Class in org.codenarc.rule.unnecessary
It is unnecessary to instantiate Integer objects.
UnnecessaryIntegerInstantiationRule() - Constructor in UnnecessaryIntegerInstantiationRule
UnnecessaryLongInstantiationRule - Class in org.codenarc.rule.unnecessary
It is unnecessary to instantiate Long objects.
UnnecessaryLongInstantiationRule() - Constructor in UnnecessaryLongInstantiationRule
UnnecessaryModOneRule - Class in org.codenarc.rule.unnecessary
Any expression mod 1 (exp % 1) is guaranteed to always return zero.
UnnecessaryModOneRule() - Constructor in UnnecessaryModOneRule
UnnecessaryNullCheckBeforeInstanceOfRule - Class in org.codenarc.rule.unnecessary
There is no need to check for null before an instanceof; the instanceof keyword returns false when given a null argument.
UnnecessaryNullCheckBeforeInstanceOfRule() - Constructor in UnnecessaryNullCheckBeforeInstanceOfRule
UnnecessaryNullCheckRule - Class in org.codenarc.rule.unnecessary
Groovy contains the safe dereference operator, which can be used in boolean conditional statements to safely replace explicit "x == null" tests.
UnnecessaryNullCheckRule() - Constructor in UnnecessaryNullCheckRule
UnnecessaryObjectReferencesRule - Class in org.codenarc.rule.unnecessary
Violations are triggered when an excessive set of consecutive statements all reference the same variable.
UnnecessaryObjectReferencesRule() - Constructor in UnnecessaryObjectReferencesRule
UnnecessaryOverridingMethodRule - Class in org.codenarc.rule.unnecessary
The overriding method merely calls the same method defined in a superclass.
UnnecessaryOverridingMethodRule() - Constructor in UnnecessaryOverridingMethodRule
UnnecessaryPackageReferenceRule - Class in org.codenarc.rule.unnecessary
Checks for explicit package reference for classes that Groovy imports by default, such as java.lang.String, java.util.Map and groovy.lang.Closure, as well as classes that were explicitly imported.
UnnecessaryPackageReferenceRule() - Constructor in UnnecessaryPackageReferenceRule
UnnecessaryParenthesesForMethodCallWithClosureRule - Class in org.codenarc.rule.unnecessary
If a method is called and the only parameter to that method is an inline closure then the brackets of the method call can be omitted.
UnnecessaryParenthesesForMethodCallWithClosureRule() - Constructor in UnnecessaryParenthesesForMethodCallWithClosureRule
UnnecessaryPublicModifierRule - Class in org.codenarc.rule.unnecessary
The 'public' modifier is not required on methods, constructors or classes.
UnnecessaryPublicModifierRule() - Constructor in UnnecessaryPublicModifierRule
UnnecessaryReturnKeywordRule - Class in org.codenarc.rule.unnecessary
In Groovy, the return keyword is often optional.
UnnecessaryReturnKeywordRule() - Constructor in UnnecessaryReturnKeywordRule
UnnecessarySafeNavigationOperatorRule - Class in org.codenarc.rule.unnecessary
Check for safe navigation operator (?.)
UnnecessarySafeNavigationOperatorRule() - Constructor in UnnecessarySafeNavigationOperatorRule
UnnecessarySelfAssignmentRule - Class in org.codenarc.rule.unnecessary
Method contains a pointless self-assignment to a variable or property.
UnnecessarySelfAssignmentRule() - Constructor in UnnecessarySelfAssignmentRule
UnnecessarySemicolonRule - Class in org.codenarc.rule.unnecessary
Semicolons as line terminators are not required in Groovy: remove them.
UnnecessarySemicolonRule() - Constructor in UnnecessarySemicolonRule
UnnecessarySetterRule - Class in org.codenarc.rule.unnecessary
Checks for explicit calls to setter methods which can, for the most part, be replaced by assignment to property.
UnnecessarySetterRule() - Constructor in UnnecessarySetterRule
UnnecessaryStringInstantiationRule - Class in org.codenarc.rule.unnecessary
Rule that checks for direct call to the String constructor that accepts a String literal.
UnnecessaryStringInstantiationRule() - Constructor in UnnecessaryStringInstantiationRule
UnnecessaryTernaryExpressionRule - Class in org.codenarc.rule.unnecessary
Rule that checks for ternary expressions where the conditional expression always evaluates to a boolean and the true and false expressions are merely returning true and false constants.
UnnecessaryTernaryExpressionRule() - Constructor in UnnecessaryTernaryExpressionRule
UnnecessaryToStringRule - Class in org.codenarc.rule.unnecessary
Checks for unnecessary calls to toString().
UnnecessaryToStringRule() - Constructor in UnnecessaryToStringRule
UnnecessaryTransientModifierRule - Class in org.codenarc.rule.unnecessary
The field is marked as transient, but the class isn't Serializable, so marking it as transient should have no effect.
UnnecessaryTransientModifierRule() - Constructor in UnnecessaryTransientModifierRule
unreferencedFieldMap - Field in FieldReferenceAstVisitor
UnsafeArrayDeclarationRule - Class in org.codenarc.rule.security
Triggers a violation when an array is declared public, final, and static.
UnsafeArrayDeclarationRule() - Constructor in UnsafeArrayDeclarationRule
UnsafeImplementationAsMapRule - Class in org.codenarc.rule.security
Reports incomplete interface implementations created by map-to-interface coercions.
UnsafeImplementationAsMapRule() - Constructor in UnsafeImplementationAsMapRule
UnusedArrayRule - Class in org.codenarc.rule.unused
Checks for array allocations that are not assigned or used (i.e., it is ignored).
UnusedArrayRule() - Constructor in UnusedArrayRule
UnusedImportRule - Class in org.codenarc.rule.imports
Rule that checks for an unreferenced import
UnusedImportRule() - Constructor in UnusedImportRule
UnusedMethodParameterRule - Class in org.codenarc.rule.unused
This rule finds instances of method parameters not being used.
UnusedMethodParameterRule() - Constructor in UnusedMethodParameterRule
UnusedObjectRule - Class in org.codenarc.rule.unused
Checks for object constructions that are not assigned or used (i.e., ignored).
UnusedObjectRule() - Constructor in UnusedObjectRule
UnusedPrivateFieldRule - Class in org.codenarc.rule.unused
Rule that checks for private fields that are not referenced within the same class.
UnusedPrivateFieldRule() - Constructor in UnusedPrivateFieldRule
UnusedPrivateMethodParameterRule - Class in org.codenarc.rule.unused
Rule that checks for parameters to private methods that are not referenced within the method body.
UnusedPrivateMethodParameterRule() - Constructor in UnusedPrivateMethodParameterRule
UnusedPrivateMethodRule - Class in org.codenarc.rule.unused
Rule that checks for private methods that are not referenced within the same class.
UnusedPrivateMethodRule() - Constructor in UnusedPrivateMethodRule
UnusedVariableRule - Class in org.codenarc.rule.unused
Rule that checks for variables that are not referenced.
UnusedVariableRule() - Constructor in UnusedVariableRule
UrlResource - Class in org.codenarc.util.io
A Resource implementation based on java.net.URL.
UrlResource(java.lang.String) - Constructor in UrlResource
Construct a new FileResource
UseAssertEqualsInsteadOfAssertTrueRule - Class in org.codenarc.rule.junit
This rule detects JUnit assertions in object equality.
UseAssertEqualsInsteadOfAssertTrueRule() - Constructor in UseAssertEqualsInsteadOfAssertTrueRule
UseAssertFalseInsteadOfNegationRule - Class in org.codenarc.rule.junit
In unit tests, if a condition is expected to be false then there is no sense using assertTrue with the negation operator.
UseAssertFalseInsteadOfNegationRule() - Constructor in UseAssertFalseInsteadOfNegationRule
UseAssertNullInsteadOfAssertEqualsRule - Class in org.codenarc.rule.junit
This rule detects JUnit calling assertEquals where the first or second parameter is null.
UseAssertNullInsteadOfAssertEqualsRule() - Constructor in UseAssertNullInsteadOfAssertEqualsRule
UseAssertSameInsteadOfAssertTrueRule - Class in org.codenarc.rule.junit
This rule detects JUnit calling assertTrue where the first or second parameter is an Object#is() call testing for reference equality.
UseAssertSameInsteadOfAssertTrueRule() - Constructor in UseAssertSameInsteadOfAssertTrueRule
UseAssertTrueInsteadOfAssertEqualsRule - Class in org.codenarc.rule.junit
This rule detects JUnit calling assertEquals where the first parameter is a boolean.
UseAssertTrueInsteadOfAssertEqualsRule() - Constructor in UseAssertTrueInsteadOfAssertEqualsRule
UseAssertTrueInsteadOfNegationRule - Class in org.codenarc.rule.junit
In unit tests, if a condition is expected to be true then there is no sense using assertFalse with the negation operator.
UseAssertTrueInsteadOfNegationRule() - Constructor in UseAssertTrueInsteadOfNegationRule
UseCollectManyRule - Class in org.codenarc.rule.groovyism
In many case collectMany() yields the same result as collect{}.flatten.
UseCollectManyRule() - Constructor in UseCollectManyRule
UseCollectNestedRule - Class in org.codenarc.rule.groovyism
Instead of nested collect{}-calls use collectNested{}
UseCollectNestedRule() - Constructor in UseCollectNestedRule
UseOfNotifyMethodRule - Class in org.codenarc.rule.concurrency
This code calls notify() rather than notifyAll().
UseOfNotifyMethodRule() - Constructor in UseOfNotifyMethodRule

V

validate() - Method in AbstractRule
Allows rules to perform validation.
validate() - Method in ClassNameRule
validate() - Method in FieldNameRule
validate() - Method in ParameterNameRule
validate() - Method in PropertyNameRule
validateCatch - Property in BracesForTryCatchFinallyRule
validateElse - Property in BracesForIfElseRule
validateFinally - Property in BracesForTryCatchFinallyRule
Value - Class in org.codehaus.groovy.transform.powerassert
A value recorded during evaluation of an assertion, along with the column it is associated with in the assertion's normalized source text.
value - Property in ReportOption
Value(java.lang.Object, int) - Constructor in Value
ValueRecorder - Class in org.codehaus.groovy.transform.powerassert
Records values produced during evaluation of an assertion statement's truth expression.
VariableNameRule - Class in org.codenarc.rule.naming
Rule that verifies that the name of each variable matches a regular expression.
VariableNameRule() - Constructor in VariableNameRule
VariableTypeRequiredRule - Class in org.codenarc.rule.convention
Checks that variable types are explicitly specified in declarations (and not using def)
VariableTypeRequiredRule() - Constructor in VariableTypeRequiredRule
VectorIsObsoleteRule - Class in org.codenarc.rule.convention
Check for direct use of Vector or java.util.Vector.
VectorIsObsoleteRule() - Constructor in VectorIsObsoleteRule
version - Property in CodeNarcVersion
Violation - Class in org.codenarc.rule
Represents a single instance of a rule violation
Violation() - Constructor in Violation
violations - Property in FileViolations
violations - Property in InlineViolationsParser.ParseResult
VirtualResults - Class in org.codenarc.results
This is a Results object for something that has no real file system, such as a string.
VirtualResults(java.util.List) - Constructor in VirtualResults
visitAnnotations(org.codehaus.groovy.ast.AnnotatedNode) - Method in AbstractFieldVisitor
visitAnnotations(org.codehaus.groovy.ast.AnnotatedNode) - Method in AbstractMethodCallExpressionVisitor
visitAnnotations(org.codehaus.groovy.ast.AnnotatedNode) - Method in AbstractMethodVisitor
visitAnnotations(org.codehaus.groovy.ast.AnnotatedNode) - Method in DuplicateLiteralAstVisitor
visitArgumentlistExpression(org.codehaus.groovy.ast.expr.ArgumentListExpression) - Method in AbstractFieldVisitor
visitArgumentlistExpression(org.codehaus.groovy.ast.expr.ArgumentListExpression) - Method in AbstractMethodCallExpressionVisitor
visitArgumentlistExpression(org.codehaus.groovy.ast.expr.ArgumentListExpression) - Method in AbstractMethodVisitor
visitArgumentlistExpression(org.codehaus.groovy.ast.expr.ArgumentListExpression) - Method in DuplicateLiteralAstVisitor
visitArrayExpression(org.codehaus.groovy.ast.expr.ArrayExpression) - Method in AbstractFieldVisitor
visitArrayExpression(org.codehaus.groovy.ast.expr.ArrayExpression) - Method in AbstractMethodCallExpressionVisitor
visitArrayExpression(org.codehaus.groovy.ast.expr.ArrayExpression) - Method in AbstractMethodVisitor
visitAssertStatement(org.codehaus.groovy.ast.stmt.AssertStatement) - Method in AbstractFieldVisitor
visitAssertStatement(org.codehaus.groovy.ast.stmt.AssertStatement) - Method in AbstractMethodCallExpressionVisitor
visitAssertStatement(org.codehaus.groovy.ast.stmt.AssertStatement) - Method in AbstractMethodVisitor
visitAttributeExpression(org.codehaus.groovy.ast.expr.AttributeExpression) - Method in AbstractFieldVisitor
visitAttributeExpression(org.codehaus.groovy.ast.expr.AttributeExpression) - Method in AbstractMethodCallExpressionVisitor
visitAttributeExpression(org.codehaus.groovy.ast.expr.AttributeExpression) - Method in AbstractMethodVisitor
visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression) - Method in AbstractFieldVisitor
visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression) - Method in AbstractMethodCallExpressionVisitor
visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression) - Method in AbstractMethodVisitor
visitBinaryExpression(org.codehaus.groovy.ast.expr.BinaryExpression) - Method in DuplicateLiteralAstVisitor
visitBitwiseNegationExpression(org.codehaus.groovy.ast.expr.BitwiseNegationExpression) - Method in AbstractFieldVisitor
visitBitwiseNegationExpression(org.codehaus.groovy.ast.expr.BitwiseNegationExpression) - Method in AbstractMethodCallExpressionVisitor
visitBitwiseNegationExpression(org.codehaus.groovy.ast.expr.BitwiseNegationExpression) - Method in AbstractMethodVisitor
visitBlockStatement(org.codehaus.groovy.ast.stmt.BlockStatement) - Method in AbstractFieldVisitor
visitBlockStatement(org.codehaus.groovy.ast.stmt.BlockStatement) - Method in AbstractLastStatementInBlockAstVisitor
visitBlockStatement(org.codehaus.groovy.ast.stmt.BlockStatement) - Method in AbstractMethodCallExpressionVisitor
visitBlockStatement(org.codehaus.groovy.ast.stmt.BlockStatement) - Method in AbstractMethodVisitor
visitBooleanExpression(org.codehaus.groovy.ast.expr.BooleanExpression) - Method in AbstractFieldVisitor
visitBooleanExpression(org.codehaus.groovy.ast.expr.BooleanExpression) - Method in AbstractMethodCallExpressionVisitor
visitBooleanExpression(org.codehaus.groovy.ast.expr.BooleanExpression) - Method in AbstractMethodVisitor
visitBreakStatement(org.codehaus.groovy.ast.stmt.BreakStatement) - Method in AbstractFieldVisitor
visitBreakStatement(org.codehaus.groovy.ast.stmt.BreakStatement) - Method in AbstractMethodCallExpressionVisitor
visitBreakStatement(org.codehaus.groovy.ast.stmt.BreakStatement) - Method in AbstractMethodVisitor
visitBytecodeExpression(org.codehaus.groovy.classgen.BytecodeExpression) - Method in AbstractFieldVisitor
visitBytecodeExpression(org.codehaus.groovy.classgen.BytecodeExpression) - Method in AbstractMethodCallExpressionVisitor
visitBytecodeExpression(org.codehaus.groovy.classgen.BytecodeExpression) - Method in AbstractMethodVisitor
visitCaseStatement(org.codehaus.groovy.ast.stmt.CaseStatement) - Method in AbstractFieldVisitor
visitCaseStatement(org.codehaus.groovy.ast.stmt.CaseStatement) - Method in AbstractMethodCallExpressionVisitor
visitCaseStatement(org.codehaus.groovy.ast.stmt.CaseStatement) - Method in AbstractMethodVisitor
visitCastExpression(org.codehaus.groovy.ast.expr.CastExpression) - Method in AbstractFieldVisitor
visitCastExpression(org.codehaus.groovy.ast.expr.CastExpression) - Method in AbstractMethodCallExpressionVisitor
visitCastExpression(org.codehaus.groovy.ast.expr.CastExpression) - Method in AbstractMethodVisitor
visitCastExpression(org.codehaus.groovy.ast.expr.CastExpression) - Method in ClassReferenceAstVisitor
visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement) - Method in AbstractFieldVisitor
visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement) - Method in AbstractMethodCallExpressionVisitor
visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement) - Method in AbstractMethodVisitor
visitCatchStatement(org.codehaus.groovy.ast.stmt.CatchStatement) - Method in CommonCatchAstVisitor
visitClass(org.codehaus.groovy.ast.ClassNode) - Method in AbstractAstVisitor
visitClass(org.codehaus.groovy.ast.ClassNode) - Method in AbstractFieldVisitor
visitClass(org.codehaus.groovy.ast.ClassNode) - Method in AbstractMethodCallExpressionVisitor
visitClass(org.codehaus.groovy.ast.ClassNode) - Method in AbstractMethodVisitor
visitClassCodeContainer(org.codehaus.groovy.ast.stmt.Statement) - Method in AbstractFieldVisitor
visitClassCodeContainer(org.codehaus.groovy.ast.stmt.Statement) - Method in AbstractMethodCallExpressionVisitor
visitClassCodeContainer(org.codehaus.groovy.ast.stmt.Statement) - Method in AbstractMethodVisitor
visitClassComplete(org.codehaus.groovy.ast.ClassNode) - Method in AbstractAstVisitor
visitClassEx(org.codehaus.groovy.ast.ClassNode) - Method in AbstractAstVisitor
visitClassEx(org.codehaus.groovy.ast.ClassNode) - Method in AbstractMethodMetricAstVisitor
visitClassEx(org.codehaus.groovy.ast.ClassNode) - Method in AbstractTypeNameAstVisitor
visitClassEx(org.codehaus.groovy.ast.ClassNode) - Method in ClassReferenceAstVisitor
visitClassEx(org.codehaus.groovy.ast.ClassNode) - Method in DuplicateLiteralAstVisitor
visitClassExpression(org.codehaus.groovy.ast.expr.ClassExpression) - Method in AbstractFieldVisitor
visitClassExpression(org.codehaus.groovy.ast.expr.ClassExpression) - Method in AbstractMethodCallExpressionVisitor
visitClassExpression(org.codehaus.groovy.ast.expr.ClassExpression) - Method in AbstractMethodVisitor
visitClassExpression(org.codehaus.groovy.ast.expr.ClassExpression) - Method in ClassReferenceAstVisitor
visitClosureExpression(org.codehaus.groovy.ast.expr.ClosureExpression) - Method in AbstractFieldVisitor
visitClosureExpression(org.codehaus.groovy.ast.expr.ClosureExpression) - Method in AbstractMethodCallExpressionVisitor
visitClosureExpression(org.codehaus.groovy.ast.expr.ClosureExpression) - Method in AbstractMethodVisitor
visitClosureExpression(org.codehaus.groovy.ast.expr.ClosureExpression) - Method in ClassReferenceAstVisitor
visitClosureExpression(org.codehaus.groovy.ast.expr.ClosureExpression) - Method in NullReturnTracker
visitClosureListExpression(org.codehaus.groovy.ast.expr.ClosureListExpression) - Method in AbstractFieldVisitor
visitClosureListExpression(org.codehaus.groovy.ast.expr.ClosureListExpression) - Method in AbstractMethodCallExpressionVisitor
visitClosureListExpression(org.codehaus.groovy.ast.expr.ClosureListExpression) - Method in AbstractMethodVisitor
visitConstantExpression(org.codehaus.groovy.ast.expr.ConstantExpression) - Method in AbstractFieldVisitor
visitConstantExpression(org.codehaus.groovy.ast.expr.ConstantExpression) - Method in AbstractMethodCallExpressionVisitor
visitConstantExpression(org.codehaus.groovy.ast.expr.ConstantExpression) - Method in AbstractMethodVisitor
visitConstructor(org.codehaus.groovy.ast.ConstructorNode) - Method in AbstractFieldVisitor
visitConstructor(org.codehaus.groovy.ast.ConstructorNode) - Method in AbstractMethodCallExpressionVisitor
visitConstructor(org.codehaus.groovy.ast.ConstructorNode) - Method in AbstractMethodVisitor
visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression) - Method in AbstractConstructorCallAstVisitor
visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression) - Method in AbstractFieldVisitor
visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression) - Method in AbstractMethodCallExpressionVisitor
visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression) - Method in AbstractMethodVisitor
visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression) - Method in ClassReferenceAstVisitor
visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression) - Method in ExplicitTypeInstantiationAstVisitor
visitConstructorCallExpression(org.codehaus.groovy.ast.expr.ConstructorCallExpression) - Method in UnnecessaryInstantiationAstVisitor
visitConstructorOrMethod(org.codehaus.groovy.ast.MethodNode, boolean) - Method in AbstractFieldVisitor
visitConstructorOrMethod(org.codehaus.groovy.ast.MethodNode, boolean) - Method in AbstractMethodCallExpressionVisitor
visitConstructorOrMethod(org.codehaus.groovy.ast.MethodNode, boolean) - Method in AbstractMethodVisitor
visitConstructorOrMethod(org.codehaus.groovy.ast.MethodNode, boolean) - Method in ClassReferenceAstVisitor
visitConstructorOrMethod(org.codehaus.groovy.ast.MethodNode, boolean) - Method in ConstructorsSkippingFieldReferenceAstVisitor
visitContinueStatement(org.codehaus.groovy.ast.stmt.ContinueStatement) - Method in AbstractFieldVisitor
visitContinueStatement(org.codehaus.groovy.ast.stmt.ContinueStatement) - Method in AbstractMethodCallExpressionVisitor
visitContinueStatement(org.codehaus.groovy.ast.stmt.ContinueStatement) - Method in AbstractMethodVisitor
visitDeclarationExpression(org.codehaus.groovy.ast.expr.DeclarationExpression) - Method in AbstractFieldVisitor
visitDeclarationExpression(org.codehaus.groovy.ast.expr.DeclarationExpression) - Method in AbstractMethodCallExpressionVisitor
visitDeclarationExpression(org.codehaus.groovy.ast.expr.DeclarationExpression) - Method in AbstractMethodVisitor
visitDeclarationExpression(org.codehaus.groovy.ast.expr.DeclarationExpression) - Method in SuppressionAnalyzer
visitDoWhileLoop(org.codehaus.groovy.ast.stmt.DoWhileStatement) - Method in AbstractFieldVisitor
visitDoWhileLoop(org.codehaus.groovy.ast.stmt.DoWhileStatement) - Method in AbstractMethodCallExpressionVisitor
visitDoWhileLoop(org.codehaus.groovy.ast.stmt.DoWhileStatement) - Method in AbstractMethodVisitor
visitEmptyStatement(org.codehaus.groovy.ast.stmt.EmptyStatement) - Method in AbstractFieldVisitor
visitEmptyStatement(org.codehaus.groovy.ast.stmt.EmptyStatement) - Method in AbstractMethodCallExpressionVisitor
visitEmptyStatement(org.codehaus.groovy.ast.stmt.EmptyStatement) - Method in AbstractMethodVisitor
visitExpressionStatement(org.codehaus.groovy.ast.stmt.ExpressionStatement) - Method in AbstractFieldVisitor
visitExpressionStatement(org.codehaus.groovy.ast.stmt.ExpressionStatement) - Method in AbstractMethodCallExpressionVisitor
visitExpressionStatement(org.codehaus.groovy.ast.stmt.ExpressionStatement) - Method in AbstractMethodVisitor
visitField(org.codehaus.groovy.ast.FieldNode) - Method in AbstractMethodCallExpressionVisitor
visitField(org.codehaus.groovy.ast.FieldNode) - Method in AbstractMethodVisitor
visitField(org.codehaus.groovy.ast.FieldNode) - Method in ClassReferenceAstVisitor
visitField(org.codehaus.groovy.ast.FieldNode) - Method in DuplicateLiteralAstVisitor
visitFieldExpression(org.codehaus.groovy.ast.expr.FieldExpression) - Method in AbstractFieldVisitor
visitFieldExpression(org.codehaus.groovy.ast.expr.FieldExpression) - Method in AbstractMethodCallExpressionVisitor
visitFieldExpression(org.codehaus.groovy.ast.expr.FieldExpression) - Method in AbstractMethodVisitor
visitForLoop(org.codehaus.groovy.ast.stmt.ForStatement) - Method in AbstractFieldVisitor
visitForLoop(org.codehaus.groovy.ast.stmt.ForStatement) - Method in AbstractMethodCallExpressionVisitor
visitForLoop(org.codehaus.groovy.ast.stmt.ForStatement) - Method in AbstractMethodVisitor
visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression) - Method in AbstractFieldVisitor
visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression) - Method in AbstractMethodCallExpressionVisitor
visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression) - Method in AbstractMethodVisitor
visitGStringExpression(org.codehaus.groovy.ast.expr.GStringExpression) - Method in AbstractSpaceAroundBraceAstVisitor
visitIfElse(org.codehaus.groovy.ast.stmt.IfStatement) - Method in AbstractFieldVisitor
visitIfElse(org.codehaus.groovy.ast.stmt.IfStatement) - Method in AbstractMethodCallExpressionVisitor
visitIfElse(org.codehaus.groovy.ast.stmt.IfStatement) - Method in AbstractMethodVisitor
visitImports(org.codehaus.groovy.ast.ModuleNode) - Method in AbstractFieldVisitor
visitImports(org.codehaus.groovy.ast.ModuleNode) - Method in AbstractMethodCallExpressionVisitor
visitImports(org.codehaus.groovy.ast.ModuleNode) - Method in AbstractMethodVisitor
visitImports(org.codehaus.groovy.ast.ModuleNode) - Method in ClassReferenceAstVisitor
visitListExpression(org.codehaus.groovy.ast.expr.ListExpression) - Method in AbstractFieldVisitor
visitListExpression(org.codehaus.groovy.ast.expr.ListExpression) - Method in AbstractMethodCallExpressionVisitor
visitListExpression(org.codehaus.groovy.ast.expr.ListExpression) - Method in AbstractMethodVisitor
visitListExpression(org.codehaus.groovy.ast.expr.ListExpression) - Method in DuplicateLiteralAstVisitor
visitListOfExpressions(List<? extends Expression>) - Method in AbstractFieldVisitor
visitListOfExpressions(List<? extends Expression>) - Method in AbstractMethodCallExpressionVisitor
visitListOfExpressions(List<? extends Expression>) - Method in AbstractMethodVisitor
visitMapEntryExpression(org.codehaus.groovy.ast.expr.MapEntryExpression) - Method in AbstractFieldVisitor
visitMapEntryExpression(org.codehaus.groovy.ast.expr.MapEntryExpression) - Method in AbstractMethodCallExpressionVisitor
visitMapEntryExpression(org.codehaus.groovy.ast.expr.MapEntryExpression) - Method in AbstractMethodVisitor
visitMapEntryExpression(org.codehaus.groovy.ast.expr.MapEntryExpression) - Method in DuplicateLiteralAstVisitor
visitMapExpression(org.codehaus.groovy.ast.expr.MapExpression) - Method in AbstractFieldVisitor
visitMapExpression(org.codehaus.groovy.ast.expr.MapExpression) - Method in AbstractMethodCallExpressionVisitor
visitMapExpression(org.codehaus.groovy.ast.expr.MapExpression) - Method in AbstractMethodVisitor
visitMethod(org.codehaus.groovy.ast.MethodNode) - Method in AbstractAstVisitor
visitMethod(org.codehaus.groovy.ast.MethodNode) - Method in AbstractFieldVisitor
visitMethod(org.codehaus.groovy.ast.MethodNode) - Method in AbstractMethodCallExpressionVisitor
visitMethod(org.codehaus.groovy.ast.MethodNode) - Method in AbstractMethodVisitor
visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression) - Method in AbstractFieldVisitor
visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression) - Method in AbstractMethodVisitor
visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression) - Method in DuplicateLiteralAstVisitor
visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression) - Method in ExplicitCallToMethodAstVisitor
visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression) - Method in FieldReferenceAstVisitor
visitMethodCallExpression(org.codehaus.groovy.ast.expr.MethodCallExpression) - Method in ReferenceCollector
visitMethodComplete(org.codehaus.groovy.ast.MethodNode) - Method in AbstractAstVisitor
visitMethodEx(org.codehaus.groovy.ast.MethodNode) - Method in AbstractAstVisitor
visitMethodEx(org.codehaus.groovy.ast.MethodNode) - Method in FieldReferenceAstVisitor
visitMethodPointerExpression(org.codehaus.groovy.ast.expr.MethodPointerExpression) - Method in AbstractFieldVisitor
visitMethodPointerExpression(org.codehaus.groovy.ast.expr.MethodPointerExpression) - Method in AbstractMethodCallExpressionVisitor
visitMethodPointerExpression(org.codehaus.groovy.ast.expr.MethodPointerExpression) - Method in AbstractMethodVisitor
visitNotExpression(org.codehaus.groovy.ast.expr.NotExpression) - Method in AbstractFieldVisitor
visitNotExpression(org.codehaus.groovy.ast.expr.NotExpression) - Method in AbstractMethodCallExpressionVisitor
visitNotExpression(org.codehaus.groovy.ast.expr.NotExpression) - Method in AbstractMethodVisitor
visitObjectInitializerStatements(org.codehaus.groovy.ast.ClassNode) - Method in AbstractFieldVisitor
visitObjectInitializerStatements(org.codehaus.groovy.ast.ClassNode) - Method in AbstractMethodCallExpressionVisitor
visitObjectInitializerStatements(org.codehaus.groovy.ast.ClassNode) - Method in AbstractMethodVisitor
visitPackage(org.codehaus.groovy.ast.PackageNode) - Method in AbstractFieldVisitor
visitPackage(org.codehaus.groovy.ast.PackageNode) - Method in AbstractMethodCallExpressionVisitor
visitPackage(org.codehaus.groovy.ast.PackageNode) - Method in AbstractMethodVisitor
visitPostfixExpression(org.codehaus.groovy.ast.expr.PostfixExpression) - Method in AbstractFieldVisitor
visitPostfixExpression(org.codehaus.groovy.ast.expr.PostfixExpression) - Method in AbstractMethodCallExpressionVisitor
visitPostfixExpression(org.codehaus.groovy.ast.expr.PostfixExpression) - Method in AbstractMethodVisitor
visitPrefixExpression(org.codehaus.groovy.ast.expr.PrefixExpression) - Method in AbstractFieldVisitor
visitPrefixExpression(org.codehaus.groovy.ast.expr.PrefixExpression) - Method in AbstractMethodCallExpressionVisitor
visitPrefixExpression(org.codehaus.groovy.ast.expr.PrefixExpression) - Method in AbstractMethodVisitor
visitProperty(org.codehaus.groovy.ast.PropertyNode) - Method in AbstractFieldVisitor
visitProperty(org.codehaus.groovy.ast.PropertyNode) - Method in AbstractMethodCallExpressionVisitor
visitProperty(org.codehaus.groovy.ast.PropertyNode) - Method in AbstractMethodVisitor
visitProperty(org.codehaus.groovy.ast.PropertyNode) - Method in FieldReferenceAstVisitor
visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression) - Method in AbstractFieldVisitor
visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression) - Method in AbstractMethodCallExpressionVisitor
visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression) - Method in AbstractMethodVisitor
visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression) - Method in ClassReferenceAstVisitor
visitPropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression) - Method in FieldReferenceAstVisitor
visitRangeExpression(org.codehaus.groovy.ast.expr.RangeExpression) - Method in AbstractFieldVisitor
visitRangeExpression(org.codehaus.groovy.ast.expr.RangeExpression) - Method in AbstractMethodCallExpressionVisitor
visitRangeExpression(org.codehaus.groovy.ast.expr.RangeExpression) - Method in AbstractMethodVisitor
visitReturnStatement(org.codehaus.groovy.ast.stmt.ReturnStatement) - Method in AbstractFieldVisitor
visitReturnStatement(org.codehaus.groovy.ast.stmt.ReturnStatement) - Method in AbstractMethodCallExpressionVisitor
visitReturnStatement(org.codehaus.groovy.ast.stmt.ReturnStatement) - Method in AbstractMethodVisitor
visitReturnStatement(org.codehaus.groovy.ast.stmt.ReturnStatement) - Method in DuplicateLiteralAstVisitor
visitReturnStatement(org.codehaus.groovy.ast.stmt.ReturnStatement) - Method in NullReturnTracker
visitShortTernaryExpression(org.codehaus.groovy.ast.expr.ElvisOperatorExpression) - Method in AbstractFieldVisitor
visitShortTernaryExpression(org.codehaus.groovy.ast.expr.ElvisOperatorExpression) - Method in AbstractMethodCallExpressionVisitor
visitShortTernaryExpression(org.codehaus.groovy.ast.expr.ElvisOperatorExpression) - Method in AbstractMethodVisitor
visitShortTernaryExpression(org.codehaus.groovy.ast.expr.ElvisOperatorExpression) - Method in DuplicateLiteralAstVisitor
visitSpreadExpression(org.codehaus.groovy.ast.expr.SpreadExpression) - Method in AbstractFieldVisitor
visitSpreadExpression(org.codehaus.groovy.ast.expr.SpreadExpression) - Method in AbstractMethodCallExpressionVisitor
visitSpreadExpression(org.codehaus.groovy.ast.expr.SpreadExpression) - Method in AbstractMethodVisitor
visitSpreadMapExpression(org.codehaus.groovy.ast.expr.SpreadMapExpression) - Method in AbstractFieldVisitor
visitSpreadMapExpression(org.codehaus.groovy.ast.expr.SpreadMapExpression) - Method in AbstractMethodCallExpressionVisitor
visitSpreadMapExpression(org.codehaus.groovy.ast.expr.SpreadMapExpression) - Method in AbstractMethodVisitor
visitStatement(org.codehaus.groovy.ast.stmt.Statement) - Method in AbstractFieldVisitor
visitStatement(org.codehaus.groovy.ast.stmt.Statement) - Method in AbstractMethodCallExpressionVisitor
visitStatement(org.codehaus.groovy.ast.stmt.Statement) - Method in AbstractMethodVisitor
visitStaticMethodCallExpression(org.codehaus.groovy.ast.expr.StaticMethodCallExpression) - Method in AbstractFieldVisitor
visitStaticMethodCallExpression(org.codehaus.groovy.ast.expr.StaticMethodCallExpression) - Method in AbstractMethodCallExpressionVisitor
visitStaticMethodCallExpression(org.codehaus.groovy.ast.expr.StaticMethodCallExpression) - Method in AbstractMethodVisitor
visitStaticMethodCallExpression(org.codehaus.groovy.ast.expr.StaticMethodCallExpression) - Method in DuplicateLiteralAstVisitor
visitSwitch(org.codehaus.groovy.ast.stmt.SwitchStatement) - Method in AbstractFieldVisitor
visitSwitch(org.codehaus.groovy.ast.stmt.SwitchStatement) - Method in AbstractMethodCallExpressionVisitor
visitSwitch(org.codehaus.groovy.ast.stmt.SwitchStatement) - Method in AbstractMethodVisitor
visitSynchronizedStatement(org.codehaus.groovy.ast.stmt.SynchronizedStatement) - Method in AbstractFieldVisitor
visitSynchronizedStatement(org.codehaus.groovy.ast.stmt.SynchronizedStatement) - Method in AbstractMethodCallExpressionVisitor
visitSynchronizedStatement(org.codehaus.groovy.ast.stmt.SynchronizedStatement) - Method in AbstractMethodVisitor
visitTernaryExpression(org.codehaus.groovy.ast.expr.TernaryExpression) - Method in AbstractFieldVisitor
visitTernaryExpression(org.codehaus.groovy.ast.expr.TernaryExpression) - Method in AbstractMethodCallExpressionVisitor
visitTernaryExpression(org.codehaus.groovy.ast.expr.TernaryExpression) - Method in AbstractMethodVisitor
visitThrowStatement(org.codehaus.groovy.ast.stmt.ThrowStatement) - Method in AbstractFieldVisitor
visitThrowStatement(org.codehaus.groovy.ast.stmt.ThrowStatement) - Method in AbstractMethodCallExpressionVisitor
visitThrowStatement(org.codehaus.groovy.ast.stmt.ThrowStatement) - Method in AbstractMethodVisitor
visitThrowStatement(org.codehaus.groovy.ast.stmt.ThrowStatement) - Method in CommonThrowAstVisitor
visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement) - Method in AbstractFieldVisitor
visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement) - Method in AbstractFinallyAstVisitor
visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement) - Method in AbstractMethodCallExpressionVisitor
visitTryCatchFinally(org.codehaus.groovy.ast.stmt.TryCatchStatement) - Method in AbstractMethodVisitor
visitTupleExpression(org.codehaus.groovy.ast.expr.TupleExpression) - Method in AbstractFieldVisitor
visitTupleExpression(org.codehaus.groovy.ast.expr.TupleExpression) - Method in AbstractMethodCallExpressionVisitor
visitTupleExpression(org.codehaus.groovy.ast.expr.TupleExpression) - Method in AbstractMethodVisitor
visitUnaryMinusExpression(org.codehaus.groovy.ast.expr.UnaryMinusExpression) - Method in AbstractFieldVisitor
visitUnaryMinusExpression(org.codehaus.groovy.ast.expr.UnaryMinusExpression) - Method in AbstractMethodCallExpressionVisitor
visitUnaryMinusExpression(org.codehaus.groovy.ast.expr.UnaryMinusExpression) - Method in AbstractMethodVisitor
visitUnaryPlusExpression(org.codehaus.groovy.ast.expr.UnaryPlusExpression) - Method in AbstractFieldVisitor
visitUnaryPlusExpression(org.codehaus.groovy.ast.expr.UnaryPlusExpression) - Method in AbstractMethodCallExpressionVisitor
visitUnaryPlusExpression(org.codehaus.groovy.ast.expr.UnaryPlusExpression) - Method in AbstractMethodVisitor
visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression) - Method in AbstractFieldVisitor
visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression) - Method in AbstractMethodCallExpressionVisitor
visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression) - Method in AbstractMethodVisitor
visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression) - Method in ClassReferenceAstVisitor
visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression) - Method in FieldReferenceAstVisitor
visitVariableExpression(org.codehaus.groovy.ast.expr.VariableExpression) - Method in ReferenceCollector
visitWhileLoop(org.codehaus.groovy.ast.stmt.WhileStatement) - Method in AbstractFieldVisitor
visitWhileLoop(org.codehaus.groovy.ast.stmt.WhileStatement) - Method in AbstractMethodCallExpressionVisitor
visitWhileLoop(org.codehaus.groovy.ast.stmt.WhileStatement) - Method in AbstractMethodVisitor
VolatileArrayFieldRule - Class in org.codenarc.rule.concurrency
Volatile array fields are unsafe because the contents of the array are not treated as volatile.
VolatileArrayFieldRule() - Constructor in VolatileArrayFieldRule
VolatileLongOrDoubleFieldRule - Class in org.codenarc.rule.concurrency
This rule reports long or double fields which are declared as volatile.
VolatileLongOrDoubleFieldRule() - Constructor in VolatileLongOrDoubleFieldRule

W

WaitOutsideOfWhileLoopRule - Class in org.codenarc.rule.concurrency
Checks for calls to wait() that are not within a while loop.
WaitOutsideOfWhileLoopRule() - Constructor in WaitOutsideOfWhileLoopRule
WhileStatementBracesRule - Class in org.codenarc.rule.braces
Rule that checks that while statements use braces rather than a single statement.
WhileStatementBracesRule() - Constructor in WhileStatementBracesRule
WHITESPACE - Field in CommentsUtil
WildcardPattern - Class in org.codenarc.util
Represents a string pattern that may optionally include wildcards ('*', '**' or '?')
WildcardPattern(java.lang.String, boolean) - Constructor in WildcardPattern
Construct a new WildcardPattern instance on a single pattern or a comma-separated list of patterns.
writeAsSingleLine - Property in GitlabCodeQualityReportWriter
writeAsSingleLine - Property in JsonReportWriter
writeFileViolations(java.io.Writer, org.codenarc.results.FileResults) - Method in CompactTextReportWriter
writeFileViolations(java.io.Writer, org.codenarc.results.FileResults) - Method in TextReportWriter
writeFooter(java.io.Writer) - Method in CompactTextReportWriter
writeFooter(java.io.Writer) - Method in TextReportWriter
writePackageViolations(java.io.Writer, org.codenarc.results.Results) - Method in TextReportWriter
writeReport(java.io.Writer, org.codenarc.AnalysisContext, org.codenarc.results.Results) - Method in AbstractHtmlReportWriter
Write out a report to the specified Writer for the analysis results
writeReport(org.codenarc.AnalysisContext, org.codenarc.results.Results) - Method in AbstractReportWriter
Write out a report for the specified analysis results
writeReport(java.io.Writer, org.codenarc.AnalysisContext, org.codenarc.results.Results) - Method in BaselineXmlReportWriter
writeReport(java.io.Writer, org.codenarc.AnalysisContext, org.codenarc.results.Results) - Method in GitlabCodeQualityReportWriter
writeReport(java.io.Writer, org.codenarc.AnalysisContext, org.codenarc.results.Results) - Method in JsonReportWriter
writeReport(org.codenarc.AnalysisContext, org.codenarc.results.Results) - Method in ReportWriter
Write out a report for the specified analysis results
writeReport(java.io.Writer, org.codenarc.AnalysisContext, org.codenarc.results.Results) - Method in TextReportWriter
writeReport(java.io.Writer, org.codenarc.AnalysisContext, org.codenarc.results.Results) - Method in XmlReportWriter
writeSummary(java.io.Writer, org.codenarc.results.Results) - Method in CompactTextReportWriter
writeSummary(java.io.Writer, org.codenarc.results.Results) - Method in TextReportWriter
writeTitle(java.io.Writer) - Method in CompactTextReportWriter
writeTitle(java.io.Writer) - Method in TextReportWriter
writeToStandardOut - Property in AbstractReportWriter
writeViolation(java.io.Writer, org.codenarc.rule.Violation, java.lang.String) - Method in TextReportWriter

X

XmlFileRuleSet - Class in org.codenarc.ruleset
A RuleSet implementation that parses Rule definitions from XML read from a file.
XmlFileRuleSet(java.lang.String) - Constructor in XmlFileRuleSet
Construct a new instance on the specified RuleSet file path
XmlReaderRuleSet - Class in org.codenarc.ruleset
A RuleSet implementation that parses Rule definitions from XML read from a Reader.
XmlReaderRuleSet(java.io.Reader) - Constructor in XmlReaderRuleSet
Construct a new instance on the specified Reader
XmlReportUtil - Class in org.codenarc.report
Static utility methods for XML Report Writers
XmlReportUtil() - Constructor in XmlReportUtil
XmlReportWriter - Class in org.codenarc.report
ReportWriter that generates an XML report.
XmlReportWriter() - Constructor in XmlReportWriter

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _