Skip to content

checkstyle rules in Sudsy

Javaversion google_checks.xml and sun_checks.xml (no differential runner yet: the rules are tested on fixtures under tests/rules/java)88% of its findings also reported37 covered24 partial65 planned0 deferred

Every rule and setting of checkstyle in the parity catalog, with the Sudsy equivalent. The lint share is the part of checkstyle’s default set (in scope) whose findings Sudsy also reports on real-world code, with the preset that mirrors it. Where the tool has a page for an entry, the id links to it.

Status: covered; partial (the note says what differs); not yet (planned); deferred; not planned; SDK (a .NET SDK diagnostic does it).

Id Sudsy Status Note
EmptyCatchBlock no-empty-catch covered
StringLiteralEquality string-literal-equality covered
SimplifyBooleanExpression boolean-literal-comparison partial Only a comparison with a boolean literal, not the double negation or the conditional forms.
EqualsHashCode equals-hash-code partial Only equals without hashCode, not the reverse.
MissingSwitchDefault missing-switch-default covered
EmptyStatement empty-statement partial Only the body of an if or a loop.
UpperEll upper-ell covered
ArrayTypeStyle array-type-style covered
ArrayBracketNoWhitespace array-bracket-space partial Only the { of an array creation right after the ].
AvoidStarImport no-wildcard-imports partial No allow-list option.
NeedBraces curly partial No option for single-line bodies.
ModifierOrder modifier-order partial Annotations are not checked against the modifiers.
UnusedImports unused-import partial Names in Javadoc count as used; no option to turn that off.
PackageName naming-convention covered
TypeName naming-convention covered
MethodName naming-convention partial Google’s camel segments and @Test method names are patterns of the options methods and test_methods.
MemberName naming-convention covered
NonConstantFieldName naming-convention partial The member pattern of Google’s name rule.
IllegalTokenText illegal-escape-text partial Only the special-escape message of the Google config.
AvoidEscapedUnicodeCharacters avoid-unicode-escape partial Printable-escape rule with control characters and tail comments allowed; no options.
ConstantName naming-convention partial A static final field or an interface field; no exceptions list.
ParameterName naming-convention covered
CatchParameterName naming-convention covered
LocalVariableName naming-convention partial No separate pattern for for variables.
LineLength max-line-length partial No ignore pattern for package and import lines.
NewlineAtEndOfFile option java.format.final_newline covered
FileTabCharacter option java.format.indent_style covered
Indentation formatter covered
EmptyLineSeparator formatter covered
LeftCurly formatter covered
RightCurly formatter covered
EmptyBlock - not yet
WhitespaceAround formatter covered
WhitespaceAfter formatter covered
NoWhitespaceBefore formatter covered
NoWhitespaceAfter formatter covered
OperatorWrap formatter covered
SeparatorWrap formatter covered
GenericWhitespace formatter covered
MethodParamPad formatter covered
ParenPad formatter covered
EmptyForIteratorPad formatter covered
TypecastParenPad formatter covered
OneStatementPerLine formatter covered
NoLineWrap formatter covered
CustomImportOrder formatter partial The order is google-java-format’s (static first, then ASCII), not configurable.
ImportOrder formatter partial The order is google-java-format’s (static first, then ASCII), not configurable.
RedundantImport - not yet
IllegalImport - not yet
MultipleVariableDeclarations - not yet
OverloadMethodsDeclarationOrder - not yet
VariableDeclarationUsageDistance - not yet
AbbreviationAsWordInName abbreviation-in-name partial Only more than one capital in a row; no allowed length or ignore options.
LambdaParameterName - not yet
ClassTypeParameterName - not yet
MethodTypeParameterName - not yet
InterfaceTypeParameterName - not yet
RecordTypeParameterName - not yet
PatternVariableName - not yet
RecordComponentName - not yet
StaticVariableName - not yet
LocalFinalVariableName - not yet
AnnotationLocation - not yet
AnnotationUseStyle - not yet
MissingOverride - not yet
MissingDeprecated - not yet
FallThrough - not yet
InnerAssignment - not yet
IllegalCatch - not yet
IllegalThrows - not yet
IllegalInstantiation - not yet
ParameterAssignment parameter-assignment covered
ReturnCount - not yet
NestedIfDepth - not yet
NestedTryDepth - not yet
CyclomaticComplexity - not yet
BooleanExpressionComplexity - not yet
ExplicitInitialization - not yet
MagicNumber - not yet
ParameterNumber - not yet
MethodLength - not yet
FileLength - not yet
RedundantModifier - not yet
FinalClass - not yet
HideUtilityClassConstructor - not yet
InterfaceIsType - not yet
VisibilityModifier - not yet
FinalParameters - not yet
FinalLocalVariable - not yet
DesignForExtension - not yet
TodoComment todo-comment partial The Google format only, no option.
TodoFormat todo-comment partial The check id of the Google TodoComment instance.
ArrayTrailingComma - not yet
AvoidNestedBlocks - not yet
AvoidInlineConditionals - not yet
CovariantEquals - not yet
NoFinalizer - not yet
NoClone - not yet
OneTopLevelClass - not yet
OuterTypeFilename - not yet
PackageDeclaration - not yet
UnnecessaryParentheses - not yet
UnnecessarySemicolonAfterOuterTypeDeclaration - not yet
UnnecessarySemicolonInEnumeration - not yet
UnnecessarySemicolonInTryWithResources - not yet
UnusedLocalVariable unused-local-variable covered
JavadocMethod - not yet
JavadocType - not yet
JavadocVariable - not yet
JavadocStyle - not yet
JavadocParagraph doc-paragraph partial <p> and empty-line placement; not allowNewlineParagraph.
JavadocTagContinuationIndentation doc-tag-indent covered
JavadocMissingLeadingAsterisk doc-asterisk covered
JavadocPackage - not yet
SummaryJavadoc doc-summary partial Period and forbidden fragments; the summary is read from the lines of the comment, not from parsed HTML.
SingleLineJavadoc - not yet
AtclauseOrder - not yet
NonEmptyAtclauseDescription - not yet
InvalidJavadocPosition - not yet
MissingJavadocMethod missing-doc-comment partial Only methods and constructors, no minimum line count.
MissingJavadocType missing-doc-comment partial Only types, no scope option.
MissingJavadocPackage - not yet
TrailingComment - not planned a style a comment can break
CommentsIndentation formatter covered
UncommentedMain - not planned project policy
Translation - not planned project resource bundles
RegexpSingleline - not planned pattern rules (plugins.patterns) do this
RegexpMultiline - not planned pattern rules (plugins.patterns) do this
RegexpHeader - not planned a license header check is project policy
SuppressWarningsHolder configuration: suppression comments covered
SuppressionFilter configuration: suppression comments and overrides covered
SuppressWithNearbyCommentFilter configuration: suppression comments covered