429 Commits

Author SHA1 Message Date
Andreas Dangel
3627167efa [java] Update rules TooManyMethods and TooManyFields
TooManyRules is now a XPath rule as well
2022-01-14 09:13:37 +01:00
Andreas Dangel
e273ca641f Merge pull request #3715 from oowekyala:update-AvoidCatchingGenericException
[java] Update rule AvoidCatchingGenericException #3715

* pr-3715:
  [java] AvoidCatchingGenericException - consider multi-catch
  Update rule AvoidCatchingGenericException
2022-01-14 08:32:52 +01:00
Andreas Dangel
0bf76602fb Merge pull request #3660 from
adangel:pmd7-update-AvoidLosingExceptionInformation


[java] Update rule AvoidLosingExceptionInformation #3660

* pr-3660:
  [java] Update rule AvoidLosingExceptionInformation
2022-01-14 08:31:54 +01:00
Andreas Dangel
3927046ada Merge branch 'pmd/7.0.x' into pr-3715 2022-01-13 19:03:47 +01:00
Andreas Dangel
393f26e6cd Merge pull request #3717 from oowekyala:update-SimplifiableTestAssertion
[java] Update rule SimplifiableTestAssertion #3717

* pr-3717:
  Update SimplifiableTestAssertion
2022-01-13 18:58:54 +01:00
Andreas Dangel
54127c281f Merge branch 'master' into pmd/7.0.x 2022-01-13 18:53:09 +01:00
Andreas Dangel
a77c7234b9 Merge pull request #3651 from adangel:pmd7-update-MethodWithSameNameAsEnclosingClass
[java] Update rule MethodWithSameNameAsEnclosingClass #3651

* pr-3651:
  Change message of MethodWithSameNameAsEnclosingClass
  [java] Update rule MethodWithSameNameAsEnclosingClass
2022-01-11 17:35:48 +01:00
Clément Fournier
9e778c8c58 Merge branch '7.0.x' into pr/3665 2022-01-05 00:59:26 +01:00
Clément Fournier
ef658c76a3 Update rule AvoidCatchingGenericException
Refs #2701
2022-01-05 00:43:32 +01:00
Clément Fournier
0389db2f22 Update SimplifiableTestAssertion 2022-01-05 00:42:34 +01:00
Clément Fournier
162738d3a3 Merge branch '7.0.x' into pr/3659 2022-01-04 23:00:30 +01:00
Clément Fournier
7fcc1c8850 Merge branch '7.0.x' into pr/3649 2022-01-04 17:01:26 +01:00
Clément Fournier
75ccb8513d Merge branch '7.0.x' into pr/3662 2022-01-02 17:14:02 +01:00
Clément Fournier
392912e5d9 Merge branch '7.0.x' into pr/3664 2022-01-02 17:07:35 +01:00
Clément Fournier
58a7c520d2 Merge branch '7.0.x' into pr/3661 2022-01-02 15:03:35 +01:00
Clément Fournier
b0cc4a9a60 Merge branch '7.0.x' into pr/3655 2022-01-02 15:00:02 +01:00
Clément Fournier
3a9173f9f2 Merge branch '7.0.x' into pr/3654 2022-01-02 14:57:03 +01:00
Clément Fournier
3979ae6a77 Merge branch '7.0.x' into pr/3659 2021-12-31 16:27:57 +01:00
Clément Fournier
4498b652fa Merge branch '7.0.x' into pr/3658 2021-12-31 16:07:48 +01:00
Clément Fournier
9a29b1cf96 Merge branch 'pmd/7.0.x' into pmd7-update-DoNotExtendJavaLangThrowable 2021-12-31 15:55:59 +01:00
Clément Fournier
9f6a36bd41 Merge branch '7.0.x' into pr/3655 2021-12-31 15:33:07 +01:00
Clément Fournier
793572a1e7 Merge branch '7.0.x' into pr/3653 2021-12-31 15:23:14 +01:00
Clément Fournier
8aa3704af4 Merge branch '7.0.x' into pr/3652 2021-12-31 15:20:51 +01:00
Andreas Dangel
5bdd5cd1be [java] Update rule AvoidCallingFinalize
Converted the rule to XPath
2021-11-30 11:57:04 +01:00
Andreas Dangel
de043eba39 [java] Update rule AvoidCatchingNPE 2021-11-30 11:38:59 +01:00
Andreas Dangel
ae81189fae [java] Update rules AvoidFieldNameMatching{Method,Type}Name
Converted both rules to XPath
2021-11-30 11:09:03 +01:00
Andreas Dangel
3d077b2d1b [java] Update rule AvoidLiteralsInIfCondition 2021-11-30 10:52:10 +01:00
Andreas Dangel
71ffd62abc [java] Update rule AvoidLosingExceptionInformation 2021-11-30 10:18:11 +01:00
Andreas Dangel
fa02e9dc2a [java] Update rule BeanMembersShouldSerialize
* JavaRuleUtil::isGetter now only accepts "is"-Prefixed getters
  for boolean methods.
