Skip to content

Update dependency checkstyle to v10 #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Mar 23, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
checkstyle (source) 8.45.1 -> 10.23.1 age adoption passing confidence

Release Notes

checkstyle/checkstyle (checkstyle)

v10.23.1

Compare Source

v10.23.0

Checkstyle 10.23.0 - https://checkstyle.org/releasenotes.html#Release\_10.23.0

New:

#​9745 - JavadocMethod: new property 'allowInlineReturn' to support for Javadoc return tag as inline

Bug fixes:

#​14697 - False negative in UnusedImportCheck

Other Changes:
SuppressionSingleFilterExamplesTest methods should use: `verifyFilterWithInlineConfigParser`
XMLLoggerTest.java to use verifyWithInlineConfigParserAndXmlLogger
update JavadocTokenTypes.java to new format of AST print
use new nio jdk api instead of all api
CircleCI is failing on xwiki validation.

v10.22.0

Checkstyle 10.22.0 - https://checkstyle.org/releasenotes.html#Release\_10.22.0

Breaking backward compatibility:

#​9280 - JavadocVariable: new property 'accessModifiers' as substitution of 'scope' and 'excludeScope'
#​15499 - Change default or IllegalIdentifierName

Bug fixes:

#​16641 - FileContents.getJavadocBefore(): Comments should not be skipped if it is not alone in line
#​16385 - JavadocTagContinuationIndentation Ignore indentation check when HTML tag break line
#​16628 - use SLL prediction mode for fast javadoc parsing to improve performance
#​43 - JavadocMethod: Javadoc Not Detected Above Multiline Comments
#​12817 - Incorrect Indentation errors for expression switches with google_checks.xml
#​6637 - SuppressWarningsHolder aliasList members don't act like aliases
#​13043 - Make references optional for link and linkplain tags
#​16005 - Parse errors if ``@see spans multiple lines
#​14446 - Parse error when Javadoc contains @snippet with code example that uses Java annotation

Other Changes:
update JavadocTokenTypes.java to new format of AST print
Broken Link - Javadoc OpenJDK 8 Report in website, 404 Error
Github generate site fails to generate links with anchors.
Enforce file size on Java inputs
Badges in the README are missing
Fix existing cases of `getFileContents()` usage
Cover pitest survivals with tests
doc: Clarified the description of SummaryJavadoc check
align xmx args
There is nothing in few column in Active tool
Resolve Pitest Suppression in Pitest-Javadoc Profile
Define violation messages for all violations
SarifLoggerTest.java to use verifyWithInlineConfigParserAndLogger
Create integration tests in CI to alarm on breaking compatibility
improve logging
Reminder bot for issues
check-performance-regression workflow does not check Javadoc grammar performance
Update RegexpHeaderCheckTest to use verifyWithInlineConfigParser method
Links for examples of CLI page
Copy to clipboard image button for all sources
Static html for syntax highlight in web site
Update all non java Inputs of SuppressWithNearbyTextFilter to have txt extension
test execution is failing on non EN locales
Update HeaderCheckTest to use verifyWithInlineConfigParser method
Nothing in remark table in additional checks
Use bom artifact for junit version management

v10.21.4

Checkstyle 10.21.4 - https://checkstyle.org/releasenotes.html#Release\_10.21.4

Bug fixes:

#​15161 - AnnotationOnSameLine: FalseNegative when the annotation is on the same line of the modifer of the target class
#​16081 - PARAMETER_DEF in FinalLocalVariable doesn't seem to work in interfaces
#​16165 - Regression: CyclomaticComplexity.switchBlockAsSingleDecisionPoint does not work properly anymore (10.21.1)

Other Changes:
update JavadocTokenTypes.java to new format of AST print
Resolve Pitest Suppression in Pitest-Javadoc Profile
Define violation messages for all violations
Improve documentation - how to add usage of `var` to check `IllegalType`?
Enforce file size on Java inputs
Strange echo failure for static message in github action execution
Remove '//ok' comments from Input files
Cover pitest survivals with tests

v10.21.3

Checkstyle 10.21.3 - https://checkstyle.org/releasenotes.html#Release\_10.21.3

Bug fixes:

#​16127 - The SarifLogger creates invalid JSON on Windows with unescaped paths
#​14787 - False Negative of ClassFanOutCheck with "new" Keyword
#​15683 - JavadocMethod: false positive on compact constructors for nested record classes
#​15967 - yield fails Indentation check in switch expressions

Other Changes:
Remove '//ok' comments from Input files
Clarification: no violation for preceding whitespaces for paragraph tag content
Cover pitest survivals with tests
Provide examples of commands and examples of output for most CLI parameters.
Link redirection is not working for VariableDeclarationUsageDistance
Define violation messages for all violations
update JavadocTokenTypes.java to new format of AST print
Resolve Pitest Suppression in Pitest-Javadoc Profile
AvoidSynchronizedStatement reported usage of synchronized
Enforce file size on Java inputs
Enable examples tests
Update doc for MissingSwitchDefault
Inprove website rendering
UI Overlap Issue in Checkstyle Documentation Sidebar
Source code syntax highlights in web pages
put validation for "(default)" in Inputs
Add support of filtered violation messages to BDD Inputs
Expand XPath IT Regression Testing
Workflow `regression-report.yml` should support of config bundles with extra configuration files (Header check)
FileTabCharacter: update doc to mention that only first violation is reported for default configuration

