Uses of Annotation Type
com.puppycrawl.tools.checkstyle.FileStatefulCheck
Packages that use FileStatefulCheck
Package
Description
Contains the implementation of the Checkstyle framework.
Contains the 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.
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 Metrics 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.
Contains module metadata generation classes for checkstyle.
Contains classes for generating the Checkstyle website.
-
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle
Classes in com.puppycrawl.tools.checkstyle with annotations of type FileStatefulCheckModifier and TypeClassDescriptionfinal class
Responsible for walking an abstract syntax tree and notifying interested checks at each node. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks
Classes in com.puppycrawl.tools.checkstyle.checks with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclass
Restricts using Unicode escapes (such as \u221e).class
Checks for restricted tokens beneath other tokens.class
Checks that the outer type name and the file name match.class
Detects uncommentedmain
methods. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks.coding
Classes in com.puppycrawl.tools.checkstyle.checks.coding with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclass
Abstract class for checking that an overriding method with no parameters invokes the super method.class
Checks that classes and records which define a covariantequals()
method also override methodequals(Object)
.class
Checks that the parts of a class, record, or interface declaration appear in the order suggested by the Code Conventions for the Java Programming Language.class
Checks that any combination of String literals is on the left side of anequals()
comparison.class
Checks that classes that either overrideequals()
orhashCode()
also overrides the other.class
Checks that local variables that never have their values changed are declared final.class
Checks that a local variable or a parameter does not shadow a field that is defined in the same class.class
Checks for illegal instantiations where a factory method is preferred.final class
Checks that particular classes or interfaces are never used.final class
Checks that for loop control variables are not modified inside the for block.class
Checks for multiple occurrences of the same string literal within a single file.final class
Restricts nestedfor
blocks to a specified depth.final class
Restricts nested if-else blocks to a specified depth.final class
Restricts nested try-catch-finally blocks to a specified depth.final class
Checks that there is only one statement per line.final class
Ensures that a class has a package declaration, and (optionally) whether the package name matches the directory name for the source file.final class
Disallows assignment of parameters.class
Checks 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.final class
Restricts the number of return statements in methods, constructors and lambda expressions.class
Checks if unnecessary parentheses are used in a statement or expression.class
Ensures that catch parameters that are not used are declared as an unnamed variable.class
Ensures that lambda parameters that are not used are declared as an unnamed variable.class
Checks that a local variable is declared and/or assigned, but not used. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks.design
Classes in com.puppycrawl.tools.checkstyle.checks.design with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclass
Ensures that identifies classes that can be effectively declared as final are explicitly marked as final.class
Checks nested (internal) classes/interfaces are declared at the bottom of the primary (top-level) class after all init and static init blocks, method, constructor and field declarations.final class
Ensures that exception classes (classes with names conforming to some pattern and explicitly extending classes with names conforming to other pattern) are immutable, that is, that they have only final fields.class
Checks visibility of class members. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks.imports
Classes in com.puppycrawl.tools.checkstyle.checks.imports with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclass
Checks that the groups of import declarations appear in the order specified by the user.class
Controls what can be imported in each package and file.class
Checks the ordering/grouping of imports.class
Checks for redundant import statements.class
Checks for unused import statements. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks.indentation
Classes in com.puppycrawl.tools.checkstyle.checks.indentation with annotations of type FileStatefulCheck -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks.javadoc
Classes in com.puppycrawl.tools.checkstyle.checks.javadoc with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclass
Checks for missing Javadoc comments for a method or constructor. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks.metrics
Classes in com.puppycrawl.tools.checkstyle.checks.metrics with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclass
Base class for coupling calculation.final class
Restricts the number of boolean operators (&&
,||
,&
,|
and^
) in an expression.class
Checks cyclomatic complexity against a specified limit.class
Determines complexity of methods, classes and files by counting the Non Commenting Source Statements (NCSS).final class
Checks the NPATH complexity against a specified limit. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks.regexp
Classes in com.puppycrawl.tools.checkstyle.checks.regexp with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclass
Checks that a specified pattern exists, exists less than a set number of times, or does not exist in the file. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks.sizes
Classes in com.puppycrawl.tools.checkstyle.checks.sizes with annotations of type FileStatefulCheckModifier and TypeClassDescriptionfinal class
Restricts the number of executable statements to a specified limit.final class
Checks the number of methods declared in each type declaration by access modifier or total count.class
Checks for the number of types declared at the outer (or root) level in a file. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks.whitespace
Classes in com.puppycrawl.tools.checkstyle.checks.whitespace with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclass
Checks that the whitespace around the Generic tokens (angle brackets) "<" and ">" are correct to the typical convention. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.meta
Classes in com.puppycrawl.tools.checkstyle.meta with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclass
Class for scraping module metadata from the corresponding class' class-level javadoc. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.site
Classes in com.puppycrawl.tools.checkstyle.site with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclass
Class for scraping class javadoc and all property setter javadocs from the given checkstyle module.