* AbstractLombokAwareRule has been deleted
* One test case has been deleted - it tested that the rule
  worked without a auxclasspath
* Another test case has been ignored - in order to resolve
  imports on demand, lombok would need to be on the test aux classpath
2021-11-30 10:04:59 +01:00
Andreas Dangel
f3625abff3 [java] Update rules CallSuperFirst and CallSuperLast 2021-11-30 09:07:35 +01:00
Andreas Dangel
9425684882 [java] Update rule DetachedTestCase 2021-11-29 10:09:28 +01:00
Andreas Dangel
ac4afff2fd [java] Update rule DoNotExtendJavaLangThrowable
Use typeresolution
2021-11-29 09:57:22 +01:00
Andreas Dangel
9a1908c0a2 [java] Update rule DoNotHardCodeSDCard 2021-11-29 09:52:20 +01:00
Andreas Dangel
d66d8828ab [java] Update rule DoNotThrowExceptionInFinally 2021-11-29 09:45:19 +01:00
Andreas Dangel
dd8b25802d [java] Update rule MethodWithSameNameAsEnclosingClass
Converted the rule into a simle XPath rule
2021-11-29 09:37:27 +01:00
Andreas Dangel
96936354ce [java] Update rule MoreThanOneLogger 2021-11-29 09:30:52 +01:00
Andreas Dangel
fd5457d554 [java] Update rule NullAssignment 2021-11-29 09:22:44 +01:00
Andreas Dangel
f36b99fbd7 Merge branch 'master' into pmd/7.0.x 2021-11-27 12:17:22 +01:00
Andreas Dangel
bad17fe6eb [ci] Add --sparse option when publishing documentation
This is needed since git 2.34.0
See https://github.com/git/git/blob/master/Documentation/RelNotes/2.34.0.txt
2021-11-27 12:04:18 +01:00
Andreas Dangel
6e63a15c94 Merge branch 'master' into pmd/7.0.x 2021-11-26 11:03:17 +01:00
Andreas Dangel
b77b74e6aa Merge pull request #3609 from adangel:pmd7-update-PrimitiveWrapperInstantiation
[java] Update rule PrimitiveWrapperInstantiation #3609

* pr-3609:
  [java] PrimitiveWrapperInstantiation - reuse InvocationMatcher
  Bump build-tools to 18-SNAPSHOT for ReuseInvocationMatcher rule
  [java] Update rule PrimitiveWrapperInstantiation
2021-11-26 08:39:15 +01:00
Andreas Dangel
9a1b5550ab Merge branch 'pmd/7.0.x' into pmd7-update-LogicInversion 2021-11-25 21:37:02 +01:00
Andreas Dangel
4bd4211826 Merge branch 'pmd/7.0.x' into pmd7-update-PrimitiveWrapperInstantiation 2021-11-25 21:35:37 +01:00
Andreas Dangel
2c2ffaa834 [ci] Exclude checkstyle's InputJavaParserNoFreezeOnDeeplyNestedLambdas 2021-11-25 16:58:08 +01:00
Andreas Dangel
482e83c15c Merge branch 'pmd/7.0.x' into pmd7-update-PrimitiveWrapperInstantiation 2021-11-25 12:48:17 +01:00
Andreas Dangel
822a67c663 Merge pull request #3611 from adangel:pmd7-update-ProperLogger
[java] Update rule ProperLogger #3611

* pr-3611:
  [java] Update rule ProperLogger
2021-11-25 12:07:32 +01:00
Andreas Dangel
abe9083da8 Merge pull request #3610 from adangel:pmd7-update-SimpleDateFormatNeedsLocale
[java] Update rule SimpleDateFormatNeedsLocale #3610

* pr-3610:
  [java] Update rule SimpleDateFormatNeedsLocale
2021-11-25 12:06:53 +01:00
Andreas Dangel
f16e0d72c2 Merge pull request #3608 from adangel:pmd7-update-FinalFieldCouldBeStatic
[java] Update rule FinalFieldCouldBeStatic #3608

* pr-3608:
  [java] Update rule FinalFieldCouldBeStatic
2021-11-25 12:06:07 +01:00
Andreas Dangel
a9c3c019fe Merge branch 'master' into pmd/7.0.x 2021-11-25 11:50:31 +01:00
Andreas Dangel
eb24a20460 Merge branch 'master' into java17-integration-test 2021-11-25 10:19:13 +01:00