28154 Commits

Author SHA1 Message Date
05e7724185 [java] Add new rule UseEnumCollections 2024-05-23 19:32:16 +02:00
f30b535f61 Update pmd-designer 7.2.0-SNAPSHOT 2024-05-23 18:20:08 +02:00
3f5dc971e0 Add @pablogomez2197 as a contributor 2024-05-23 16:18:40 +02:00
4d07d80c93 [apex] UnusedLocalVariable - support concat strings for binding vars
Fixes #5000
2024-05-23 16:13:45 +02:00
b284ca6ec8 Merge branch 'pr-5035' 2024-05-23 09:47:04 -03:00
b2f6c9a85a Update changelog, refs #5029 2024-05-23 09:46:43 -03:00
d7025a65dc [doc] Update all-contributors
- Add @bobalicious as a contributor
- Update @mluckam as a contributor
- Add @mdagcilar as a contributor
- Add @kesslerj as a contributor
- Add @Gold856 as a contributor
2024-05-23 11:32:46 +02:00
a4edb67054 [java] Make naming conventions rule skip unnamed variables (#5004)
Merge pull requets #5004 from oowekyala:issue4954-local-var-unnamed
2024-05-23 11:26:55 +02:00
a936852ba2 Add @cowwoc as a contributor 2024-05-23 11:25:32 +02:00
f36e25dd04 Merge branch 'master' into pr-5004 2024-05-23 11:19:09 +02:00
fe8920a4fc [doc] Update release notes (#4954, #5028, #5004) 2024-05-23 10:25:06 +02:00
a54dc1ea89 [java] Add Java8TreeDumpTest for UnnamedVariable
Refs #5004
2024-05-23 10:24:31 +02:00
9e72ee26ae [java] Fix #4990 - Add attribute @PackageQualifier to ASTClassType
Merge pull request #5005 from oowekyala:issue4990-package-qualifier-attribute
2024-05-23 09:46:55 +02:00
5bc0ab0403 [doc] Update release notes (#4990, #5005) 2024-05-23 09:45:08 +02:00
ec30fe1b01 Update gems
- Bump nokogiri from 1.16.2 to 1.16.5
- Bump rexml from 3.2.6 to 3.2.8

Fixes https://github.com/pmd/pmd/security/dependabot/52
Fixes https://github.com/pmd/pmd/security/dependabot/53
Fixes https://github.com/advisories/GHSA-r95h-9x8f-r3f7
Fixes https://github.com/pmd/pmd/security/dependabot/56
Fixes https://github.com/pmd/pmd/security/dependabot/57
Fixes https://github.com/advisories/GHSA-vg3r-rm7w-2xgh
Fixes CVE-2024-35176
2024-05-23 08:43:31 +02:00
5b24bbea87 Fix #5029 - infinite recursion in TypeOps::projectUpwards 2024-05-22 17:00:25 +02:00
bbec7fd3a2 Add test for #4990
Ref #4946
2024-05-21 16:43:18 +02:00
6be50ec235 Merge branch 'master' into issue4990-package-qualifier-attribute 2024-05-21 16:10:34 +02:00
85c4f0f9ce Merge branch 'master' into kotest-fixes 2024-05-21 15:58:20 +02:00
762181d715 Merge branch 'pr/5020'
Ref #5020
2024-05-21 15:55:50 +02:00
d005ed197f Update release notes, ref #5020 2024-05-21 15:52:31 +02:00
a754bea5cf Merge branch 'master' into pr/5020 2024-05-21 15:47:28 +02:00
8b50584af4 Add some tests 2024-05-21 15:46:56 +02:00
2d33d05d76 [java] Refactor kotest ParserTestSpec tests
- introduce parserTestContainer
- use either parserTest or parserTestContainer with should/doTest
- parserTestGroup is now private
  - this is to limit DSL options - with too many options maintainability suffers
  - parserTestContainer should be used instead
  - there were only 2 test classes, that used parserTestGroup
2024-05-20 13:25:06 +02:00
0fe477ec06 Fixups from PR review
- release notes: API Changes
- fix javadoc since tags
- improve messages in ant task for deprecated skipLexicalErrors
2024-05-20 09:25:06 +02:00
603187e41b Update javadoc 2024-05-17 16:37:37 +02:00
10c78f26de [cpd] Deprecate skipLexicalErrors 2024-05-17 16:20:23 +02:00
b624b41673 [ant] Add new CPD parameter failOnError 2024-05-17 16:20:23 +02:00
06efd65b16 [cli] Rename new parameter to be --no-fail-on-error 2024-05-17 16:19:58 +02:00
2d9385f462 Merge branch 'master' into cli-exit-codes-processing-errors 2024-05-17 14:01:57 +02:00
f1ac913a8b Update test references, add tests 2024-05-17 13:29:36 +02:00
04214b43ca Improve treatment of lambdas 2024-05-17 12:47:45 +02:00
3be6df212c [doc] Update release notes (#5009) 2024-05-17 10:51:06 +02:00
7d0355bae1 Use build-tools 25-SNAPSHOT
Refs pmd/build-tools#31
2024-05-17 10:51:05 +02:00
087893a64d [java] Remove unused vars 2024-05-17 10:51:05 +02:00
f009de5831 [java] Ensure there is a child test case for ParserTestSpec tests 2024-05-17 10:51:05 +02:00
24c1093bf1 [java] Fix test BranchingExprsTestCases
- Renamed to BranchingExprsTests so that it is picked up by surefire
- Fix cast context
2024-05-17 10:51:04 +02:00
e11376f1ef Fix AvoidUsingOctalValue false-positive 2024-05-17 00:32:13 -04:00
ae76c8f293 Merge pull request #5021 from oowekyala/issue4885-method-not-accessible
[java] Remove redundant interface declarations in pmd-java
2024-05-16 13:18:19 -03:00
419ff13fe7 Add new tests 2024-05-16 18:04:01 +02:00
b640194f76 Fix FN with ternary 2024-05-16 16:38:13 +02:00
bd24b185ea Fix another FN with numeric contexts 2024-05-16 15:44:46 +02:00
798b2c31a1 Fix FN 2024-05-16 15:29:17 +02:00
4213083554 Remove redundant interface declarations in pmd-java
Related to #4885
2024-05-16 14:20:04 +02:00
ed18c9d746 Fix PMD warning 2024-05-16 13:52:29 +02:00
eb17c9aab7 Fix many problems with UnnecessaryBoxing 2024-05-15 21:49:35 +02:00
4cfe90cfdc Cleanup symtable factory 2024-05-15 09:36:39 +02:00
7341e3c880 Add version check 2024-05-15 09:19:33 +02:00
3ec3903425 Fix javadoc error 2024-05-14 22:50:22 +02:00
625fb36b14 Fix #4924 - UnnecessaryBoxing FP in lambda
Change a bit the behavior for some test cases.
Previously the rule reported necessary boxing
that could be simplified another way, but that
is an edge case and not worth complexifying
the rule
2024-05-14 22:45:22 +02:00