v10.21.2

Checkstyle 10.21.2 - https://checkstyle.org/releasenotes.html#Release\_10.21.2

Bug fixes:

#​15939 - lineWrappingIndentation falsely detects incorrect indentation for text blocks
#​16101 - ignoreFieldDeclaration property should have the highest priority in MagicNumberCheck

Other Changes:
dependency: bump org.apache.maven.plugins:maven-site-plugin from 3.12.1 to 3.21.0
Enable examples tests
Remove '//ok' comments from Input files
update JavadocTokenTypes.java to new format of AST print
Issue #​16077: Removed text under banner images in menu
Define violation messages for all violations
Website: Open External Links in New Tabs for Better User Experience
Enforce file size on Java inputs
use new nio jdk api instead of all api
Expand XPath IT Regression Testing
Test to ensure website checks/filters are in alphabetical order at summary pages
Expandable menu for mobile website

v10.21.1

Checkstyle 10.21.1 - https://checkstyle.org/releasenotes.html#Release\_10.21.1

Bug fixes:

#​11374 - UnusedLocalVariable: False Positive when inner class has same field as variable

Other Changes:
Refactor SummaryJavadoc to avoid null usage
Enable examples tests
update JavadocTokenTypes.java to new format of AST print
Remove '//ok' comments from Input files
Resolve Pitest Suppression in Pitest-Javadoc Profile
Expand XPath IT Regression Testing

v10.21.0

Checkstyle 10.21.0 - https://checkstyle.org/releasenotes.html#Release\_10.21.0

New:

#​15985 - Expand Default Value of constantWaiverParentToken in MagicNumberCheck with All Operators

Other Changes:
Enable examples tests
GitHub action to execute latest checkstyle release on provided conf and source
https://checkstyle.org/checks/ Gives a 404
Refactor SummaryJavadoc to avoid null usage
Test to ensure website checks/filters are in alphabetical order
Expand XPath IT Regression Testing
Define violation messages for all violations.
update JavadocTokenTypes.java to new format of AST print
Remove '//ok' comments from Input files

v10.20.2

Checkstyle 10.20.2 - https://checkstyle.org/releasenotes.html#Release\_10.20.2

Bug fixes:

#​15943 - ArrayIndexOutOfBoundsException on indentation check of try-with-resources
#​13061 - Solving parsing errors for missing description in block tags
#​14573 - JavadocType: False negative for unknown tag with no description
#​11584 - WriteTag reports violation with confusing message when there is no javadoc

Other Changes:
Remove '//ok' comments from Input files
Enable examples tests
doc: Fix Example3 in MagicNumberCheck Docs
Forbid Files.createTempDirectory in Checkstyle and replace with `@`TempDir
Expand XPath IT Regression Testing
avoid reliance on `File.createTempFile` implementation d…
Cover pitest survivals with tests
Fix existing cases of `getFileContents()` usage
Define violation messages for all violations.
OuterTypeNumber: provide java code snippets in documentation
JavadocParagraph: define in documentation list of validated block-tags
Resolve `TailRecursion` inspection violations by replacing tail recursive calls
doc: add check-tfij-style project to 'Additional Checks'
Print patch command line for changes detected by checkerfrawork
update JavadocTokenTypes.java to new format of AST print
NeedBraces need clear description of allowSingleLineStatement

v10.20.1

Checkstyle 10.20.1 - https://checkstyle.org/releasenotes.html#Release\_10.20.1

Bug fixes:

#​15851 - google_checks: False positive on left curly brace in switch statement with lambda-like construct

Other Changes:
Enable examples tests
update JavadocTokenTypes.java to new format of AST print
IDEA inspection suppressions resulted from migration to v2022.3.3
update GSOC.md and CONTRIBUTING.md
Define violation messages for all violations.
Resolve `TailRecursion` inspection violations by replacing tail recursive calls
JavadocParagraph documentation example s should be updated to same by structure
doc: BEGINNING_DEVELOPMENT.md
doc: improve README.md add CONTRIBUTING.md add GSOC.md
Cover pitest survivals with tests

v10.20.0

Checkstyle 10.20.0 - https://checkstyle.org/releasenotes.html#Release\_10.20.0

Breaking backward compatibility:

#​15687 - JavadocMethodCheck: removed unnecessary tokens from acceptable

New:

#​14424 - HideUtilityClassConstructor - Add option to skip validation based on list of annotations

Bug fixes:

#​15831 - google_checks.xml not allowing eol left curly for switch statement with lambda-like construct

Other Changes:
Resolve `TailRecursion` inspection violations by replacing tail recursive calls
Enable examples tests
Missing test class for ConstructorsDeclarationGroupingCheck's documentation examples
Expand XPath IT Regression Testing
Define violation messages for all violations.
update JavadocTokenTypes.java to new format of AST print

v10.19.0

Checkstyle 10.19.0 - https://checkstyle.org/releasenotes.html#Release\_10.19.0

New:

#​9540 - WhitespaceAround: new property allowEmptySwitchBlockStatements
#​15263 - UnnecessaryParenthesesCheck does not flag unnecessary parentheses in conditional expression

Bug fixes:

