Andreas Dangel
4f766035a4
[java] Fix #5263 - UnnecessaryFullyQualifiedName FP with forward references ( #5353 )
...
Merge pull request #5353 from oowekyala:issue5263-ufqn-forward-ref
2024-11-22 09:48:25 +01:00
Andreas Dangel
9da17877ac
[doc] Update release notes ( #5263 , #5353 )
2024-11-22 09:47:53 +01:00
Andreas Dangel
3e9e128aa7
[java] UnnecessaryFullyQualifiedName - improve test case
2024-11-22 09:46:35 +01:00
Andreas Dangel
79c0ce0415
[julia] Ignore generated code in Julia module ( #5342 )
...
Merge pull request #5342 from Monits:fix-generated-code-julia
2024-11-17 16:16:51 +01:00
Andreas Dangel
8fdfd369b0
[doc] Update release notes ( #5342 )
2024-11-17 16:15:55 +01:00
Andreas Dangel
80b8bc47df
[gherkin] Remove generated gherkin code from coverage report ( #5336 )
...
Merge pull request #5336 from Monits:fix-generated-code-gherkin
2024-11-17 16:13:13 +01:00
Andreas Dangel
a9b6c946b4
[doc] Update release notes ( #5336 )
2024-11-17 16:12:46 +01:00
Andreas Dangel
2910ab0403
[kotlin] Prevent auxiliary grammars from generating lexers ( #5335 )
...
Merge pull request #5335 from Monits:fix-generated-code-kotlin
2024-11-17 15:58:54 +01:00
Andreas Dangel
5a0220da2e
[doc] Update release notes ( #5335 )
2024-11-17 15:58:05 +01:00
Andreas Dangel
bc4a49deac
[doc] Update docs/pages/pmd/projectdocs/credits.md [skip ci]
2024-11-17 15:49:32 +01:00
Andreas Dangel
a40c30c8c1
[apex] New Rule: Queueable Should Attach Finalizer ( #5303 )
...
Merge pull request #5303 from mitchspano:Require_Finalizer
2024-11-17 15:46:05 +01:00
Andreas Dangel
44c15aae6d
[doc] Update release notes ( #5303 , #5302 )
2024-11-17 15:30:59 +01:00
Andreas Dangel
85aeebbab0
Merge branch 'main' into pr-5303
2024-11-17 15:25:24 +01:00
Andreas Dangel
a5925eb5ea
[doc] Fix typo in release notes
2024-11-17 15:24:49 +01:00
Andreas Dangel
d60b234a47
Merge branch 'main' into issue-5314
2024-11-14 19:47:41 +01:00
Andreas Dangel
b050ce353e
[java] Propagate unknown type better when mref is unresolved ( #5330 )
...
Merge pull request #5330 from oowekyala:typeres-fix-inference-issue-mref
2024-11-14 19:18:43 +01:00
Andreas Dangel
32f55e22e3
[doc] Update release notes ( #5329 , #5330 )
2024-11-14 19:18:11 +01:00
Andreas Dangel
206ed8bbd3
[apex] Use case-insensitive input stream to avoid choking on Unicode escape sequences ( #5284 )
...
Merge pull request #5284 from wahajenius:main
2024-11-14 18:23:26 +01:00
Andreas Dangel
e1d4f27e19
Add @wahajenius as a contributor
2024-11-14 18:18:06 +01:00
Andreas Dangel
093683bc59
[doc] Update release notes ( #5284 , #5333 )
2024-11-14 18:17:49 +01:00
Andreas Dangel
509452577d
[apex] Add test case for #5333
2024-11-14 18:16:06 +01:00
Andreas Dangel
991bc2c41d
[apex] Report LexException when extracting comments
2024-11-14 18:12:13 +01:00
Andreas Dangel
8c58a0b3f5
Merge branch 'main' into pr-5284
2024-11-14 18:01:56 +01:00
Andreas Dangel
01b8ca765b
Add @chenguangqi as a contributor
2024-11-14 17:48:26 +01:00
Andreas Dangel
3fdbf7d6cb
[java] InsufficientStringBufferDeclaration: Fix CCE for Character
...
Fixes #5314
2024-11-14 17:48:08 +01:00
Andreas Dangel
bb729e02f4
Add @VitaliiIevtushenko as a contributor
2024-11-14 17:39:32 +01:00
Andreas Dangel
61eb116833
[java] PreserveStackTrace - consider instance type patterns
...
Fixes #5318
2024-11-14 17:39:07 +01:00
Andreas Dangel
634a525286
[html] Test for a closing tag when determining node positions
...
Fixes #5322
2024-11-14 17:07:37 +01:00
Andreas Dangel
bb2782241e
[java] Fix inference dependency issue with nested lambdas ( #5325 )
...
Merge pull request #5325 from oowekyala:typeres-fix-inference-issue
2024-11-14 15:51:08 +01:00
Andreas Dangel
2340168421
[doc] Update release notes ( #5324 )
2024-11-14 15:50:35 +01:00
Andreas Dangel
b05b8240a7
Merge branch 'main' into issue-5287
2024-11-07 19:51:00 +01:00
Andreas Dangel
ee7d6fed3e
[java] TooFewBranchesForSwitch - add test case from comment on #5311
2024-11-07 19:50:29 +01:00
Andreas Dangel
ca208d2241
Bump maven-pmd-plugin from 3.24.0 to 3.26.0
2024-11-07 12:40:18 +01:00
Andreas Dangel
9dcb697f13
Improve DeadlockTest
2024-11-07 12:38:11 +01:00
Andreas Dangel
733ac4bba0
[doc] Update release notes ( #5293 )
2024-11-04 11:23:49 +01:00
Andreas Dangel
1ee6494429
[java] Fix #5293 : Parse number of type parameters eagerly
...
When creating a LazyClassSignature or LazyMethodType, make sure
to parse the number of type parameters eagerly, so that AstDisambiguationPass
can get this number without triggering additional parsing.
2024-11-04 11:23:49 +01:00
Andreas Dangel
a1996554d8
[java] Add DeadlockTest for verifying #5293
...
- Improve logging for Parselock
Refs #5293
2024-11-04 11:23:48 +01:00
Andreas Dangel
3ed370f61d
Bump gems and bundler ( #5301 )
...
- Bump bundler from 2.5.3 to 2.5.22
- Bump activesupport from 7.2.1 to 7.2.2
- Bump execjs from 2.9.1 to 2.10.0
- Bump faraday from 2.11.0 to 2.12.0
- Bump i18n from 1.14.5 to 1.14.6
- Bump json from 2.7.2 to 2.7.5
- Bump logger from 1.6.0 to 1.6.1
- Bump rexml from 3.3.6/3.3.8 to 3.3.9
- Bump rufus-scheduler from 3.9.2 to 3.9.2
- Fixes https://github.com/pmd/pmd/security/dependabot/69
- Fixes https://github.com/pmd/pmd/security/dependabot/70
2024-10-31 15:07:25 +01:00
Andreas Dangel
5eaefd2841
[doc] Update release notes ( #1860 )
2024-10-31 15:06:32 +01:00
Andreas Dangel
a709be1dcb
[xml] Have pmd-xml Lexer in line with other antlr grammars ( #5296 )
...
Merge pull request #5296 from Monits:align-xml-antlr
2024-10-31 12:27:11 +01:00
Andreas Dangel
c079d8c544
[doc] Update release notes ( #5296 )
2024-10-31 12:25:59 +01:00
Andreas Dangel
7bfa581511
Merge branch 'main' into pr-5296
2024-10-31 12:17:57 +01:00
Andreas Dangel
6ae7404941
[xml] XMLLexer - Update deprecation notice
2024-10-31 12:17:27 +01:00
Andreas Dangel
16eafc89c2
[java] TooFewBranchesForSwitch - allow list of case constants
...
Fixes #5287
2024-10-27 16:24:05 +01:00
Andreas Dangel
d68d6c57ef
Bump asm from 9.7 to 9.7.1
...
This enables support for Java 24
Refs #5154
2024-10-27 15:53:00 +01:00
Andreas Dangel
9c098b2531
Bump pmd from 7.5.0 to 7.7.0 ( #5285 )
...
* Bump pmd from 7.5.0 to 7.7.0
* Bump build-tools from 27 to 28-SNAPSHOT
Needed to remove deprecation warnings
about old rule names
2024-10-27 15:20:28 +01:00
Andreas Dangel
3f697aff35
[ant] Formatter: avoid reflective access to determine console encoding
...
- for java 17+, there is public API to get the console encoding
-> no problem
- for older java versions, try to use system property
sun.jnu.encoding if it exists
- only then use the fall-backs with illegal reflective access
to private fields/methods on java.io.Console
- Also avoid using reflection utils from apache commons, instead
use reflection directly. The illegal access warnings are then
properly reported against our class
net.sourceforge.pmd.ant.Formatter.
Fixes #1860
2024-10-25 18:33:36 +02:00
Andreas Dangel
74ec6f45ee
[doc] Fix release notes for 7.7.0
...
Old rule name was actually DefaultLabelNotLastInSwitchStmt
2024-10-25 10:35:02 +02:00
Andreas Dangel
c179834288
[release] Prepare next development version [skip ci]
2024-10-25 09:28:54 +02:00
Andreas Dangel
7739f2b840
[release] prepare release pmd_releases/7.7.0
2024-10-25 09:07:54 +02:00
Andreas Dangel
919e73f6b0
Prepare pmd release 7.7.0
2024-10-25 08:47:38 +02:00
Andreas Dangel
e2d59c0e64
Fix #5244 : [java] UselessOperationOnImmutable: consider java.time.* types ( #5279 )
...
Merge pull request #5279 from adangel:issue-5244
2024-10-24 14:24:16 +02:00
Andreas Dangel
8f2d47dfb7
Fix #5270 : [apex] AvoidNonRestrictiveQueries: Fix regex for detecting LIMIT clause ( #5273 )
...
Merge pull request #5273 from adangel:issue-5270
2024-10-24 14:22:25 +02:00
Andreas Dangel
e6097d6090
[java] Rename rule SwitchStmtsShouldHaveDefault to NonExhaustiveSwitch ( #5267 )
...
Merge pull request #5267 from adangel:issue-4286
2024-10-24 14:21:04 +02:00
Andreas Dangel
5e83246469
[doc] Update release notes ( #5267 )
2024-10-24 14:16:43 +02:00
Andreas Dangel
62c2858f70
Fix #5257 : [java] NonCaseLabelInSwitch - support switch expressions ( #5256 )
...
Merge pull request #5256 from adangel:rename-nocaselabelswitch
2024-10-24 14:15:06 +02:00
Andreas Dangel
0d8878d58e
[java] Rename rule DefaultLabelNotLastInSwitch ( #5255 )
...
Merge pull request #5255 from adangel:rename-defaultlabelswitch
2024-10-24 14:10:16 +02:00
Andreas Dangel
4b23718aac
Fix #4813 : [java] SwitchStmtsShouldHaveDefault false positive with pattern matching ( #5252 )
...
Merge pull request #5252 from adangel:issue-4813
2024-10-24 14:08:12 +02:00
Andreas Dangel
3a501a0f6b
Fix #5249 and #5250 : [java] TooFewBranchesForSwitch ignore pattern matching and support switch expressions ( #5251 )
...
Merge pull request #5251 from adangel:issue-5249-5250
2024-10-24 14:06:03 +02:00
Andreas Dangel
36654ed52e
[java] UselessOperationOnImmutable: false positive on void results
2024-10-24 13:08:09 +02:00
Andreas Dangel
45b1217485
[java] TooFewBranchesForSwitch: don't report empty switch
...
Empty switch statements are already reported
by EmptyControlStatement
2024-10-24 12:51:42 +02:00
Andreas Dangel
662759755d
[java] SwitchStmtsShouldHaveDefault.xml: don't report empty switch
...
Empty switch statements are already reported
by EmptyControlStatement
2024-10-24 12:47:53 +02:00
Andreas Dangel
d9d6b57f2a
[java] TooFewBranchesForSwitch: report empty switch
...
This fixes a false negative
2024-10-24 12:38:45 +02:00
Andreas Dangel
6c35c73919
[java] SwitchStmtsShouldHaveDefault: use new PatternLabel attribute
2024-10-24 11:29:40 +02:00
Andreas Dangel
e37f82b62d
Merge branch 'main' into issue-4813
2024-10-24 11:24:17 +02:00
Andreas Dangel
6f5af6e585
[java] TooFewBranchesForSwitch: use new PatternLabel attribute
2024-10-24 11:22:47 +02:00
Andreas Dangel
66d879f707
Merge branch 'main' into issue-5249-5250
2024-10-24 11:20:39 +02:00
Andreas Dangel
93f6279ea7
Fix #3362 : [java] ImplicitSwitchFallThrough should consider switch expressions ( #5248 )
2024-10-24 10:46:59 +02:00
Andreas Dangel
156f293ef3
Fix #5030 : [java] SwitchDensity false positive with pattern matching ( #5247 )
2024-10-24 10:45:56 +02:00
Andreas Dangel
40ed4590be
[java] Improve UnitTestShouldUse{After,Before}Annotation rules to support JUnit5 and TestNG ( #5245 )
2024-10-24 10:43:48 +02:00
Andreas Dangel
7358289bbe
[cpp] Ignore literals and ignore identifiers capability to C++ CPD ( #5040 )
...
Merge pull request #5040 from jdupak:master
2024-10-24 10:18:39 +02:00
Andreas Dangel
a180258033
[doc] Update release notes ( #5040 )
2024-10-24 10:17:51 +02:00
Andreas Dangel
63675eaa18
[doc] Update release notes ( #5279 )
2024-10-22 21:03:22 +02:00
Andreas Dangel
49f2c15b83
[doc] Update release notes ( #5273 )
2024-10-22 21:01:42 +02:00
Andreas Dangel
15520211b5
Merge branch 'main' into issue-5270
2024-10-22 21:01:00 +02:00
Andreas Dangel
c4b8f18a36
[doc] Update release notes ( #5252 )
2024-10-22 20:58:37 +02:00
Andreas Dangel
c95817a75d
Merge branch 'main' into issue-4813
2024-10-22 20:55:38 +02:00
Andreas Dangel
6d55f6f053
[java] UselessOperationOnImmutable: consider java.time.* types
...
Fixes #5244
2024-10-18 17:42:44 +02:00
Andreas Dangel
5df7dccfb6
[doc] Update release notes ( #5255 )
2024-10-18 16:40:27 +02:00
Andreas Dangel
f4941433ce
Merge branch 'main' into rename-defaultlabelswitch
2024-10-18 16:39:12 +02:00
Andreas Dangel
665504decc
[doc] Update release notes ( #5251 )
2024-10-18 16:30:41 +02:00
Andreas Dangel
ef0db9a166
Merge branch 'main' into issue-5249-5250
2024-10-18 16:30:01 +02:00
Andreas Dangel
fd8fcd67d6
[doc] Update release notes ( #5248 )
2024-10-18 16:23:17 +02:00
Andreas Dangel
dafdc964a5
Merge branch 'main' into issue-3362
2024-10-18 16:22:17 +02:00
Andreas Dangel
81429a4628
[doc] Update release notes ( #5247 )
2024-10-18 16:21:02 +02:00
Andreas Dangel
fb94e2493c
Merge branch 'main' into issue-5030
2024-10-18 16:20:11 +02:00
Andreas Dangel
a0d4b38b53
[doc] Update release notes ( #5245 )
2024-10-18 16:16:54 +02:00
Andreas Dangel
f317e8bee5
Merge branch 'main' into java-unit-test-rules
2024-10-18 16:15:51 +02:00
Andreas Dangel
656b9052ad
[java] CouplingBetweenObjects: improve violation message ( #5278 )
...
Merge pull request #5278 from adangel:coupling-between-objects-message
2024-10-18 15:40:54 +02:00
Andreas Dangel
f0375d61dd
[doc] Update release notes ( #5278 )
2024-10-18 15:39:52 +02:00
Andreas Dangel
a24c8aa002
[doc] Update release notes
2024-10-18 15:36:28 +02:00
Andreas Dangel
5ffb953191
[java] CouplingBetweenObjects: improve violation message
...
When we add the actual count to the message,
we can more easily verify that the rule works
as expected.
2024-10-18 10:42:42 +02:00
Andreas Dangel
867b142ee4
Use plugin-classpath to simplify javacc-wrapper.xml
...
javacc is on the antrun plugin's classpath.
The javacc jar file doesn't need to be copied
explicitly.
2024-10-13 12:28:16 +02:00
Andreas Dangel
0ea42b94e0
Ignore generated antlr classes in coverage reports ( #5258 )
...
Merge pull request #5258 from Monits:ignore-generated-antlr
2024-10-13 12:27:30 +02:00
Andreas Dangel
f834b8744d
[doc] Update release notes ( #5258 )
2024-10-13 12:26:31 +02:00
Andreas Dangel
08bcf29190
[java] Fix #5253 : Support Boolean wrapper class for BooleanGetMethodName rule ( #5269 )
...
Merge pull request #5269 from Aryant-Tripathi:5253/feature/support-boolean-wrapper-in-get-method-rule
2024-10-12 18:04:14 +02:00
Andreas Dangel
85e0695ca6
Add @Aryant-Tripathi as a contributor
2024-10-12 18:02:07 +02:00
Andreas Dangel
47a59b1810
Add @phansys as a contributor
2024-10-12 18:01:45 +02:00
Andreas Dangel
e50234563e
[doc] Update release notes ( #5253 , #5269 )
2024-10-12 18:01:21 +02:00
Andreas Dangel
8ac55e7ad7
Bump org.junit from 5.8.2 to 5.11.2 ( #5274 )
...
Also update junit-platform from 1.10.2 to 1.11.2
- Supersedes and closes #5260
- Supersedes and closes #5259
2024-10-11 16:42:42 +02:00