Skip to content
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

chore(deps): update dependency pmd/pmd to v7.2.0 #3634

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 9, 2024

Mend Renovate

This PR contains the following updates:

Package Update Change
pmd/pmd minor 7.1.0 -> 7.2.0

Release Notes

pmd/pmd (pmd/pmd)

v7.2.0: PMD 7.2.0 (31-May-2024)

Compare Source

31-May-2024 - 7.2.0

The PMD team is pleased to announce PMD 7.2.0.

This is a minor release.

Table Of Contents
🚀 New and noteworthy
Collections exposed as XPath attributes

Up to now, all AST node getters would be exposed to XPath, as long as the return type was a primitive (boxed or unboxed), String or Enum. That meant that collections, even of these basic types, were not exposed, so for instance accessing Apex's ASTUserClass.getInterfaceNames() to list the interfaces implemented by a class was impossible from XPath, and would require writing a Java rule to check it.

Since this release, PMD will also expose any getter returning a collection of any supported type as a sequence through an XPath attribute. They would require to use apropriate XQuery functions to manipulate the sequence. So for instance, to detect any given ASTUserClass in Apex that implements Queueable, it is now possible to write:

/UserClass[@​InterfaceNames = 'Queueable']
Updated PMD Designer

This PMD release ships a new version of the pmd-designer.
For the changes, see PMD Designer Changelog (7.2.0).

🐛 Fixed Issues
  • core
    • #​4467: [core] Expose collections from getters as XPath sequence attributes
    • #​4978: [core] Referenced Rulesets do not emit details on validation errors
    • #​4983: [cpd] Fix CPD crashes about unicode escapes
    • #​5009: [core] Kotest tests aren't picked up by surefire
  • java
    • #​4912: [java] Unable to parse some Java9+ resource references
    • #​4973: [java] Stop parsing Java for CPD
    • #​4980: [java] Bad intersection, unrelated class types java.lang.Object[] and java.lang.Number
    • #​4988: [java] Fix impl of ASTVariableId::isResourceDeclaration / VariableId/@​ResourceDeclaration
    • #​4990: [java] Add an attribute @​PackageQualifier to ASTClassType
    • #​5006: [java] Bad intersection, unrelated class types Child and Parent<? extends Child>
    • #​5029: [java] PMD 7.x throws stack overflow in TypeOps$ProjectionVisitor while parsing a Java class
  • java-bestpractices
    • #​4278: [java] UnusedPrivateMethod FP with Junit 5 @​MethodSource and default factory method name
    • #​4852: [java] ReplaceVectorWithList false-positive (neither Vector nor List usage)
    • #​4975: [java] UnusedPrivateMethod false positive when using @​MethodSource on a @​Nested test
    • #​4985: [java] UnusedPrivateMethod false-positive / method reference in combination with custom object
  • java-codestyle
    • #​1619: [java] LocalVariableCouldBeFinal on 'size' variable in for loop
    • #​3122: [java] LocalVariableCouldBeFinal should consider blank local variables
    • #​4903: [java] UnnecessaryBoxing, but explicit conversion is necessary
    • #​4924: [java] UnnecessaryBoxing false positive in PMD 7.0.0 in lambda
    • #​4930: [java] EmptyControlStatement should not allow empty try with concise resources
    • #​4954: [java] LocalVariableNamingConventions should allow unnamed variables by default
    • #​5028: [java] FormalParameterNamingConventions should accept unnamed parameters by default
  • java-errorprone
    • #​4042: [java] A false negative about the rule StringBufferInstantiationWithChar
    • #​5007: [java] AvoidUsingOctalValues triggers on non-octal double literals with a leading 0
  • java-multithreading
    • #​2368: [java] False positive UnsynchronizedStaticFormatter in static initializer
🚨 API Changes
Deprecated API
✨ External Contributions
📈 Stats
  • 152 commits
  • 46 closed tickets & PRs
  • Days since last release: 35

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 becomes conflicted, 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 has been generated by Mend Renovate. View repository job log here.

Copy link
Contributor

github-actions bot commented Jun 9, 2024

🦙 MegaLinter status: ⚠️ WARNING

Descriptor Linter Files Fixed Errors Elapsed time
✅ API spectral 2 0 3.09s
✅ BASH bash-exec 5 0 0.08s
✅ BASH shellcheck 5 0 0.13s
✅ BASH shfmt 5 0 0 0.11s
✅ COPYPASTE jscpd yes no 4.33s
✅ DOCKERFILE hadolint 130 0 17.36s
✅ JSON jsonlint 18 0 0.25s
✅ JSON v8r 20 0 31.37s
⚠️ MARKDOWN markdownlint 265 0 272 32.45s
✅ MARKDOWN markdown-table-formatter 265 0 0 139.77s
✅ OPENAPI spectral 2 0 3.17s
⚠️ PYTHON bandit 211 64 3.81s
✅ PYTHON black 211 0 0 5.41s
✅ PYTHON flake8 211 0 3.91s
✅ PYTHON isort 211 0 0 0.79s
✅ PYTHON mypy 211 0 19.69s
✅ PYTHON pylint 211 0 17.19s
✅ PYTHON ruff 211 0 0 0.19s
✅ REPOSITORY checkov yes no 40.81s
✅ REPOSITORY git_diff yes no 0.15s
⚠️ REPOSITORY grype yes 1 25.6s
✅ REPOSITORY secretlint yes no 17.31s
✅ REPOSITORY trivy yes no 19.91s
✅ REPOSITORY trivy-sbom yes no 5.91s
⚠️ REPOSITORY trufflehog yes 1 12.24s
✅ SPELL cspell 693 0 29.51s
⚠️ SPELL lychee 346 5 7.09s
✅ XML xmllint 3 0 0 0.11s
✅ YAML prettier 161 0 0 5.6s
✅ YAML v8r 102 0 195.08s
✅ YAML yamllint 162 0 2.42s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@echoix echoix merged commit 0698b0a into main Jun 10, 2024
127 checks passed
@echoix echoix deleted the renovate/pmd-pmd-7.x branch June 10, 2024 00:29
@nvuillam
Copy link
Member

@echoix your renovate config looks powerful 🥇

@echoix
Copy link
Collaborator

echoix commented Jun 10, 2024

Yep.

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.

2 participants