#​15664 - false-negative in google_checks.xml for not being able to detect requirement of K & R style for FINALLY
#​15769 - google_checks.xml: remove xpath suppression and false-positive indentation violations for block codes
#​15685 - JavadocParagraph does not work when paragraphs have their corresponding closing tag
#​15324 - Enforce preceding line break for opening braces of a case/default under switch in google_checks.xml
#​15733 - JavadocParagraph: report violation with column
#​15503 - JavadocParagraph: violate preceding P tag before block-level HTML tags
#​15716 - google_checks.xml: JavadocParagraph should have allowNewlineParagraph as false

Other Changes:
Enable examples tests
Add upwards compat for deprecated classes in maven-check…
Create README for Java grammar updates
Small font for first sentence of Check description
doc: update doc for EmptyBlock and extend example
Resolve Pitest Suppression in Pitest-Javadoc Profile
Review google style coverage table to remove links to closed issues
Define violation messages for all violations.
Expand XPath IT Regression Testing
New isOfType Method that Accepts List as its Parameter
Cover pitest survivals with tests
Fix all violations of JavadocParagrath check in checkstyle code base
Enhance Command Line documentation by organizing options in Tabular format
JavadocParagraph: update documentation
regression-report.yml should use yml files for list of projects
Create documentation of usage for regression-report.yml workflow
spelling: suppresion -`>` suppression
doc: Fix wording in SuppressionSingleFilter and SuppressionXpathSingleFilter
update JavadocParagraph's input files

v10.18.2

Checkstyle 10.18.2 - https://checkstyle.org/releasenotes.html#Release\_10.18.2

Bug fixes:

#​15690 - JavadocParagraph: allowNewlineParagraph should allow '\n' after P tag and content start from new line
#​15642 - google_checks: Section 4.1.3 should not be covered by EmptyBlock and EmptyCatchBlock
#​15609 - google_checks SuppressionXpathSingleFilter for 'MethodName' check is too lenient in several ways
#​15434 - MissingJavadocMethod does not give warning for missing javadoc for protected methods in google_checks.xml
#​13553 - False positive in FallThroughCheck on last case
#​15233 - Suppression for long identifiers for 4.4 Column Limit: 100 rule of google java style guide
#​15414 - Google style: Javadoc is optional for "simple, obvious" members

Other Changes:
Expand XPath IT Regression Testing
Define violation messages for all violations.
Enable examples tests
Add new argument `--diffToolJarPath` to DiffTool command regression-report.yml
Investigate step `Setup local maven cache` in regression-report.yml
Incorporate the place for new_module_config.xml missing in regression-report.yml
Remove the existing comment option in regression-report.yml getting away with contribution repository
regression-report.yml should be independent of checkstyle/contribution and diff.groovy
What happens when an import matches two or more ImportOrder groups?
update JavadocTokenTypes.java to new format of AST print
RegexMultiline contains Example7 that is actually part of Example6
Rename Example4.py to Example.cpp and change content to be some C
Update XdocPagesTest to validate Google coverage table sections
Update ChekerTest.java to use ``@`TempDir` instead of java.io.File#createTempFile
regression-report.yml doesnot handle two configs for execution
Update Tests to use new 'verifyXxxxxx' method or 'execute' that use inlined config in Input files
regression-report.yml should generate label at handle_existing_config_bundle job
Document System Variables usage for Windows OS
InputEqualsHashCodeEqualsParameter.java has wrong location of violation comments
update TodoComment to show how to use ignore case in format property
regression-report.yml should generate label at handle_generated_config_bundle job
regression-report.yml: 'for configs in PR description' mode is not working
Remove cache cleanup in regression-report.yml
regression-report.yml should use label for report comment that took config from Input
create "InputFormattedXxxxxx" files for all Input files that are excluded from formatting
Add print logs and cleaning up cache in regression-report.yml
Language Feature Integration Document: JEPS
Minimize list of excludes in google-java-format.sh
Re-enable no-error-pmd build
Restoring the label feature in new workflow regression-report.yml

v10.18.1

Checkstyle 10.18.1 - https://checkstyle.org/releasenotes.html#Release\_10.18.1

Bug fixes:

#​15556 - google_checks failing on 'MethodName' with @ParameterizedTest

Other Changes:
Failure in make_report of regression-report.yml does not make comment in PR
Handling the concurrency model in the new workflow
regression-report.yml workflow sending messages upon successful completition
create "InputFormattedXxxxxx" files for Indentation and other formatting Checks
Fix the error of the new workflow running for every comment not matching pattern
Updating regression-report.yml to allow running regression for input java file

v10.18.0

Checkstyle 10.18.0 - https://checkstyle.org/releasenotes.html#Release\_10.18.0

Breaking backward compatibility:

#​15159 - RedundantModifer Should Violate Final Modifer on Unnamed Variables if jdkVersion GTE 22
#​14805 - Remove Support for String Template Syntax
#​15082 - LITERAL_WHEN and LAND tokens in switch statements should have EXPR child

New:

