Bumps pmd.version from 7.25.0 to 7.26.0.
Updates net.sourceforge.pmd:pmd-core from 7.25.0 to 7.26.0
Sourced from net.sourceforge.pmd:pmd-core's releases.
PMD 7.26.0 (29-June-2026)
29-June-2026 - 7.26.0
The PMD team is pleased to announce PMD 7.26.0.
This is a minor release.
Table Of Contents
- ๐๏ธ New and noteworthy
- ๐๏ธ New and Changed Rules
- ๐๏ธ Fixed Issues
- ๐จ๏ธ API Changes
- โจ๏ธ Merged pull requests
- ๐ฆ๏ธ Dependency updates
- ๐๏ธ Stats
๐๏ธ New and noteworthy
Swift Changes
The Swift parser now forwards syntax errors as usual processing errors. Before it just logged any errors and tried to move on, resulting in an incomplete AST with error nodes. As part of this change, the grammar has been slightly improved around macro declarations, generic parameters and parameter packs.
This means that PMD might fail now on Swift files with processing errors, when it previously ran without obvious problems. The Swift module in PMD now behaves like other modules in regard to error handling.Updated PMD Designer
This PMD release ships a new version of the pmd-designer. For the changes, see PMD Designer Changelog (7.19.3).
๐๏ธ New and Changed Rules
New Rules
- The new Java rule
WrongTestAnnotationdetects when test annotations from the wrong testing framework (JUnit 4, JUnit Jupiter, or TestNG) are used in your code, preventing tests from being silently skipped due to framework mismatches. This helps avoid the silent failure where tests compile but don't execute because the test runner doesn't recognize the annotation.- The new Java rule
AssertEqualsArgumentOrderdetects assertions where the expected and actual arguments were swapped. This helps find assertions that are producing a confusing error message when they fail.- The new Kotlin rule
LocalVariableShadowsParameterdetects local variable declarations that use the same name as a parameter of the enclosing function. This shadows the parameter and may lead to confusion about which value is used.- The new Apex rule
InvocableClassNoArgConstructordetects classes that use@InvocableVariableproperties, but that don't provide a no-arg constructor. Without such a constructor,
... (truncated)
Commits8fd38ed[release] prepare release pmd_releases/7.26.09a1791aPrepare pmd release 7.26.05d38f78Update contributors for 7.26.007bab85[java] Fix #6627: UnusedPrivateMethod: add javax to ignored annotations (#6821)b886772[java] AvoidDeepNestedIfStmts: count ifs properly in else branch (#6814)62afdedMerge branch 'main' into pr-68144c54901[doc] Update release notes (#6814)99a8d9cUpdate pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/design/Avoid...dbdec25[java] Fix #6740: Fix FP in OptimizableToArrayCall (#6813)41f0d39[java] Rename ASTMethodDeclaration#isOverridden() to isOverride() (#6812)- Additional commits viewable in compare view
Updates net.sourceforge.pmd:pmd-java from 7.25.0 to 7.26.0
Sourced from net.sourceforge.pmd:pmd-java's releases.
PMD 7.26.0 (29-June-2026)
29-June-2026 - 7.26.0
The PMD team is pleased to announce PMD 7.26.0.
This is a minor release.
Table Of Contents
- ๐๏ธ New and noteworthy
- ๐๏ธ New and Changed Rules
- ๐๏ธ Fixed Issues
- ๐จ๏ธ API Changes
- โจ๏ธ Merged pull requests
- ๐ฆ๏ธ Dependency updates
- ๐๏ธ Stats
๐๏ธ New and noteworthy
Swift Changes
The Swift parser now forwards syntax errors as usual processing errors. Before it just logged any errors and tried to move on, resulting in an incomplete AST with error nodes. As part of this change, the grammar has been slightly improved around macro declarations, generic parameters and parameter packs.
This means that PMD might fail now on Swift files with processing errors, when it previously ran without obvious problems. The Swift module in PMD now behaves like other modules in regard to error handling.Updated PMD Designer
This PMD release ships a new version of the pmd-designer. For the changes, see PMD Designer Changelog (7.19.3).
๐๏ธ New and Changed Rules
New Rules
- The new Java rule
WrongTestAnnotationdetects when test annotations from the wrong testing framework (JUnit 4, JUnit Jupiter, or TestNG) are used in your code, preventing tests from being silently skipped due to framework mismatches. This helps avoid the silent failure where tests compile but don't execute because the test runner doesn't recognize the annotation.- The new Java rule
AssertEqualsArgumentOrderdetects assertions where the expected and actual arguments were swapped. This helps find assertions that are producing a confusing error message when they fail.- The new Kotlin rule
LocalVariableShadowsParameterdetects local variable declarations that use the same name as a parameter of the enclosing function. This shadows the parameter and may lead to confusion about which value is used.- The new Apex rule
InvocableClassNoArgConstructordetects classes that use@InvocableVariableproperties, but that don't provide a no-arg constructor. Without such a constructor,
... (truncated)
Commits8fd38ed[release] prepare release pmd_releases/7.26.09a1791aPrepare pmd release 7.26.05d38f78Update contributors for 7.26.007bab85[java] Fix #6627: UnusedPrivateMethod: add javax to ignored annotations (#6821)b886772[java] AvoidDeepNestedIfStmts: count ifs properly in else branch (#6814)62afdedMerge branch 'main' into pr-68144c54901[doc] Update release notes (#6814)99a8d9cUpdate pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/design/Avoid...dbdec25[java] Fix #6740: Fix FP in OptimizableToArrayCall (#6813)41f0d39[java] Rename ASTMethodDeclaration#isOverridden() to isOverride() (#6812)- Additional commits viewable in compare view
Updates net.sourceforge.pmd:pmd-javascript from 7.25.0 to 7.26.0
Sourced from net.sourceforge.pmd:pmd-javascript's releases.
PMD 7.26.0 (29-June-2026)
29-June-2026 - 7.26.0
The PMD team is pleased to announce PMD 7.26.0.
This is a minor release.
Table Of Contents
- ๐๏ธ New and noteworthy
- ๐๏ธ New and Changed Rules
- ๐๏ธ Fixed Issues
- ๐จ๏ธ API Changes
- โจ๏ธ Merged pull requests
- ๐ฆ๏ธ Dependency updates
- ๐๏ธ Stats
๐๏ธ New and noteworthy
Swift Changes
The Swift parser now forwards syntax errors as usual processing errors. Before it just logged any errors and tried to move on, resulting in an incomplete AST with error nodes. As part of this change, the grammar has been slightly improved around macro declarations, generic parameters and parameter packs.
This means that PMD might fail now on Swift files with processing errors, when it previously ran without obvious problems. The Swift module in PMD now behaves like other modules in regard to error handling.Updated PMD Designer
This PMD release ships a new version of the pmd-designer. For the changes, see PMD Designer Changelog (7.19.3).
๐๏ธ New and Changed Rules
New Rules
- The new Java rule
WrongTestAnnotationdetects when test annotations from the wrong testing framework (JUnit 4, JUnit Jupiter, or TestNG) are used in your code, preventing tests from being silently skipped due to framework mismatches. This helps avoid the silent failure where tests compile but don't execute because the test runner doesn't recognize the annotation.- The new Java rule
AssertEqualsArgumentOrderdetects assertions where the expected and actual arguments were swapped. This helps find assertions that are producing a confusing error message when they fail.- The new Kotlin rule
LocalVariableShadowsParameterdetects local variable declarations that use the same name as a parameter of the enclosing function. This shadows the parameter and may lead to confusion about which value is used.- The new Apex rule
InvocableClassNoArgConstructordetects classes that use@InvocableVariableproperties, but that don't provide a no-arg constructor. Without such a constructor,
... (truncated)
Commits8fd38ed[release] prepare release pmd_releases/7.26.09a1791aPrepare pmd release 7.26.05d38f78Update contributors for 7.26.007bab85[java] Fix #6627: UnusedPrivateMethod: add javax to ignored annotations (#6821)b886772[java] AvoidDeepNestedIfStmts: count ifs properly in else branch (#6814)62afdedMerge branch 'main' into pr-68144c54901[doc] Update release notes (#6814)99a8d9cUpdate pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/design/Avoid...dbdec25[java] Fix #6740: Fix FP in OptimizableToArrayCall (#6813)41f0d39[java] Rename ASTMethodDeclaration#isOverridden() to isOverride() (#6812)- Additional commits viewable in compare view
Updates net.sourceforge.pmd:pmd-jsp from 7.25.0 to 7.26.0
Sourced from net.sourceforge.pmd:pmd-jsp's releases.
PMD 7.26.0 (29-June-2026)
29-June-2026 - 7.26.0
The PMD team is pleased to announce PMD 7.26.0.
This is a minor release.
Table Of Contents
- ๐๏ธ New and noteworthy
- ๐๏ธ New and Changed Rules
- ๐๏ธ Fixed Issues
- ๐จ๏ธ API Changes
- โจ๏ธ Merged pull requests
- ๐ฆ๏ธ Dependency updates
- ๐๏ธ Stats
๐๏ธ New and noteworthy
Swift Changes
The Swift parser now forwards syntax errors as usual processing errors. Before it just logged any errors and tried to move on, resulting in an incomplete AST with error nodes. As part of this change, the grammar has been slightly improved around macro declarations, generic parameters and parameter packs.
This means that PMD might fail now on Swift files with processing errors, when it previously ran without obvious problems. The Swift module in PMD now behaves like other modules in regard to error handling.Updated PMD Designer
This PMD release ships a new version of the pmd-designer. For the changes, see PMD Designer Changelog (7.19.3).
๐๏ธ New and Changed Rules
New Rules
- The new Java rule
WrongTestAnnotationdetects when test annotations from the wrong testing framework (JUnit 4, JUnit Jupiter, or TestNG) are used in your code, preventing tests from being silently skipped due to framework mismatches. This helps avoid the silent failure where tests compile but don't execute because the test runner doesn't recognize the annotation.- The new Java rule
AssertEqualsArgumentOrderdetects assertions where the expected and actual arguments were swapped. This helps find assertions that are producing a confusing error message when they fail.- The new Kotlin rule
LocalVariableShadowsParameterdetects local variable declarations that use the same name as a parameter of the enclosing function. This shadows the parameter and may lead to confusion about which value is used.- The new Apex rule
InvocableClassNoArgConstructordetects classes that use@InvocableVariableproperties, but that don't provide a no-arg constructor. Without such a constructor,
... (truncated)
Commits8fd38ed[release] prepare release pmd_releases/7.26.09a1791aPrepare pmd release 7.26.05d38f78Update contributors for 7.26.007bab85[java] Fix #6627: UnusedPrivateMethod: add javax to ignored annotations (#6821)b886772[java] AvoidDeepNestedIfStmts: count ifs properly in else branch (#6814)62afdedMerge branch 'main' into pr-68144c54901[doc] Update release notes (#6814)99a8d9cUpdate pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/design/Avoid...dbdec25[java] Fix #6740: Fix FP in OptimizableToArrayCall (#6813)41f0d39[java] Rename ASTMethodDeclaration#isOverridden() to isOverride() (#6812)- Additional commits viewable in compare view