The new Apex rule ApexUnitTestClassShouldHaveRunAs ensures that unit tests
use System.runAs()
at least once. This makes the tests more robust, and independent from the user running it.
The Java rule TestClassWithoutTestCases has a new property testClassPattern. This is
used to detect empty test classes by name. Previously this rule could only detect empty JUnit3 test cases
properly. To switch back to the old behavior, this property can be set to an empty value which disables the
test class detection by pattern.
Fixed Issues
apex
#4149: [apex] New rule: ApexUnitTestClassShouldHaveRunAs
doc
#4144: [doc] Update docs to reflect supported languages
#4163: [doc] Broken links on page "Architecture Decisions"
java-bestpractices
#4140: [java] [doc] AccessorClassGeneration violations hidden with Java 11
java-codestyle
#4139: [java] UnnecessaryFullyQualifiedName FP when the same simple class name exists in the current package
java-documentation
#4141: [java] UncommentedEmptyConstructor FP when constructor annotated with @Autowired
The new Apex rule ApexUnitTestClassShouldHaveRunAs ensures that unit tests
use System.runAs()
at least once. This makes the tests more robust, and independent from the user running it.
The Java rule TestClassWithoutTestCases has a new property testClassPattern. This is
used to detect empty test classes by name. Previously this rule could only detect empty JUnit3 test cases
properly. To switch back to the old behavior, this property can be set to an empty value which disables the
test class detection by pattern.
Fixed Issues
apex
#4149: [apex] New rule: ApexUnitTestClassShouldHaveRunAs
doc
#4144: [doc] Update docs to reflect supported languages
#4163: [doc] Broken links on page "Architecture Decisions"
java-bestpractices
#4140: [java] [doc] AccessorClassGeneration violations hidden with Java 11
java-codestyle
#4139: [java] UnnecessaryFullyQualifiedName FP when the same simple class name exists in the current package
java-documentation
#4141: [java] UncommentedEmptyConstructor FP when constructor annotated with @Autowired
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps
pmd.version
from 6.41.0 to 6.51.0. Updatespmd-core
from 6.41.0 to 6.51.0Release notes
Sourced from pmd-core's releases.
... (truncated)
Commits
66e8340
[maven-release-plugin] prepare release pmd_releases/6.51.022425a6
Prepare pmd release 6.51.00a10dad
Add@tysonstewart
as a contributore7013bb
Add@rnveach
as a contributor2f515e5
Merge pull request #4170 from adangel:issue-4140-doc-max-lang-version66d67c7
Merge pull request #4169 from adangel:issue-4165-InaccurateNumericLiterale59d25b
Merge pull request #4162 from adangel:improve-TestClassWithoutTestCasesfc8c01a
Merge pull request #4160 from adangel:issue-4139-UnnecessaryFullyQualifiedName59cfe99
Merge pull request #4159 from adangel:AvoidArrayLoops-improvementsaf013d6
Merge pull rquest #4156 from adangel:issue-4148-ArrayListVectorUpdates
pmd-java
from 6.41.0 to 6.51.0Release notes
Sourced from pmd-java's releases.
... (truncated)
Commits
66e8340
[maven-release-plugin] prepare release pmd_releases/6.51.022425a6
Prepare pmd release 6.51.00a10dad
Add@tysonstewart
as a contributore7013bb
Add@rnveach
as a contributor2f515e5
Merge pull request #4170 from adangel:issue-4140-doc-max-lang-version66d67c7
Merge pull request #4169 from adangel:issue-4165-InaccurateNumericLiterale59d25b
Merge pull request #4162 from adangel:improve-TestClassWithoutTestCasesfc8c01a
Merge pull request #4160 from adangel:issue-4139-UnnecessaryFullyQualifiedName59cfe99
Merge pull request #4159 from adangel:AvoidArrayLoops-improvementsaf013d6
Merge pull rquest #4156 from adangel:issue-4148-ArrayListVectorDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)