#​10798 - RedundantModifierCheck: New property 'jdkVersion' to violate strictfp as redundant modifier if version LTE 17
#​15062 - Add Check Support for Java 21 Unnamed Variables & Patterns Syntax: SuppressWarnings
#​15027 - Add Check Support for Java 21 Pattern Matching for Switch Syntax: WhitespaceAround
#​15025 - Add Check Support for Java 21 Pattern Matching for Switch Syntax: WhitespaceAfter
#​14948 - Add Check Support for Java 21 Record Pattern : ParenPad
#​12542 - new Treewalker property to skip all nested Modules if there is parsing exception
#​14950 - Add Check Support for Java 21 Unnamed Variables & Patterns Syntax: UnusedLocalVariable
#​14963 - Add Check Support for Java 21 Unnamed Variables & Patterns Syntax: FinalParameter
#​14966 - Add Check Support for Java 21 Record Pattern : MethodParamPad
#​14970 - Add Check Support for Java 21 Unnamed Variables & Patterns Syntax: PatternVariableName
#​15015 - Add Check Support for Java 21 Unnamed Variables & Patterns Syntax: CatchParameterName
#​15014 - Add Check Support for Java 21 Unnamed Variables & Patterns Syntax: LambdaParameterName
#​15016 - Add Check Support for Java 21 Unnamed Variables & Patterns Syntax: IllegalIdentifierName
#​15012 - LocalFinalVariableName must include _
#​15053 - Define severity for google style config by variable
#​14946 - Add Check Support for Java 21 Record Pattern : IllegalType
#​14981 - False positive in FinalLocalVariable check on unnamed variables
#​14907 - Add support to check grouping of Constructors in google style guide implementation
#​15059 - Add Check Support for Java 21 Unnamed Variables & Patterns Syntax: New Check UnusedLambdaParameterShouldBeUnnamed
#​15058 - Add Check Support for Java 21 Unnamed Variables & Patterns Syntax: New Check UnusedCatchParameterShouldBeUnnamed
#​14975 - Add Check Support for Java 17 Sealed Classes: New Check SealedShouldHavePermitsList
#​14985 - Add Check Support for Java 21 Pattern Matching for Switch Syntax: New Check WhenShouldBeUsed
#​14979 - Add Check Support for Java 21 Pattern Matching for Switch Syntax: New Check MissingNullCaseInSwitch
#​6723 - new check: LeadingAsteriskAlignCheck

Bug fixes:

#​15504 - MissingSwitchDefault false positive on switch expressions when wrapped in return()
#​15445 - Update NPathComplexity Check to Account for when expression as a Possible Execution Path
#​15429 - Google style: method names should not allow to have '_' unless they are annotated by Test
#​15040 - Add Check Support for Java 21 Pattern Matching for Switch Syntax: SimplifyBooleanReturn
#​15322 - NeedBraces Check Should violate Switch Expressions with Arrow Syntax That Directly Yields a Value
#​15047 - Add Check Support for Java 21 Pattern Matching for Switch Syntax: NPathComplexity
#​15045 - Add Check Support for Java 21 Pattern Matching for Switch Syntax: CyclomaticComplexity
#​15029 - Update EmptyBlockCheck to Violate Empty Case Blocks with Arrow Syntax
#​15123 - MissingSwitchDefault : False positive when case null in switch labeled statement group
#​14688 - LocalVariableNameCheck incorrectly flags variables named _ (see JEP456)
#​14891 - Add Support for Java 21 Record Pattern : MissingSwitchDefault
#​14955 - Remove href from LineLength module property in google style config and update test cases
#​14689 - False positives when first sentence of Javadoc is on a separate line
#​13675 - MethodParamPad ignores explicit constructor invocation

