Uses of Annotation Interface
com.puppycrawl.tools.checkstyle.StatelessCheck
Packages that use StatelessCheck
Package
Description
Contains the checks that are bundled with the main distribution.
Contains the Annotation checks that are
bundled with the main distribution.
Contains the Block checks that are
bundled with the main distribution.
Contains the Coding checks that are
bundled with the main distribution.
Contains the Class Design checks that
are bundled with the main distribution.
File Header checks.
Contains the Imports checks that are
bundled with the main distribution.
Contains all classes required for the
indentation check.
Contains the Javadoc checks that are bundled with the main distribution.
Contains the modifier checks that are bundled with the main distribution.
Contains the Naming conventions checks
that are bundled with the main distribution.
Contains the regular expression checks that are bundled with the main
distribution.
Contains the Size Violations checks
that are bundled with the main distribution.
Contains the Whitespace checks that
are bundled with the main distribution.
-
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks
Classes in com.puppycrawl.tools.checkstyle.checks with annotations of type StatelessCheckModifier and TypeClassDescriptionclassChecks the style of array type definitions.classChecks that parameters for methods, constructors, catch and for-each blocks are final.classChecks whether files end with a line separator.classChecks whether file contains code.classDetects if keys in properties files are in correct order.classMaintains a set of check suppressions from@SuppressWarningsannotations.classChecks forTODO:comments.classThe check to ensure that lines with code do not end with comment.classDetects duplicated keys in properties files.classChecks that long constants are defined with an upper ell. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.annotation
Classes in com.puppycrawl.tools.checkstyle.checks.annotation with annotations of type StatelessCheckModifier and TypeClassDescriptionclassChecks location of annotation on language elements.classChecks that annotations are located on the same line with their targets.final classChecks the style of elements in annotations.final classVerifies that the annotation@Deprecatedand the Javadoc tag@deprecatedare both present when either of them is present.final classVerifies that the@Overrideannotation is present when the@inheritDocjavadoc tag is present.classChecks that all package annotations are in the package-info.java file.classAllows to specify what warnings that@SuppressWarningsis not allowed to suppress. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.blocks
Classes in com.puppycrawl.tools.checkstyle.checks.blocks with annotations of type StatelessCheckModifier and TypeClassDescriptionclassFinds nested blocks (blocks that are used freely in the code).classChecks for empty blocks.classChecks for empty catch blocks.classChecks for the placement of left curly braces ('{') for code blocks.classChecks for braces around code blocks.classChecks the placement of right curly braces ('}') for code blocks. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.coding
Classes in com.puppycrawl.tools.checkstyle.checks.coding with annotations of type StatelessCheckModifier and TypeClassDescriptionclassChecks that array initialization contains a trailing comma.classDetects double brace initialization.classDetects inline conditionals.final classChecks if call to superclass constructor without arguments is present.classChecks that all constructors are grouped together.classCheck that thedefaultis after all the cases in aswitchstatement.classDetects empty statements (standalone";"semicolon).classChecks if any class or object member is explicitly initialized to default for its type value (nullfor object references, zero for numeric types andcharandfalseforboolean.classChecks for fall-through inswitchstatements.final classChecks that certain exception types do not appear in acatchstatement.final classChecks that specified types are not declared to be thrown.classChecks for illegal tokens.classChecks specified tokens text for matching an illegal pattern.classChecks for assignments in subexpressions, such as inString s = Integer.toString(i = 2);.classChecks that there are no "magic numbers" where a magic number is a numeric literal that is not defined as a constant.classEvaluates Xpath query and report violation on all matching AST nodes.classChecks that classes (except abstract ones) define a constructor and don't rely on the default one.classChecks that a given switch statement or expression that use a reference type in its selector expression has anullcase label.classChecks that switch statement has adefaultclause.classChecks that each variable declaration is in its own statement and on its own line.classChecks that array initialization do not contain a trailing comma.classChecks that the clone method is not overridden from the Object class.classChecks that enum definition does not contain a trailing comma.classChecks that there is no methodfinalizewith zero parameters.classChecks that overloaded methods are grouped together.classChecks for assignment of pattern variables.classChecks for over-complicated boolean expressions.classChecks for over-complicated boolean return or yield statements.classChecks that string literals are not used with==or!=.classChecks that an overridingclone()method invokessuper.clone().classChecks that an overridingfinalize()method invokessuper.finalize().classChecks for redundant null checks with the instanceof operator.final classChecks if unnecessary semicolon is used after type declaration.final classChecks if unnecessary semicolon is used after type member declaration.final classChecks if unnecessary semicolon is in enum definitions.final classChecks if unnecessary semicolon is used in last resource declaration.classChecks the distance between declaration of variable and its first usage.classEnsures thatwhenis used instead of a singleifstatement inside a case block. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.design
Classes in com.puppycrawl.tools.checkstyle.checks.design with annotations of type StatelessCheckModifier and TypeClassDescriptionclassChecks that classes are designed for extension (subclass creation).classMakes sure that utility classes (classes that contain only static methods or fields in their API) do not have a public constructor.final classImplements Joshua Bloch, Effective Java, Item 17 - Use Interfaces only to define types.classChecks that each top-level class, interface, enum or annotation resides in a source file of its own.classChecks that sealed classes and interfaces have a permits list.final classRestricts throws statements to a specified count. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.header
Classes in com.puppycrawl.tools.checkstyle.checks.header with annotations of type StatelessCheckModifier and TypeClassDescriptionclassChecks that a source file begins with a specified header.classChecks the header of a source file against a header that contains a pattern for each line of the source header. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.imports
Classes in com.puppycrawl.tools.checkstyle.checks.imports with annotations of type StatelessCheckModifier and TypeClassDescriptionclassChecks that there are no import statements that use the*notation.classChecks that there are no static import statements.classChecks for imports from a set of illegal packages. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.indentation
Classes in com.puppycrawl.tools.checkstyle.checks.indentation with annotations of type StatelessCheckModifier and TypeClassDescriptionclassControls the indentation between comments and surrounding code. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.javadoc
Classes in com.puppycrawl.tools.checkstyle.checks.javadoc with annotations of type StatelessCheckModifier and TypeClassDescriptionclassChecks the order of javadoc block-tags or javadoc tags.classChecks that Javadocs are located at the correct position.classChecks that a javadoc block tag appears only at the beginning of a line, ignoring leading asterisks and white space.classChecks that the Javadoc content begins from the same position for all Javadoc comments in the project.classChecks the Javadoc of a method or constructor.classChecks if the javadoc has leading asterisks on each line.classChecks that there is at least one whitespace after the leading asterisk.classChecks the Javadoc paragraph.classValidates Javadoc comments to help ensure they are well formed.classChecks the indentation of the continuation lines in block tags.classChecks the Javadoc comments for type definitions.classChecks that a variable has a Javadoc comment.classChecks for missing package definition Javadoc comments in package-info.java files.classChecks for missing Javadoc comments for class, enum, interface, and annotation interface definitions.classChecks that the block tag is followed by description.classChecks that one blank line before the block tag if it is present in Javadoc.classChecks that a Javadoc block can fit in a single-line and doesn't contain block tags.classChecks that Javadoc summary sentence does not contain phrases that are not recommended to use.classRequires user defined Javadoc tag to be present in Javadoc comment with defined format. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.modifier
Classes in com.puppycrawl.tools.checkstyle.checks.modifier with annotations of type StatelessCheckModifier and TypeClassDescriptionclassChecks for implicit modifiers on nested types in classes and records.classChecks for implicit modifiers on interface members and nested types.classChecks 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.classChecks for redundant modifiers. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.naming
Classes in com.puppycrawl.tools.checkstyle.checks.naming with annotations of type StatelessCheckModifier and TypeClassDescriptionclassValidates abbreviations (consecutive capital letters) length in identifier name, it also allows to enforce camel case naming.final classEnsures that the names of abstract classes conforming to some pattern and check thatabstractmodifier exists.classAbstract class for checking that names conform to a specified format.classChecks identifiers against a regular expression pattern to detect illegal names.classChecks that package names conform to a specified pattern. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.regexp
Classes in com.puppycrawl.tools.checkstyle.checks.regexp with annotations of type StatelessCheckModifier and TypeClassDescriptionclassChecks that a specified pattern matches across multiple lines in any file type.classChecks that a specified pattern matches based on file and/or folder path.classChecks that a specified pattern matches a single-line in any file type.classChecks that a specified pattern matches a single-line in Java files. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.sizes
Classes in com.puppycrawl.tools.checkstyle.checks.sizes with annotations of type StatelessCheckModifier and TypeClassDescriptionclassChecks for long anonymous inner classes.classChecks for long source files.classChecks lambda body length.classChecks for long lines.classChecks for long methods and constructors.classChecks the number of parameters of a method or constructor.classChecks the number of record components in the header of a record definition. -
Uses of StatelessCheck in com.puppycrawl.tools.checkstyle.checks.whitespace
Classes in com.puppycrawl.tools.checkstyle.checks.whitespace with annotations of type StatelessCheckModifier and TypeClassDescriptionclassAbstract class for checking the padding of parentheses.classChecks the padding of an empty for initializer; that is whether a white space is required at an empty for initializer, or such white space is forbidden.classChecks the padding of an empty for iterator; that is whether a white space is required at an empty for iterator, or such white space is forbidden.classChecks for empty line separators before package, all import declarations, fields, constructors, methods, nested classes, static initializers and instance initializers.classChecks that there are no tab characters ('\t') in the source code.classChecks the padding between the identifier of a method definition, constructor definition, method call, constructor invocation, record, or record pattern; and the left parenthesis of the parameter list.classChecks that chosen statements are not line-wrapped.classChecks that there is no whitespace after a token.classChecks that there is no whitespace before the colon in a switch block.classChecks that there is no whitespace before a token.classChecks the policy on how to wrap lines on operators.classChecks line wrapping with separators.classChecks that non-whitespace characters are separated by no more than one whitespace.classChecks 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.classChecks that a token is surrounded by whitespace.