Uses of Annotation Interface
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.
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 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 classResponsible 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 TypeClassDescriptionclassRestricts using Unicode escapes (such as \u221e).classChecks for restricted tokens beneath other tokens.classChecks that the outer type name and the file name match.classDetects uncommentedmainmethods. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks.coding
Classes in com.puppycrawl.tools.checkstyle.checks.coding with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclassAbstract class for checking that an overriding method with no parameters invokes the super method.classChecks that classes and records which define a covariantequals()method also override methodequals(Object).classChecks that the parts of a class, record, or interface declaration appear in the order suggested by the Code Conventions for the Java Programming Language.classChecks that any combination of String literals is on the left side of anequals()comparison.classChecks that classes that either overrideequals()orhashCode()also overrides the other.classChecks that local variables that never have their values changed are declared final.classChecks that a local variable or a parameter does not shadow a field that is defined in the same class.classChecks for illegal instantiations where a factory method is preferred.final classChecks that particular classes or interfaces are never used.final classChecks that for loop control variables are not modified inside the for block.classChecks for multiple occurrences of the same string literal within a single file.final classRestricts nestedforblocks to a specified depth.final classRestricts nested if-else blocks to a specified depth.final classRestricts nested try-catch-finally blocks to a specified depth.final classChecks that there is only one statement per line.final classEnsures that a class has a package declaration, and (optionally) whether the package name matches the directory name for the source file.final classDisallows assignment of parameters.classChecks 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 classRestricts the number of return statements in methods, constructors and lambda expressions.classChecks if unnecessary parentheses are used in a statement or expression.classEnsures that catch parameters that are not used are declared as an unnamed variable.classEnsures that lambda parameters that are not used are declared as an unnamed variable.classChecks 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 TypeClassDescriptionclassEnsures that identifies classes that can be effectively declared as final are explicitly marked as final.classChecks 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 classEnsures 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.classChecks visibility of class members. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks.header
Classes in com.puppycrawl.tools.checkstyle.checks.header with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclassChecks the header of a source file against multiple header files that contain a pattern for each line of the source header. -
Uses of FileStatefulCheck in com.puppycrawl.tools.checkstyle.checks.imports
Classes in com.puppycrawl.tools.checkstyle.checks.imports with annotations of type FileStatefulCheckModifier and TypeClassDescriptionclassChecks that the groups of import declarations appear in the order specified by the user.classControls what can be imported in each package and file.classChecks the ordering/grouping of imports.classChecks for redundant import statements.classChecks 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 TypeClassDescriptionclassChecks 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 TypeClassDescriptionclassBase class for coupling calculation.final classRestricts the number of boolean operators (&&,||,&,|and^) in an expression.classChecks cyclomatic complexity against a specified limit.classDetermines complexity of methods, classes and files by counting the Non Commenting Source Statements (NCSS).final classChecks 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 TypeClassDescriptionclassChecks 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 classRestricts the number of executable statements to a specified limit.final classChecks the number of methods declared in each type declaration by access modifier or total count.classChecks 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 TypeClassDescriptionclassChecks 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 TypeClassDescriptionclassClass 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 TypeClassDescriptionclassClass for scraping class javadoc and all property setter javadocs from the given checkstyle module.