Uses of Class
com.puppycrawl.tools.checkstyle.api.AutomaticBean
-
Packages that use AutomaticBean Package Description com.puppycrawl.tools.checkstyle Contains the implementation of the Checkstyle framework.com.puppycrawl.tools.checkstyle.api Contains the core API to be used to implement checks.com.puppycrawl.tools.checkstyle.checks Contains the checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.annotation Contains the Annotation checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.blocks Contains the Block checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.coding Contains the Coding checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.design Contains the Class Design checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.header File Header checks.com.puppycrawl.tools.checkstyle.checks.imports Contains the Imports checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.indentation Contains all classes required for the indentation check.com.puppycrawl.tools.checkstyle.checks.javadoc Contains the Javadoc checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.metrics Contains the Metrics checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.modifier Contains the modifier checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.naming Contains the Naming conventions checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.regexp Contains the regular expression checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.sizes Contains the Size Violations checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.whitespace Contains the Whitespace checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.filefilters Contains the before execution file filters that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.filters Contains the filters that are bundled with the main distribution. -
-
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle Modifier and Type Class Description classCheckerThis class provides the functionality to check a set of files.classDefaultLoggerSimple plain logger for text output.classTreeWalkerResponsible for walking an abstract syntax tree and notifying interested checks at each each node.classXMLLoggerSimple XML logger.classXpathFileGeneratorAstFilterCatchesTreeWalkerAuditEventand generates corresponding xpath query.classXpathFileGeneratorAuditListenerGenerates suppressions.xml file, based on violations occurred. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.api
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.api Modifier and Type Class Description classAbstractCheckThe base class for checks.classAbstractFileSetCheckProvides common functionality for many FileSetChecks.classAbstractViolationReporterServes as an abstract base class for all modules that report inspection findings. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks Modifier and Type Class Description classArrayTypeStyleCheckChecks the style of array type definitions.classAvoidEscapedUnicodeCharactersCheckRestrict using Unicode escapes (such as \u221e).classDescendantTokenCheckChecks for restricted tokens beneath other tokens.classFinalParametersCheckCheck that parameters for methods, constructors, catch and for-each blocks are final.classNewlineAtEndOfFileCheckChecks whether files end with a line separator.classOrderedPropertiesCheckDetects if keys in properties files are in correct order.classOuterTypeFilenameCheckChecks that the outer type name and the file name match.classSuppressWarningsHolderMaintains a set of check suppressions from@SuppressWarningsannotations.classTodoCommentCheckA check forTODO:comments.classTrailingCommentCheckThe check to ensure that requires that comments be the only thing on a line.classTranslationCheckA FileSetCheck that ensures the correct translation of code by checking property files for consistency regarding their keys.classUncommentedMainCheckChecks for uncommented main() methods.classUniquePropertiesCheckChecks properties files for duplicate property keys.classUpperEllCheckChecks that long constants are defined with an upper ell. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.annotation
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.annotation Modifier and Type Class Description classAnnotationLocationCheckCheck location of annotation on language elements.classAnnotationOnSameLineCheckThe check does verifying that annotations are located on the same line with their targets.classAnnotationUseStyleCheckThis check controls the style with the usage of annotations.classMissingDeprecatedCheckVerifies that both the @Deprecated annotation is present and the @deprecated javadoc tag are present when either one is present.classMissingOverrideCheckVerifies that the @Override annotation is present when the @inheritDoc javadoc tag is present.classPackageAnnotationCheckThis check makes sure that all package annotations are in the package-info.java file.classSuppressWarningsCheckThis check allows you to specify what warnings that @SuppressWarnings is not allowed to suppress. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.blocks
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.blocks Modifier and Type Class Description classAvoidNestedBlocksCheckFinds nested blocks, i.e.classEmptyBlockCheckChecks for empty blocks.classEmptyCatchBlockCheckChecks for empty catch blocks.classLeftCurlyCheckChecks for the placement of left curly braces ('{') for code blocks.classNeedBracesCheckChecks for braces around code blocks.classRightCurlyCheckChecks the placement of right curly braces ('}') for if-else, try-catch-finally blocks, while-loops, for-loops, method definitions, class definitions, constructor definitions, instance and static initialization blocks. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.coding
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.coding Modifier and Type Class Description classAbstractSuperCheckAbstract class for checking that an overriding method with no parameters invokes the super method.classArrayTrailingCommaCheckChecks that array initialization contains a trailing comma.classAvoidInlineConditionalsCheckDetects inline conditionals.classCovariantEqualsCheckChecks that classes which define a covariantequals()method also override methodequals(Object).classDeclarationOrderCheckChecks the order in which parts of the class or interface declaration are defined.classDefaultComesLastCheckCheck that thedefaultis after all the cases in aswitchstatement.classEmptyStatementCheckDetects empty statements (standalone";"semicolon).classEqualsAvoidNullCheckChecks that any combination of String literals is on the left side of anequals()comparison.classEqualsHashCodeCheckChecks that classes that either overrideequals()orhashCode()also overrides the other.classExplicitInitializationCheckChecks if any class or object member is explicitly initialized to default for its type value (nullfor object references, zero for numeric types andcharandfalseforboolean.classFallThroughCheckChecks for fall-through inswitchstatements.classFinalLocalVariableCheckChecks that local variables that never have their values changed are declared final.classHiddenFieldCheckChecks that a local variable or a parameter does not shadow a field that is defined in the same class.classIllegalCatchCheckChecks that certain exception types do not appear in acatchstatement.classIllegalInstantiationCheckChecks for illegal instantiations where a factory method is preferred.classIllegalThrowsCheckThis check can be used to ensure that types are not declared to be thrown.classIllegalTokenCheckChecks for illegal tokens.classIllegalTokenTextCheckChecks specified tokens text for matching an illegal pattern fromformatproperty.classIllegalTypeCheckChecks that particular classes or interfaces are never used.classInnerAssignmentCheckChecks for assignments in subexpressions, such as inString s = Integer.toString(i = 2);.classMagicNumberCheckChecks that there are no "magic numbers" where a magic number is a numeric literal that is not defined as a constant.classMissingCtorCheckChecks that classes (except abstract ones) define a constructor and don't rely on the default one.classMissingSwitchDefaultCheckChecks that switch statement has a "default" clause.classModifiedControlVariableCheckCheck for ensuring that for loop control variables are not modified inside the for block.classMultipleStringLiteralsCheckChecks for multiple occurrences of the same string literal within a single file.classMultipleVariableDeclarationsCheckChecks that each variable declaration is in its own statement and on its own line.classNestedForDepthCheckRestricts nestedforblocks to a specified depth (default = 1).classNestedIfDepthCheckRestricts nested if-else blocks to a specified depth (default = 1).classNestedTryDepthCheckRestricts nested try blocks to a specified depth (default = 1).classNoCloneCheckChecks that the clone method is not overridden from the Object class.classNoFinalizerCheckVerifies there are nofinalize()methods defined in a class.classOneStatementPerLineCheckChecks that there is only one statement per line.classOverloadMethodsDeclarationOrderCheckChecks that overload methods are grouped together.classPackageDeclarationCheckEnsures that a class has a package declaration, and (optionally) whether the package name matches the directory name for the source file.classParameterAssignmentCheckDisallows assignment of parameters.classRequireThisCheckChecks that references to instance variables and methods of the present object are explicitly of the form "this.varName" or "this.methodName(args)" and that those references don't rely on the default behavior when "this." is absent.classReturnCountCheckRestricts the number of return statements in methods, constructors and lambda expressions (2 by default).classSimplifyBooleanExpressionCheckChecks for over-complicated boolean expressions.classSimplifyBooleanReturnCheckChecks for over-complicated boolean return statements.classStringLiteralEqualityCheckChecks that string literals are not used with==or!=.classSuperCloneCheckChecks that an overridingclone()method invokessuper.clone().classSuperFinalizeCheckChecks that an overridingfinalize()method invokessuper.finalize().classUnnecessaryParenthesesCheckChecks if unnecessary parentheses are used in a statement or expression.classUnnecessarySemicolonAfterTypeMemberDeclarationCheckChecks if unnecessary semicolon is used after type member declaration.classUnnecessarySemicolonInEnumerationCheckChecks if unnecessary semicolon is in enum definitions.classUnnecessarySemicolonInTryWithResourcesCheckChecks if unnecessary semicolon is used in last resource declaration.classVariableDeclarationUsageDistanceCheckChecks the distance between declaration of variable and its first usage. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.design
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.design Modifier and Type Class Description classDesignForExtensionCheckThe check finds classes that are designed for extension (subclass creation).classFinalClassCheckChecks that a class which has only private constructors is declared as final.classHideUtilityClassConstructorCheckMakes sure that utility classes (classes that contain only static methods or fields in their API) do not have a public constructor.classInnerTypeLastCheckCheck nested (inner) classes/interfaces are declared at the bottom of the class after all method and field declarations.classInterfaceIsTypeCheckImplements Joshua Bloch, Effective Java, Item 17 - Use Interfaces only to define types.classMutableExceptionCheckEnsures that exception classes (classes with names conforming to some regular expression and explicitly extending classes with names conforming to other regular expression) are immutable, that is, that they have only final fields.classOneTopLevelClassCheckChecks that each top-level class, interface or enum resides in a source file of its own.classThrowsCountCheckRestricts throws statements to a specified count (4 by default).classVisibilityModifierCheckChecks visibility of class members. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.header
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.header Modifier and Type Class Description classAbstractHeaderCheckAbstract super class for header checks.classHeaderCheckChecks that a source file begins with a specified header.classRegexpHeaderCheckChecks the header of a source file against a header that contains a regular expression for each line of the source header. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.imports
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.imports Modifier and Type Class Description classAvoidStarImportCheckChecks that there are no import statements that use the*notation.classAvoidStaticImportCheckChecks that there are no static import statements.classCustomImportOrderCheckChecks that the groups of import declarations appear in the order specified by the user.classIllegalImportCheckChecks for imports from a set of illegal packages.classImportControlCheckControls what can be imported in each package and file.classImportOrderCheckChecks the ordering/grouping of imports.classRedundantImportCheckChecks for redundant import statements.classUnusedImportsCheckChecks for unused import statements. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.indentation
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.indentation Modifier and Type Class Description classCommentsIndentationCheckControls the indentation between comments and surrounding code.classIndentationCheckChecks correct indentation of Java code. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.javadoc
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.javadoc Modifier and Type Class Description classAbstractJavadocCheckBase class for Checks that process Javadoc comments.classAtclauseOrderCheckChecks the order of javadoc block-tags or javadoc tags.classInvalidJavadocPositionCheckChecks that Javadocs are located at the correct position.classJavadocBlockTagLocationCheckChecks that a javadoc block tag appears only at the beginning of a line, ignoring leading asterisks and white space.classJavadocMethodCheckChecks the Javadoc of a method or constructor.classJavadocPackageCheckChecks that all packages have a package documentation.classJavadocParagraphCheckChecks that: There is one blank line between each of two paragraphs and one blank line before the at-clauses block if it is present. Each paragraph but the first has <p> immediately before the first word, with no space after.classJavadocStyleCheckCustom Checkstyle Check to validate Javadoc.classJavadocTagContinuationIndentationCheckChecks the indentation of the continuation lines in at-clauses.classJavadocTypeCheckChecks the Javadoc of a type.classJavadocVariableCheckChecks that a variable has Javadoc comment.classMissingJavadocMethodCheckChecks for missing Javadoc comments for a method or constructor.classMissingJavadocPackageCheckChecks for missing Javadoc comments in package-info.java files.classMissingJavadocTypeCheckChecks for missing Javadoc comments for class, enum, interface, and annotation interface definitions.classNonEmptyAtclauseDescriptionCheckChecks that the at-clause tag is followed by description .classSingleLineJavadocCheckChecks that a JavaDoc block can fit on a single line and doesn't contain at-clauses.classSummaryJavadocCheckChecks that Javadoc summary sentence does not contain phrases that are not recommended to use.classWriteTagCheckOutputs a JavaDoc tag as information. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.metrics
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.metrics Modifier and Type Class Description classAbstractClassCouplingCheckBase class for coupling calculation.classBooleanExpressionComplexityCheckRestrict the number of&&,||,&,|and^in an expression.classClassDataAbstractionCouplingCheckThis metric measures the number of instantiations of other classes within the given class.classClassFanOutComplexityCheckThe number of other classes a given class relies on.classCyclomaticComplexityCheckChecks cyclomatic complexity against a specified limit.classJavaNCSSCheckDetermines complexity of methods, classes and files by counting the Non Commenting Source Statements (NCSS).classNPathComplexityCheckChecks the NPATH complexity against a specified limit. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.modifier
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.modifier Modifier and Type Class Description classClassMemberImpliedModifierCheckChecks for implicit modifiers on nested types in classes.classInterfaceMemberImpliedModifierCheckChecks for implicit modifiers on interface members and nested types.classModifierOrderCheckChecks that the order of modifiers conforms to the suggestions in the Java Language specification, § 8.1.1, 8.3.1, 8.4.3 and 9.4.classRedundantModifierCheckChecks for redundant modifiers. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.naming
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.naming Modifier and Type Class Description classAbbreviationAsWordInNameCheckThe Check validate abbreviations(consecutive capital letters) length in identifier name, it also allows to enforce camel case naming.classAbstractAccessControlNameCheckAbstract class for checking a class member (field/method)'s name conforms to a format specified by the format property.classAbstractClassNameCheckEnsures that the names of abstract classes conforming to some regular expression and check thatabstractmodifier exists.classAbstractNameCheckAbstract class for checking that names conform to a specified format.classCatchParameterNameCheckChecks thatcatchparameter names conform to a format specified by the format property.classClassTypeParameterNameCheckChecks that class type parameter names conform to a format specified by the format property.classConstantNameCheckChecks that constant names conform to a format specified by the format property.classInterfaceTypeParameterNameCheckChecks that interface type parameter names conform to a format specified by the format property.classLambdaParameterNameCheckCheck to verify lambda parameter names.classLocalFinalVariableNameCheckChecks that local final variable names conform to a format specified by the format property.classLocalVariableNameCheckChecks that local, non-finalvariable names conform to a format specified by the format property.classMemberNameCheckChecks that instance variable names conform to a format specified by the format property.classMethodNameCheckChecks that method names conform to a format specified by the format property.classMethodTypeParameterNameCheckChecks that method type parameter names conform to a format specified by the format property.classPackageNameCheckChecks that package names conform to a format specified by the format property.classParameterNameCheckChecks that method parameter names conform to a format specified by the format property.classStaticVariableNameCheckChecks thatstatic, non-finalvariable names conform to a format specified by the format property.classTypeNameCheckChecks that type names for classes, interfaces, enums, and annotations conform to a format specified by the format property. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.regexp
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.regexp Modifier and Type Class Description classRegexpCheckA check that makes sure that a specified pattern exists, exists less than a set number of times, or does not exist in the file.classRegexpMultilineCheckA check for detecting that matches across multiple lines.classRegexpOnFilenameCheckImplementation of a check that looks for a file name and/or path match (or mis-match) against specified patterns.classRegexpSinglelineCheckA check for detecting single lines that match a supplied regular expression.classRegexpSinglelineJavaCheckA check for detecting single lines that match a supplied regular expression in Java files. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.sizes
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.sizes Modifier and Type Class Description classAnonInnerLengthCheckChecks for long anonymous inner classes.classExecutableStatementCountCheckRestricts the number of executable statements to a specified limit.classFileLengthCheckChecks for long source files.classLineLengthCheckChecks for long lines.classMethodCountCheckChecks the number of methods declared in each type declaration by access modifier or total count.classMethodLengthCheckChecks for long methods and constructors.classOuterTypeNumberCheckChecks for the number of types declared at the outer (or root) level in a file.classParameterNumberCheckChecks the number of parameters of a method or constructor. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.whitespace
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.checks.whitespace Modifier and Type Class Description classAbstractParenPadCheckAbstract class for checking the padding of parentheses.classEmptyForInitializerPadCheckChecks the padding of an empty for initializer; that is whether white space is required at an empty for initializer, or such white space is forbidden.classEmptyForIteratorPadCheckChecks the padding of an empty for iterator; that is whether a white space is required at an empty for iterator, or such white spaces are forbidden.classEmptyLineSeparatorCheckChecks for empty line separators after header, package, all import declarations, fields, constructors, methods, nested classes, static initializers and instance initializers.classFileTabCharacterCheckChecks that there are no tab characters ('\t') in the source code.classGenericWhitespaceCheckChecks that the whitespace around the Generic tokens (angle brackets) "<" and ">" are correct to the typical convention.classMethodParamPadCheckChecks the padding between the identifier of a method definition, constructor definition, method call, or constructor invocation; and the left parenthesis of the parameter list.classNoLineWrapCheckChecks that chosen statements are not line-wrapped.classNoWhitespaceAfterCheckChecks that there is no whitespace after a token.classNoWhitespaceBeforeCheckChecks that there is no whitespace before a token.classOperatorWrapCheckChecks the policy on how to wrap lines on operators.classParenPadCheckChecks the policy on the padding of parentheses; i.e.classSeparatorWrapCheckChecks line wrapping with separators.classSingleSpaceSeparatorCheckChecks that non-whitespace characters are separated by no more than one whitespace.classTypecastParenPadCheckChecks the policy on the padding of parentheses for typecasts.classWhitespaceAfterCheckChecks that a token is followed by whitespace, with the exception that it does not check for whitespace after the semicolon of an empty for iterator.classWhitespaceAroundCheckChecks that a token is surrounded by whitespace. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.filefilters
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.filefilters Modifier and Type Class Description classBeforeExecutionExclusionFileFilterFile filterBeforeExecutionExclusionFileFilterdecides which files should be excluded from being processed by the utility. -
Uses of AutomaticBean in com.puppycrawl.tools.checkstyle.filters
Subclasses of AutomaticBean in com.puppycrawl.tools.checkstyle.filters Modifier and Type Class Description classSeverityMatchFilterFilterSeverityMatchFilterdecides audit events according to the severity level of the event.classSuppressionCommentFilterFilterSuppressionCommentFilteruses pairs of comments to suppress audit events.classSuppressionFilterFilterSuppressionFilterrejects audit events for Check violations according to a suppressions XML document in a file.classSuppressionSingleFilterFilterSuppressionSingleFiltersuppresses audit events for Checks violations in the specified file, class, checks, message, module id, lines, and columns.classSuppressionXpathFilterFilterSuppressionXpathFilterworks as SuppressionFilter.classSuppressionXpathSingleFilterFilterSuppressionXpathSingleFiltersuppresses audit events for Checks violations in the specified file, class, checks, message, module id, and xpath.classSuppressWarningsFilterFilterSuppressWarningsFilteruses annotationSuppressWarningsto suppress audit events.classSuppressWithNearbyCommentFilterFilterSuppressWithNearbyCommentFilteruses nearby comments to suppress audit events.classSuppressWithPlainTextCommentFilterFilterSuppressWithPlainTextCommentFilteruses plain text to suppress audit events.
-