Other Changes:
doc: update documentation for jdkVersion property in RedundantModifierCheck
create "InputFormattedXxxxxx" files for Indentation and other formatting Checks
Add supported Java Language Level to website
Minimize list of excludes in google-java-format.sh
doc: updated documentation for suppressionxpathfilter
Add Check Support for Java 17 Sealed Classes: ClassFanOutComplexitiy
CI job to keep some Inputs to be formatted by google-java-format
Update InlineConfigParser to enforce the presence of vio…
Add Check Support for Java 21 Pattern Matching for Switch Syntax: VariableDeclarationUsageDistance
Update Tests to use new 'verifyXxxxxx' method or 'execute' that use inlined config in Input files
Clarification of lambda coverage by in google style
Add Check Support for Java 21 Unnamed Variables `&` Patterns Syntax: NoWhitespaceAfter
Add Check Support for Java 21 Unnamed Variables `&` Patterns Syntax: AnnotationOnSameLineCheck
Google style coverage table should have all paragraphs
Remove '//ok' comments from Input files
Add Check Support for Java 17 Sealed Classes: Indentation
Add Check Support for Java 21 Unnamed Variables `&` Patterns Syntax: MultipleVariableDeclarations
grab setter types even if field exists for override
Migrate google style guide tests to follow whole config testing approach
Add Check Support for Java 21 Unnamed Variables `&` Patterns Syntax: WhitespaceAfter
Add Check Support for Java 21 Unnamed Variables `&` Patterns Syntax: WhitespaceAround
Remove from google style coverage table links to already merged issues
regression-report.yml workflow shall run only active PRs.
Format google IT tests' input files to follow all the rules of google java style guide
Finalize coverage table for google style on state on July 2024
Add Check Support for Java 21 Unnamed Variables `&` Patterns Syntax: MagicNumber
Add Check Support for Java 17 Sealed Classes: IllegalType
Add Check Support for Java 21 Pattern Matching for Switch Syntax: NoWhitespaceBeforeCaseDefaultColon
doc: Update releasenotes.xml to place correct name of property - ignoreAnnotatedBy
Add EmptyCatchBlock module usage for section 6.2 Caught exceptions: not ignored in google style coverage page
Add Check Support for Java 17 Sealed Classes: WhitespaceAround
Remove condition for triggering new workflow on active PR
Refactor new Github Workflow: regression-report.yml
Enable examples tests
New Github workflow that provide links to test-configs but reuse contribution repo for report generation
LocalFinalVariableName: false negative on pattern variable
Add Check Support for Java 21 Pattern Matching for Switch Syntax: NestedIfDepth
Add Check Support for Java 21 Pattern Matching for Switch Syntax: FallThrough
Add Check Support for Java 21 Pattern Matching for Switch Syntax: BooleanExpressionComplexity
Add Check Support for Java 17 Sealed Classes: InterfaceMemberImpliedModifier
Add Check Support for Java 21 Pattern Matching for Switch Syntax: UnnecessaryParentheses
Add Check Support for Java 21 Pattern Matching for Switch Syntax: NeedBraces
Add Check Support for Java 17 Sealed Classes: RedundantModifer
Add Check Support for Java 21 Unnamed Variables `&` Patterns Syntax: AnnotationLocation
doc: fixes for links
minor : Extend exclude list for openjdk projects
doc: improved grammar, spelling, and punctuation
Add Check Support for Java 21 Pattern Matching for Switch Syntax: SimplifyBooleanExpression
doc: remove Localization section from system properties web page
Add Check Support for Java 21 Record Pattern Syntax : UnnecessaryParenthesesCheck
Reduce performance threshold value
Rename LINKS_FROM_PR to DIFF_PROJECTS_LINK for diff-report.sh
XDoc conversion from Javadoc do not relativize links and break previous document version
Add Check Support for Java 21 Pattern Matching for Switch Syntax: ParenPad
Add Check Support for Java 21 Record Pattern Syntax : PatternVariableName
Migrate google style guide tests to follow chapter wise testing
Refactor SummaryJavadocCheck into SummaryJavadoc for configs
Add Check Support for Java 21 Record Pattern Syntax: IllegalIdentifierName
Add Check Support for Java 21 Record Pattern Syntax: Indentation
doc: fix releasenotes line length violation
Add Check Support for Java 21 Record Pattern Syntax: OperatorWrap
Update all Inputs that has inlined violations to avoid leading and trailing wildcard
Bdd violations messages should allow skip of leading and trailing '.*'
Enable checks from Error Prone Support
Add Check Support for Java 21 Pattern Matching for Switch Syntax: MagicNumber
Add Check Support for Java 21 Record Pattern Syntax : AbbreviationAsWordInName
Add support to check input file against whole google configuration for Google IT tests
Add Check Support for Java 21 Pattern Matching for Switch Syntax: Indentation
resolve PMD warning on config
update JavadocTokenTypes.java to new format of AST print
Add regexp module to checkstyle_checks.xml config to validate `since` version number
Issue #​14899: Updated google coverage page regarding section 7.1.2 Paragraphs
Add new section 4.8.5.4 Field Annotations in google style guide implementation
Add new section 4.8.5.3 Methods and Constructors Annotations in google style guide implementation
Wrong comment in documentation example
Google style IT test Inputs should have support of violation message
Add new section 4.8.5.2 Class Annotations to google style guide implementation
Google style 7.1.1 has reference to already closed issue
Remove JSNI message from google style coverage page and explain the reason behind it
Add Check Support for Java 21 Record Pattern : HiddenField
Add Check Support for Java 21 Record Pattern : EqualsAvoidNull
Google Style page isn't consistent in spacing with multiple checks
Rename section 4.8.4.3 of google style guide implementation
Rename section 4.1.1 of google style guide implementation and add new test cases for lambdas
Create and Document Check Update Procedure for New Language Features
Add Latest Version of Google Java Style Guide
spelling: added detailed message to spelling test script
doc: fixes release notes from release

v10.17.0

Checkstyle 10.17.0 - https://checkstyle.org/releasenotes.html#Release\_10.17.0

Breaking backward compatibility:

#​13758 - ImportOrder: replace Pattern[] with String[] type for properties staticGroups and groups

New:

#​14726 - new Check: ConstructorsDeclarationGrouping to check the grouping of overloaded constructors

Bug fixes:

#​13012 - Checkstyle fails with "Path contains invalid character" if path to config file contains non-ascii characters
#​13167 - Null pointer Exception in UnusedLocalVariableCheck
#​14506 - False positive for UnusedLocalVariable
#​14825 - WhitespaceAround reports a violation when switch expression is passed as a method argument
#​13086 - InnerAssignmentCheck failed for one line code in Java 14 switch expression

Other Changes:
Drop ci jobs for unsupported java versions
test: shallowClone in checkstyle-tester with SHA checkout
--- updated-dependencies: - dependency-name: org.codehaus.mojo:exec-maven-plugin dependency-type: direct:production update-type: version-update:semver-minor ...
--- updated-dependencies: - dependency-name: org.codehaus.mojo:build-helper-maven-plugin dependency-type: direct:production update-type: version-update:semver-minor ...
doc: makes links relative for version documentation
doc: added link to video instructions
update JavadocTokenTypes.java to new format of AST print
doc: update issue template reference
Fix performance test
Optimize testing methods like verifyWithInlineConfigParser to run Check one time over file
Enable examples tests
build failure due to maven.plugin.json
Parsing performance regression testing
doc: added additional explanation for clarification
doc: Updated demonstrative images on intellij doc page
Remove '//ok' comments from Input files

v10.16.0

Checkstyle 10.16.0 - https://checkstyle.org/releasenotes.html#Release\_10.16.0

