16873 Commits

Author SHA1 Message Date
Andreas Dangel
c50f36e2ce Merge branch 'pr-2678'
[java] AvoidCatchingThrowable can not detect the case: catch (java.lang.Throwable t) #2678
2020-07-31 10:37:34 +02:00
Andreas Dangel
df2e5bfc67 [doc] Update release notes, refs #2678, fixes #2439 2020-07-31 10:36:13 +02:00
Andreas Dangel
d8642de069 Merge branch 'pr-2670'
[java] UnusedAssignment false positive with leaking this in constructor #2670
2020-07-30 21:46:55 +02:00
Andreas Dangel
6485852861 [doc] Update release notes, fixes #2668 2020-07-30 21:46:10 +02:00
Andreas Dangel
a5eb60243d [java] Deprecate ASTThrowStatement#getFirstClassOrInterfaceTypeImage()
Refs #2665
2020-07-30 11:37:29 +02:00
Andreas Dangel
5bff6ac52e Merge branch 'pr-2657'
[lang-test] Upgrade kotlintest to Kotest #2657
2020-07-30 10:31:43 +02:00
Andreas Dangel
b5315f556c [doc] Update release notes, fixes #2653 2020-07-30 10:30:53 +02:00
Andreas Dangel
eb683569af Merge branch 'pr-2617'
[core] Deprecate missing language attribute on rule definition #2617
2020-07-30 10:19:03 +02:00
Andreas Dangel
e663d5dd9b [doc] Update release notes, fixes #724 2020-07-30 10:18:18 +02:00
Andreas Dangel
3621bc3069 [doc] Update writing rules intro for explaining language attribute 2020-07-30 10:14:53 +02:00
Clément Fournier
dda3e14fc5 Merge branch 'red_field_init' 2020-07-29 15:02:11 +02:00
Clément Fournier
6fd5d7c66b Merge branch 'master' into red_field_init 2020-07-29 15:00:46 +02:00
Clément Fournier
df62984eb0 Update release notes, refs #2677 2020-07-29 14:59:48 +02:00
Mykhailo Palahuta
91b942b1dc [java]AvoidCatchingThrowable can not detect the case: catch (java.lang.Throwable t) 2020-07-28 17:11:14 +03:00
Mykhailo Palahuta
a707d94513 [java] RedundantFieldInitializer can not detect a special case for char initialize: char foo = '\0'; 2020-07-28 15:54:01 +03:00
Clément Fournier
c737b194f5 Ignore threading
We consider that reaching field defs are observable
at the point of the leak. But we assume the ctor
executes atomically, so following def chains work
normally.

Maybe, if the field is volatile, we should be more
conservative and assume that all its assignments after
any leak are observable. This looks very rare though
2020-07-27 17:02:22 +02:00
Clément Fournier
554c8031ee Handle this reference leak in ctor 2020-07-27 16:15:47 +02:00
Andreas Dangel
fe82f6a448 Dogfood - update PMD to 6.26.0, update build-tools 2020-07-25 15:27:24 +02:00
Andreas Dangel
9c141bd9b2 Prepare next development version 2020-07-25 13:47:02 +02:00
Andreas Dangel
49ab75aeb7 [maven-release-plugin] prepare for next development iteration 2020-07-25 13:45:36 +02:00
Andreas Dangel
a9632e2a06 [maven-release-plugin] prepare release pmd_releases/6.26.0 pmd_releases/6.26.0 2020-07-25 13:45:27 +02:00
Andreas Dangel
aba1b3399a Prepare pmd release 6.26.0 2020-07-25 13:36:28 +02:00
Andreas Dangel
8a6975f8ec [apex] Improve AST for try-catch-finally statements 2020-07-24 16:55:48 +02:00
Andreas Dangel
6464b349cf [jsp] Remove usage of deprecated ImportWrapper (#2658) 2020-07-24 11:38:37 +02:00
Andreas Dangel
900635b664 [apex] Update jorje lib to 2020-06-04-ba31c0 2020-07-24 10:23:23 +02:00
Andreas Dangel
0738797738 Merge branch 'pr-2658'
[core][java] Deprecate pmd-core::lang.rule.ImportWrapper #2658
2020-07-24 09:47:32 +02:00
Andreas Dangel
e4b2c4ccbd Merge branch 'pr-2632'
[java] ArrayIsStoredDirectly false positive with private constructor/… #2632
2020-07-24 09:45:29 +02:00
Andreas Dangel
4444ef279d Merge branch 'pr-2631'
[java] NPathComplexity can't handle switch expressions #2631
2020-07-24 09:42:58 +02:00
Andreas Dangel
b2418a99bf Update guava 2020-07-24 09:33:13 +02:00
Clément Fournier
fb6ec96bad Merge branch 'issue-2546' 2020-07-23 15:52:58 +02:00
Clément Fournier
2fad9acfbd Merge branch 'master' into issue-2546 2020-07-23 15:52:30 +02:00
Clément Fournier
77934a26b7 Merge branch 'issue-2598' 2020-07-23 15:51:25 +02:00
Clément Fournier
6f9aedfaeb Merge branch 'master' into issue-2598 2020-07-23 15:51:13 +02:00
Clément Fournier
d5a3ffe387 Merge branch 'issue-2181' 2020-07-23 15:50:26 +02:00
Clément Fournier
fce20e0b7c Merge branch 'master' into issue-2181 2020-07-23 15:49:54 +02:00
Clément Fournier
6a9a834c67 Same for NPath 2020-07-23 14:51:26 +02:00
Clément Fournier
9a47d658e6 Handle switch exprs properly 2020-07-23 14:42:29 +02:00
Clément Fournier
fbeaa5bc74 Merge branch 'master' into issue-2625 2020-07-23 14:26:33 +02:00
Clément Fournier
6fdfac23c8 Merge branch 'issue-2615' 2020-07-23 14:16:04 +02:00
Clément Fournier
d239987d26 Merge branch 'master' into issue-2615 2020-07-23 14:15:47 +02:00
Andreas Dangel
55a6b5bef5 [doc] Fix unit tests on Windows 2020-07-23 13:53:52 +02:00
Andreas Dangel
8c06dbcd4c [doc] Improve performance of rule doc generator
Now we walk PMD source tree only once to resolve the
file names to rulesets and rules instead walking the
whole tree again for each ruleset/rule.
2020-07-23 13:03:19 +02:00
Andreas Dangel
6ee17d44f7 [doc] Fix javadoc in release notes for constructor 2020-07-23 11:44:39 +02:00
Andreas Dangel
62666213ba Deprecate pmd-core::lang.rule.ImportWrapper 2020-07-23 11:15:03 +02:00
Andreas Dangel
5c1a11c0b4 Merge branch 'pr-2652'
[java] UseCollectionIsEmpty can not detect the case this.foo.size() #2652
2020-07-23 10:47:02 +02:00
Andreas Dangel
f1fa375341 [doc] Update release nots, fixes #2543, refs #2652 2020-07-23 10:45:56 +02:00
Andreas Dangel
6b44e326ce [java] UseCollectionIsEmpty: improve test cases 2020-07-23 10:44:22 +02:00
Andreas Dangel
ed77b3dc46 Merge branch 'pr-2651'
[java] False negative: LiteralsFirstInComparisons for methods... (2569) #2651
2020-07-23 10:15:09 +02:00
Andreas Dangel
7b1ccf4837 [doc] Update release notes, fixes #2569, refs #2651 2020-07-23 10:13:40 +02:00
Andreas Dangel
66d243efa1 [java] LiteralsFirstInComparison: additional test case 2020-07-23 10:10:26 +02:00