19704 Commits

Author SHA1 Message Date
Andreas Dangel
8b71fe6fd6 Merge pull request #4231 from adangel:issue-4175-ImmutableField-deprecate-ignoredAnnotations
[java] ImmutableField - deprecate property ignoredAnnotations #4231
2022-11-25 18:44:59 +01:00
Andreas Dangel
93587f0b1f Merge pull request #4203 from adangel:issue-4177-InvalidJavaBean
[java] New Rule InvalidJavaBean #4203
2022-11-25 18:38:41 +01:00
Andreas Dangel
9be37acaeb Merge pull request #4196 from adangel:issue-4176-NonSerializableClass
[java] Implement rule NonSerializableClass #4196
2022-11-25 18:32:38 +01:00
Andreas Dangel
8a5d964176 [java] Restore BeanMembersShouldSerializeRule as deprecated class 2022-11-25 18:30:39 +01:00
Andreas Dangel
44cc43ce2b Merge pull request #4232 from deining:fix/typos
[doc] Fixing typos #4232
2022-11-25 18:26:02 +01:00
Andreas Dangel
db6a30c88a [doc] Update release notes (#4232) 2022-11-25 18:25:07 +01:00
Andreas Dangel
afa4e70c8a Add @deining as a contributor 2022-11-25 18:24:54 +01:00
Andreas Dangel
a5cce75038 Merge pull request #4227 from LynnBroe:issue4225
[java] Fix #4225 MissingStaticMethodInNonInstantiatableClass: Exclude lombok's @NoArgsConstructor annotation #4227
2022-11-25 18:14:25 +01:00
Andreas Dangel
ddb60c51ac [doc] Update release notes (#4225, #4227) 2022-11-25 17:59:19 +01:00
Andreas Dangel
1cecabcec4 [java] MissingStaticMethodInNonInstantiatableClass - update test cases 2022-11-25 17:57:31 +01:00
Andreas Dangel
cb7c07f365 Merge pull request #4228 from LynnBroe:issue4224
[java] Fix #4224 MissingStaticMethodInNonInstantiatableClass: Exclude lombok's UtilityClass #4228
2022-11-25 17:51:17 +01:00
Andreas Dangel
bc210b41b2 [doc] Update release notes (#4224, #4228) 2022-11-25 17:50:14 +01:00
Andreas Dangel
7b55f9360c [java] Refactor/reformat xpath query for MissingStaticMethodInNonInstantiatableClass 2022-11-25 17:47:45 +01:00
Andreas Deininger
5b2243aff1 Fixing typos 2022-11-25 17:32:49 +01:00
Andreas Dangel
edcfe21131 Update pmdtester and other gems 2022-11-25 15:15:10 +01:00
Andreas Dangel
05a6daad2d Merge pull request #4226 from aaronhurst-google:feature/replace-jorje-for-visualforce
[visualforce] Replace uses of Jorje types in pmd-visualforce #4226
2022-11-25 15:12:22 +01:00
Andreas Dangel
3bd1283ab1 [doc] Update release notes (#4226) 2022-11-25 15:11:51 +01:00
Andreas Dangel
faa5bf6e00 [doc] Document deprecated API 2022-11-25 15:10:30 +01:00
Lynn
cdaf0d2500 Merge branch 'master' into issue4225 2022-11-25 21:34:48 +08:00
Lynn
4c38c5df8b Merge branch 'master' into issue4224 2022-11-25 21:32:04 +08:00
Andreas Dangel
7f7498dfba Merge pull request #4213 from adangel:issue-4172-InvalidLogMessageFormat
[java] InvalidLogMessageFormat - check for formatted calls #4213
2022-11-25 10:56:21 +01:00
Andreas Dangel
08784bd9c4 Merge pull request #4209 from adangel:issue-4174-MissingStaticMethodInNonInstantiatableClass
[java] MissingStaticMethodInNonInstantiatableClass - check for alloca… #4209
2022-11-25 10:52:55 +01:00
Andreas Dangel
21f24207ff Merge pull request #4193 from adangel:issue-4189-AbstractClassWithoutAnyMethod
[java] AbstractClassWithoutAnyMethod - exclude lombok constructor annotations #4193
2022-11-25 10:50:27 +01:00
Andreas Dangel
7d954dc8b3 Merge pull request #4192 from adangel:issue-4188-ClassWithOnlyPrivateConstructorsShouldBeFinal
[java] ClassWithOnlyPrivateConstructorsShouldBeFinal: Exclude lombok annotations #4192
2022-11-25 10:34:25 +01:00
Andreas Dangel
366bb3c651 Merge pull request #4190 from adangel:issue-4183-AvoidArrayLoops
[java] Fix #4183 AvoidArrayLoops false positive #4190
2022-11-25 10:30:56 +01:00
LynnBroe
db8636c2ad revise 2022-11-25 16:33:22 +08:00
LynnBroe
7a30d7e2b4 support RequiredArgsConstructor and AllArgsConstructor 2022-11-25 14:48:11 +08:00
Aaron Hurst
1029d6b24d Fix checkstyle violations.
Change-Id: I0aa6ecfeb343f2e0b48d2ebfd176a877a72f40f6
2022-11-24 20:35:42 +00:00
Aaron Hurst
e62b71f89a Add back DataType.fromBasicType(BasicType) and test.
Isolate references to BasicType inside method implementation.

Change-Id: I4be2ad5b8b42fb7a84da0755106d8f0b08034690
2022-11-24 15:55:43 +00:00
Andreas Dangel
a28705a379 [java] ImmutableField - deprecate property ignoredAnnotations
Fixes #4175
2022-11-24 15:19:46 +01:00
Andreas Dangel
8a0a196886 Merge branch 'master' into issue-4177-InvalidJavaBean 2022-11-24 11:19:36 +01:00
LynnBroe
45a3d451af fix #4224 2022-11-23 16:30:55 +08:00
LynnBroe
376d4fbfb8 fix #4225 2022-11-23 16:11:05 +08:00
Aaron Hurst
c9e21cd4eb Tweak terminology: the map is case-normalized not case-insensitive.
Change-Id: I3499dc615262612b6c220b7840d3ab8cca87c226
2022-11-22 21:38:03 +00:00
Aaron Hurst
5ad37f6757 Replace uses of Jorje types in pmd-visualforce.
Summary: store and compare primitive type names instead of using BasicType enum.

Udpate unit tests and add a few more cases.

Change-Id: If4e5bb33d11793813839b82cf8beb043aad2ce34
2022-11-22 20:15:39 +00:00
Andreas Dangel
184f2031e2 Merge pull request #4207 from adangel:doc-add-scala-sidebar
[doc] List all languages in rule doc #4207
2022-11-18 15:59:29 +01:00
Andreas Dangel
1f9691b7f3 [doc] Update release notes (#4207) 2022-11-18 15:59:10 +01:00
Andreas Dangel
78ac4bc387 [java] NonSerializableClass - Fix NPE 2022-11-18 11:19:23 +01:00
Andreas Dangel
7d0f60891c [java] NonSerializableClass - support serialPersistentFields 2022-11-18 10:12:27 +01:00
Andreas Dangel
f6e51b1457 [java] NonSerializableClass - new property "checkAbstractTypes"
By default, ignore abstract types like abstract classes, interfaces, generic types and java.lang.Object.
2022-11-17 17:09:43 +01:00
Andreas Dangel
aed682453b Merge branch 'master' into issue-4176-NonSerializableClass 2022-11-17 16:29:25 +01:00
Andreas Dangel
c70f89417f [doc] Update release notes (#4215) [skip ci] 2022-11-17 11:07:21 +01:00
Clément Fournier
384dec422d Merge branch 'pr/4173' 2022-11-16 13:01:04 +01:00
Clément Fournier
81ac22dd78 Merge branch 'master' into pr/4173 2022-11-16 13:00:52 +01:00
Clément Fournier
9d8ff6c4a6 Merge branch 'pr/4191' 2022-11-16 12:50:58 +01:00
Clément Fournier
382dea54ea Merge branch 'master' into pr/4191 2022-11-16 12:50:42 +01:00
Andreas Dangel
69ccb693c0 [java] InvalidLogMessageFormat - check for formatted calls
Fixes #4172
2022-11-12 19:26:23 +01:00
Clément Fournier
bdbeef6235 Merge branch 'pr/4195'
Refs #4195
2022-11-12 18:55:20 +01:00
Clément Fournier
2f06def8ae Apply suggestions from code review 2022-11-12 18:54:31 +01:00
Andreas Dangel
22cbae07fd [java] MissingStaticMethodInNonInstantiatableClass - check for allocations of the outer class
Fixes #4174
2022-11-11 17:37:17 +01:00