New:

#​14620 - LITERAL_CASE token support in RightCurlyCheck

Bug fixes:

#​14765 - OverloadMethodDeclarationOrder check ignores anything besides methods
#​14788 - MagicNumberCheck NPE when ignoring field declarations
#​14092 - UnusedLocalVariable does not support local classes
#​12923 - UnusedImports does not report unused static imports when the method is used as a method reference

Other Changes:
IDEA inspection suppressions resulted from migration to v2022.3.3
Remove '//ok' comments from Input files
Enforce new naming convention "InputXpath{Checkname}Xxxx.java" in IT area
update version of IDEA inspection engine Version:2022.3.3
Enable examples tests
doc: updated cmdline docs to be more specific
update JavadocTokenTypes.java to new format of AST print

v10.15.0

Checkstyle 10.15.0 - https://checkstyle.org/releasenotes.html#Release\_10.15.0

Breaking backward compatibility:

#​14615 - fix ordering of AST under STRING_TEMPLATE_BEGIN and remove empty STRING_TEMPLATE_CONTENT nodes

New:

#​11340 - Add ignoreMethodAnnotatedBy property to ParameterNumberCheck

Bug fixes:

#​11230 - FallThrough check false positive with labelled break
#​3110 - some messages are still hardcoded in english

Other Changes:
Enforce new naming convention "InputXpath{Checkname}Xxxx.java" in IT area
Wrap `assertThrows` with `getExpectedThrowable` method.
Expand XPath IT Regression Testing
Enforce input naming convention in IT
Remove '//ok' comments from Input files
Enable examples tests
Resolve Pitest Suppression in Pitest-Javadoc Profile
update JavadocTokenTypes.java to new format of AST print
Resolve CheckerFramework violations
Use module properties macro in all templates

v10.14.2

Checkstyle 10.14.2 - https://checkstyle.org/releasenotes.html#Release\_10.14.2

Bug fixes:

#​14123 - Transitive dependency rejection after Guava upgrade to 32.1.3-jre
#​14502 - GenericWhitespaceCheck: Handling of whitespace between generic and record header
#​12600 - JavadocStyle doesn't work with inline ``@return

Other Changes:
Refactor AbstractModuleTestSupport and InlineConfigParser to support XML configs in Input files without extra detalization on modules
Enable examples tests
Expand XPath IT Regression Testing
Resolve Pitest Suppression in Pitest-Javadoc Profile
update JavadocTokenTypes.java to new format of AST print
spelling: Some traditional Chinese characters were changed to simplified Chinese
Cover pitest survivals with tests

v10.14.1

Checkstyle 10.14.1 - https://checkstyle.org/releasenotes.html#Release\_10.14.1

Bug fixes:

#​14566 - Performance regression from 10.12.4 to 10.13.0
#​12020 - False positive in RightCurly with 'alone_or_singleline' RightCurlyOption in try/catch
#​3110 - some messages are still hardcoded in english
#​13309 - False positive error from JavadocType with record
#​3502 - VariableDeclarationUsageDistance: no violation to move variables closer to block

Other Changes:
Enable examples tests
Expand XPath IT Regression Testing
Remove '//ok' comments from Input files
Rename Java Input files and test methods to specify Test functionality
update JavadocTokenTypes.java to new format of AST print
doc: Updated description and docs of TextBlock
inconsistent documentation for TEXT_BLOCK_abc token types
Excludes for createTempFile forbidden method
doc: Update TokenTypes link to be more specific
update TokenTypes.java to new format of AST print
Update Tests to use new 'verifyXxxxxx' method or 'execute' that use inlined config in Input files
AbstractXpathTestSupport does not support generating multiple xpath suppressions
move AllBlockCommentTest and AllSinglelineCommentsTest to AST Tests
doc: fix line length violation in releasenotes.xml

v10.14.0

Checkstyle 10.14.0 - https://checkstyle.org/releasenotes.html#Release\_10.14.0

New:

#​13988 - Checkstyle fails to parse unnamed variable

Bug fixes:

#​14344 - GenericWhitespace Check ignores exception to the ">" rule for succeeding whitespaces

Other Changes:
Remove '//ok' comments from Input files
Update Codenarc to highest compatible release - v2.2.0
Remove UnmodifiableCollectionUtil and use pitest funmodifiablecollection feature
Enable checks from Error Prone Support
Cover pitest survivals with tests
improve text block grammar
checker-framework.yml should be able to fail execution if report generation is failed
upadat example in javadoc for EMBEDDED_EXPRESSION* tokens
doc: mention text block suppression
Rename Java Input files and test methods to specify Test functionality
infra: should use release 11 for compilation
Resolve Pitest Suppression in Pitest-Javadoc Profile
Enable examples tests
Execute all checkstyle samples in each PR execution
Update Tests to use new 'verifyXxxxxx' method or 'execute' that use inlined config in Input files
Expand XPath IT Regression Testing
Forbid Files.createTempDirectory in Checkstyle and replace with `@`TempDir
Enforce file size on Java inputs
Resolve CheckerFramework violations
Expanding maxmem to resolve OOM Exception (Checker checks)
doc: fix releasenotes.xml line length violation

v10.13.0

Checkstyle 10.13.0 - https://checkstyle.org/releasenotes.html#Release\_10.13.0

New:

#​14289 - IllegalTokenText support for STRING_TEMPLATE_CONTENT
#​13830 - Support Java 21 string template syntax

