Commit Graph

7693 Commits

Author SHA1 Message Date
b25c16f94d Remove usages of PMD.EOL 2023-02-20 15:17:41 +01:00
2c3f945b4d Merge branch 'master' into pmd/7.0.x 2023-02-16 20:53:46 +01:00
af7640f136 [java] Fix #4393 MissingStaticMethodInNonInstantiatableClass: Fix false-positive for field-only class 2023-02-16 10:48:32 +01:00
eee8b95a68 Merge pull request #4060 from oowekyala:pmd7-language-lifecycle
[core] Language lifecycle #4060
2023-02-10 10:34:38 +01:00
64a3ec45a5 Remove forgotten log call 2023-02-08 12:49:58 +01:00
d31b8f618c Fix #4359 2023-02-08 12:43:37 +01:00
00cc3ba9b2 Add tests
Refs #4355
2023-02-08 12:24:45 +01:00
9401208c97 Merge branch '7.0.x' into pr/4355 2023-02-07 19:34:09 +01:00
db40a769f1 Details 2023-02-04 20:25:16 +01:00
7a31f67ee5 Fix some details 2023-02-04 19:53:38 +01:00
ef365cd9aa Merge branch '7.0.x' into pmd7-language-lifecycle 2023-02-02 01:04:53 +01:00
a7cf226dae Merge branch '7.0.x' into pmd7-language-lifecycle 2023-01-30 16:28:19 +01:00
014c28bb1e Merge branch 'pmd/7.0.x' into pmd7-junit5-part3 2023-01-30 13:36:15 +01:00
643b78757d Merge pull request #4371 from oowekyala:diagnostic-ruleset
[java] Move TypeResTest rule out of security.xml #4371
2023-01-30 12:33:53 +01:00
0547d907b0 Merge pull request #4356 from fix-closeresource-rule
[java] Fix NPE in CloseResourceRule #4356
2023-01-30 11:22:35 +01:00
adf6766288 Fix unit tests 2023-01-30 10:42:26 +01:00
d8b41bab6e Merge branch 'pmd/7.0.x' into pr-4354 2023-01-30 10:21:50 +01:00
bfba220219 Fix unit test 2023-01-30 09:40:32 +01:00
d2db3954e1 Merge branch 'pmd/7.0.x' into pr-4351 2023-01-30 09:27:25 +01:00
cde72a6367 Merge branch '7.0.x' into pr/4365 2023-01-29 16:37:09 +01:00
5772440a79 [maven-release-plugin] prepare for next development iteration 2023-01-28 10:31:53 +01:00
de1b12b060 [maven-release-plugin] prepare release pmd_releases/6.54.0 2023-01-28 10:31:46 +01:00
85b41623cf Merge pull request #4353 from oowekyala/pmd7.micro-opts
[core] Micro optimizations for Node API
2023-01-27 19:44:44 -03:00
ba18f3b364 Improve CommentSize 2023-01-27 16:45:03 +01:00
a9c61cc49d Move TypeResTest rule out of security.xml
Fix #4367
2023-01-27 16:43:42 +01:00
3e30e67680 Revert changes to CommentSize 2023-01-27 16:12:55 +01:00
8834c6e981 Improve CommentSize 2023-01-27 16:09:46 +01:00
ad198cbcf9 Dogfood 2023-01-27 15:52:55 +01:00
1a366e3683 Merge branch '7.0.x' into pmd7.micro-opts 2023-01-27 15:48:17 +01:00
29c2944402 Fix java module 2023-01-27 14:15:31 +01:00
32d95a46e8 Merge branch '7.0.x' into pmd7-language-lifecycle 2023-01-27 13:55:39 +01:00
3d530458bb Remove junit and related dependencies 2023-01-27 11:49:03 +01:00
0d2acf6000 Merge branch 'pmd/7.0.x' into pmd7-junit5-part3 2023-01-27 10:02:58 +01:00
120e89f81b Merge 'master' into pmd/7.0.x 2023-01-27 09:18:07 +01:00
0883b186ee Update token id
- The grammar now produces IDENTIFIER as token 74, and TEXT_BLOCK as 72
2023-01-26 19:36:37 -03:00
312ebc173d Allow the escapes new line sequence 2023-01-26 19:36:20 -03:00
619e014d0d Properly define TEXT_BLOCK tokens 2023-01-26 18:59:55 -03:00
390b040432 Fix TextBlock grammar 2023-01-26 16:43:30 -03:00
146f9077d2 Add failing test case for #4364 2023-01-26 16:42:49 -03:00
8bc888131b Merge branch 'pmd/7.0.x' into pr-4235 2023-01-26 16:58:15 +01:00
521e020100 Prevent double counting time
- First off, all LPS are benchmarked in the AstProcessor, having this here was inconsistent
 - Since these passes can be triggered by the symbol table LPS phase, we ended up double counting total time.
 - This however puts all disambiguation passes done for symbol table as symbol table cost, which although accurate,
may not help to identify speed up opportunities as clearly, but the benchmark is not a profiling tool.
2023-01-25 17:52:53 -03:00
c5d410367a Remove numbers from Java LPS names
- The numbers relate to how they are executed, but don't necessarilly imply a required order
(ie: Comment Assignment could be done at any point)
 - Since the benchmark report sorts by time spent on each one, the numbered labels are simply confusing
2023-01-25 17:06:24 -03:00
89f959200a Merge branch '7.0.x' into clem.pmd7-cpd-deprecations 2023-01-25 17:00:10 +01:00
596cc2694d Merge pull request #4357 from pmd/fix-usediamongoperator-rule
[java] Fix IllegalStateException in UseDiamongOperator rule
2023-01-25 10:19:29 -03:00
869752bc34 Shortcut equivalence check if ctdecl is unresolved 2023-01-25 12:09:08 +01:00
8ef6042eb4 Suppress the overload resolution failure and continue
- This is probably not the best solution (maybe the Infer logic needs to remove
the check and handle it seamlessly?) but that code is too complex for me to make that call
2023-01-25 01:55:59 -03:00
378ba33f59 Add failing test for UseDiamongOperatorRule
- An IllegalStateException is produced when the inference context corresponds
to an invocation of an unresolved method.
 - The rule effectively can't determine if the diamond oeprator can be used, but the current message of
"overload resolution is not complete" is noisy, not actionable to the user
(the issue is a missing class in the auxclasspath, not the overload resolution),
and prevents the rule from continuing to analyze the current file.
2023-01-25 01:52:09 -03:00
25afa04d76 Fix failing test
- Type inference now leads to runtime types being used, even if it's on a MethodCall expression
2023-01-25 01:47:02 -03:00
fe568a0161 Add failing test using type inference 2023-01-25 01:46:35 -03:00
bbacf3c8b1 Avoid NPEs during type inference
- Since annotated primitives are now stand-alone instances,
ensure they share the supertypes for the unnanotated version,
otherwise, NPEs occur during inference.
2023-01-25 01:41:56 -03:00