Bug fixes:

#​12238 - "Unable to persist cache file" if target directory is a symlink

Other Changes:
Enforce file size on Java inputs
Enable checks from Error Prone Support
Enable examples tests
Remove '//ok' comments from Input files
Expand XPath IT Regression Testing
Resolve Pitest Suppression in Pitest-Javadoc Profile
CustomImportOrder property 'customImportOrderRules' should be String[]
PropertyCacheFileTest Failing: 3 Test Methods Failing Along With testSymbolicLinkResolution() Causing Issue
Update Tests to use new 'verifyXxxxxx' method or 'execute' that use inlined config in Input files
Use module properties macro in all templates
Make Checkstyle an (automatic) module

v10.12.7

Checkstyle 10.12.7 - https://checkstyle.org/releasenotes.html#Release\_10.12.7

Bug fixes:

#​14068 - False positive in MissingSwitchDefault for switch statement where null label is present
#​14028 - HiddenField false positive on inner records
#​3132 - Indentation: split line new array not checked

Other Changes:
Use module properties macro in all templates
Resolve Pitest Suppression in Pitest-Javadoc Profile
Enable checks from Error Prone Support
Update Tests to use new 'verifyXxxxxx' method or 'execute' that use inlined config in Input files
Add support to our Inputs for lines with multiple violations
Enable examples tests
Enforce file size on Java inputs
Transitive dependency rejection after Guava upgrade to 32.1.3-jre
Remove '//ok' comments from Input files
Cover pitest survivals with tests
Expand XPath IT Regression Testing
File name too long error
Update CI to have Maven Version 3.8.8, update min required maven version in pom to 3.6.3

v10.12.6

Checkstyle 10.12.6 - https://checkstyle.org/releasenotes.html#Release\_10.12.6

Bug fixes:

#​14064 - Regexp: violation pointing to line 0 while other Checks count first line as 1

Other Changes:
Resolve CheckerFramework violations
Resolve Pitest Suppression in Pitest-Javadoc Profile
Update Tests to use new 'verifyXxxxxx' method or 'execute' that use inlined config in Input files
Test inputs should be completely standalone.
Expand XPath IT Regression Testing
Update CI to have Maven Version 3.8.8, update min required maven version in pom to 3.5.4
Fix typo in Indentation check for word 'initialisation'
Remove ArchUnit FreezingArchRule as it unstable to skip line numbers and any other extra changes
Enable examples tests
use valid SPDX license identifier
Cover pitest survivals with tests
Re-enable ArchUnit Testing
Surefire test exclusion can cause NoClassDefFoundError on case-insensitive file system
migrate SuppressWarningsHolder to use property macro
Use module properties macro in all templates
doc: add direct link to check
Resolve pitest survivals in modules - 4
Migrate magicnumber.xml.template to use properties template

v10.12.5

Checkstyle 10.12.5 - https://checkstyle.org/releasenotes.html#Release\_10.12.5

Bug fixes:

#​14014 - Indentation: Switch expression doesn't pass with LeftCurlies on newlines

Other Changes:
Resolve pitest survivals in modules - 5
Resolve pitest survivals in modules - 2
Since version is determined incorrectly by property macros at returncount.xml.template
Resolve Pitest Suppression in Pitest-Javadoc Profile
Enable examples tests
Expand XPath IT Regression Testing
doc: Added reference to the Checkstyle extension for bld
Migrate illegaltype.xml.template to use properties template
Specify violation messages in input files
Migrate multiplestringliterals.xml.template to use properties template
Run regression testing in CI over openjdk21
Remove call to Lexer#removeErrorListeners
Migrate DescendantToken to properties macros
Test inputs should be completely standalone.
Update Javadoc checks to avoid // violation in Javadoc comments
Targeted Pitest Mutation in July 2023
create validation of git status on Windows environments
Improve XdocGenerator to generate file in temp folder and replace xdoc only on success
Enforce Linux Style End-of-Line (LF instead of CRLF) in all XML files for windows environment.
migrate FinalLocalVariable xdoc to use property macro
Use module properties macro in all templates
SpotBugs: checks a map with containsKey(), before using get()
migrate IllegalToken to properties macros
Fix typo in Indentation check for word 'initialisation'
infra: do not allow in-progress site action to be cancelled by skipped run
Resolve pitest for FinalLocalVariableCheck
MacroExecutionException: TypecastParenPadCheck: Failed to find setter javadoc for property 'option'
Remove '//ok' comments from Input files
migrate to property macros IllegalTokenText
Enforce file size on Java inputs
False Positive and Negative in SummaryJavaDocCheck
infra: actionlint bad yaml
Infra: enable dependabot for github actions
'javadoc.unclosedHtml' message is not present in documentation for most Javadoc Checks
Use violation messages macro in all templates
.vscode folder must be added to .gitignore to avoid getting tracked by git.
Convert Parent Modules to Macro
Resolve pitest survivals in modules - 4
Node.js 12 actions are deprecated.
Document ability to use whitespace in array configuration properties
Create a Checkstyle module to enforce comment formatting in input files

v10.12.4

Checkstyle 10.12.4 - https://checkstyle.org/releasenotes.html#Release\_10.12.4

Bug fixes:

#​13745 - MissingDeprecated shows unclear message on not closed html tag

Other Changes:
Resolve pitest survivals in modules - 5
Resolve pitest survivals in modules - 4
Assert that properties are ordered alphabetically in xdoc
Enable examples tests
Test inputs should be completely standalone.
Remove '//ok' comments from Input files
Surviving pitest mutations for conditions reducing time complexity at PackageObjectFactory
Extend `generate-extra-site-links.sh` to not include deleted pages in comments
Order properties alphabetically in xdocs and javadocs
Add Examples Macro Support to All Checks
Typo
Fix Pitest script to recognize unstable mutations
Resolve pitest survivals in modules - 3
Targeted Pitest Mutation in July 2023
Create checks to place violations on missing macros in templates
Use module properties macro in all templates
Update Violation Message in Input files for FallThroughCheck
Simplify requirement for what we consider a setter method in ClassAndPropertiesSettersJavadocScraper
NonEmptyAtclauseDescription examples are cut in website
Move CheckUtil#isGetterMethod and CheckUtil#isSetterMethod to MissingJavadocMethodCheck
Implement module properties macro
Get rid of module javadoc examples
Fix existing cases of `getFileContents()` usage
Create tests from xdoc examples

v10.12.3

Checkstyle 10.12.3 - https://checkstyle.org/releasenotes.html#Release\_10.12.3

Bug fixes:

#​13411 - UnnecessarySemicolonAfterTypeMemberDeclaration throws Exception on on Local Class
#​13279 - Record pattern causes checkstyle to fail in JDK 20 (preview)

Other Changes:
Ensure only forward slashes are in relative link to parent module
Resolve pitest survivals in modules - 3
Use violation messages macro in all templates
Use parent module macro in all templates
Create tests from xdoc examples
Resolve pitest survivals in modules - 2
setup UnnecessaryOkComment module and suppressions (related to…
CircleCI periodically failing with yml violations on site.yml
Enable examples tests
Update doc of FallThroughCheck to use same java snippet example
Create templates from xdocs
Exclude xdocs from line length validation and validate templates instead
Remove from EmptyLineSeparator documentation attention note about no xpath suppression support
Implement parent module macro
Add a test to ensure examples have a paragraph with an id before them
Restore usage of TreeSet
Implement module violation messages macro
Targeted Pitest Mutation in July 2023
Move all example tests to extend `AbstractExamplesModuleTestSupport`
Add ``@`since` in javadoc of each property setter
Add links to examples paragraphs
Fix package/resource location in example tests

v10.12.2

Checkstyle 10.12.2 - https://checkstyle.org/releasenotes.html#Release\_10.12.2

Bug fixes:

#​11338 - FinalClassCheck should report private classes without constructor

Other Changes:
Resolve pitest survivals in modules - 2
Create tests from xdoc examples
Add ``@`since` in javadoc of each property setter
Implement examples macro and xdoc template parser
Update doc of FallThroughCheck to use same java snippet example
update link check to only check internal links in PRs
Run regression testing in CI over openjdk20
Specify violation messages in input files
Restore xdoc-javadoc validation
Extend `getXdocsFilePaths` to gather `.xml.vm` files and get rid of `getAllXdocFilePaths`
Move section comments to include whole examples and shorten xml configs length
Test inputs should be completely standalone.
Targeted Pitest Mutation

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from efab8c7 to 675941c Compare March 26, 2023 18:23
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 675941c to b7fe0ca Compare May 28, 2023 10:13
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from b7fe0ca to 78b7b66 Compare June 25, 2023 22:52
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 78b7b66 to d1b2246 Compare July 30, 2023 21:24
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from d1b2246 to e3c0e0f Compare August 28, 2023 06:34
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from e3c0e0f to 020512b Compare October 2, 2023 04:22
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 020512b to 1dc6300 Compare November 14, 2023 14:21
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 1dc6300 to c65147f Compare December 7, 2023 06:27
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from c65147f to 38b0189 Compare December 31, 2023 16:53
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 38b0189 to 394a5cf Compare January 28, 2024 18:45
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 394a5cf to aa971c5 Compare February 28, 2024 15:27
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch 2 times, most recently from 1eeca16 to 02ebed8 Compare March 17, 2024 01:21
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 02ebed8 to c7e3a8e Compare April 3, 2024 17:54
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from c7e3a8e to 70f0c55 Compare April 28, 2024 18:59
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 70f0c55 to a3d7321 Compare May 26, 2024 19:51
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch 2 times, most recently from d30f3f7 to 80965c4 Compare August 30, 2024 16:39
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 80965c4 to bcebbb6 Compare September 29, 2024 22:32
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch 2 times, most recently from 0fdb66d to 3d45b22 Compare October 31, 2024 17:50
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 3d45b22 to 09e11be Compare November 7, 2024 18:46
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 09e11be to e0f95b9 Compare December 1, 2024 06:20
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from e0f95b9 to 0e2267a Compare December 12, 2024 20:12
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 0e2267a to da4d1c5 Compare December 28, 2024 17:03
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from da4d1c5 to 0a95e19 Compare January 26, 2025 17:45
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from 0a95e19 to b31f0dc Compare February 23, 2025 18:23
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from b31f0dc to 94b7351 Compare March 4, 2025 11:05
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch 2 times, most recently from 8c210b8 to b6d6c9d Compare April 2, 2025 15:55
@renovate renovate bot force-pushed the renovate/checkstyle-10.x branch from b6d6c9d to 2732af8 Compare April 28, 2025 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants