25933 Commits

Author SHA1 Message Date
wener
8830040d1b Extended grammar to recognize more tokens 2023-04-07 08:17:13 +02:00
Andreas Dangel
acc6aa2681 [julia] Update for PMD 7 2023-04-04 19:48:32 +02:00
Andreas Dangel
1ef32e4a3f Merge branch 'master' into pr-4403 2023-04-04 19:37:53 +02:00
Andreas Dangel
7a89f550d9 [java] Fix rule doc for SingularField
Closes pmd/pmd.github.io#14
Co-authored-by: Zustin <87302257+Zustin@users.noreply.github.com>
2023-04-04 18:30:00 +02:00
Andreas Dangel
36efe64586 Merge pull request #4450 from mohui1999:master
[java] Fix #4449 AvoidAccessibilityAlteration: Correctly handle Lambda expressions in PrivilegedAction scenarios #4450
2023-04-03 20:17:12 +02:00
Andreas Dangel
c71b3f5f3a [doc] Update release notes (#4450, #4449) 2023-04-03 20:15:13 +02:00
Andreas Dangel
db84305c44 Add @mohui1999 as a contributor 2023-04-03 20:12:39 +02:00
Andreas Dangel
3052e0fac5 [java] Update rule test description (#4449) 2023-04-03 20:12:19 +02:00
Andreas Dangel
7ee28a1227 [java] Update rule test description (#4273) 2023-04-03 19:59:39 +02:00
Andreas Dangel
8896c3be32 Merge pull request #4444 from nirvikpatel:master
[java] CommentDefaultAccessModifier - ignore org.junit.jupiter.api.extension.RegisterExtension by default #4444
2023-04-03 19:53:55 +02:00
Andreas Dangel
e73b011f9a [doc] Update release notes (#4444, #4273) 2023-04-03 19:53:18 +02:00
Andreas Dangel
435ae32f78 Add @nirvikpatel as a contributor 2023-04-03 19:52:15 +02:00
Andreas Dangel
da63a6237e Merge branch 'master' into pr-4444 2023-04-03 19:49:01 +02:00
mohui1999
fd60aedd64 Support AvoidAccessibilityAlteration with Lambda 2023-04-02 22:13:57 +08:00
nirvik
d9c0e874af pmd#4273 : Test Case Added 2023-03-30 21:34:17 +05:30
nirvik
6d247e643b #4273:new AnnotationDescriptor Added 2023-03-30 17:09:52 +05:30
Andreas Dangel
08e7afc252 [doc] Restore release notes for next rc 2023-03-30 11:47:17 +02:00
Andreas Dangel
8f240ba11d Prepare next development version [skip ci] 2023-03-25 12:51:17 +01:00
Andreas Dangel
d9b2444d7e [release] prepare for next development iteration 2023-03-25 12:47:33 +01:00
Andreas Dangel
356af8b636 [release] prepare release pmd_releases/7.0.0-rc1 pmd_releases/7.0.0-rc1 2023-03-25 12:30:51 +01:00
Andreas Dangel
103beed66d Prepare pmd release 7.0.0-rc1 2023-03-25 12:30:40 +01:00
Andreas Dangel
b8e1c114b9 [doc] Fix release notes
Can't use jekyll includes outside of jekyll...
Can't use markdown in jekyll inside html...
2023-03-25 10:52:47 +01:00
Andreas Dangel
01617c4c7b Don't use maven-release-plugin for release candidates
This allows us to use 7.0.0-SNAPSHOT for the designer
2023-03-25 10:46:52 +01:00
Andreas Dangel
0cfa71162c Bump build-tools from 20 to 21 2023-03-25 09:53:29 +01:00
Andreas Dangel
c3bc33e8a2 Configure propertiesEncoding for maven-resources-plugin 2023-03-23 10:47:10 +01:00
Andreas Dangel
e320048700 Merge pull request #4389 from adangel:pmd7-kotlin-update-grammar-1.8
[kotlin] Update grammar to version 1.8 #4389
2023-03-23 10:30:23 +01:00
Andreas Dangel
40fe60a594 [doc] Update release notes (#4389) 2023-03-23 10:29:54 +01:00
Andreas Dangel
b41a4f9cdd Merge branch 'master' into pr-4389 2023-03-23 10:28:39 +01:00
Andreas Dangel
545bc0adc5 Merge pull request #4428 from sfdcsteve:master
[apex] ApexBadCrypto bug fix for #4427 - inline detection of hard coded values #4428
2023-03-23 10:27:37 +01:00
Andreas Dangel
638212af72 [doc] Update release notes (#4427, #4428) 2023-03-23 10:27:07 +01:00
Andreas Dangel
ff8d8e1462 Add @sfdcsteve as a contributor 2023-03-23 10:26:36 +01:00
Andreas Dangel
dd9d64a475 Merge branch 'master' into pr-4428 2023-03-23 10:25:00 +01:00
Andreas Dangel
919b1d246a Merge pull request #4417 from oowekyala:pmd7.micro-opts
[core] [java] More micro opts #4417
2023-03-23 10:24:26 +01:00
Andreas Dangel
6179982002 [doc] Fix dead links 2023-03-23 10:21:10 +01:00
Andreas Dangel
14e29b59c2 Merge pull request #4429 from oowekyala:pmd7-warn-debug
[java] Make missing class warnings debug level #4429
2023-03-23 09:51:10 +01:00
Andreas Dangel
8d9e5553b9 Merge pull request #4422 from adangel:pmd7-warning-without-debug
[core] Log semantic error warnings without debug note #4422
2023-03-23 09:49:32 +01:00
Andreas Dangel
a93a94bce2 Merge pull request #4423 from adangel:pmd7-cli-file-list
[cli] Fix NPE when only --file-list is specified #4423
2023-03-23 09:48:11 +01:00
Andreas Dangel
78a7a5a445 Merge pull request #4373 from adangel:pmd7-update-release-notes
[doc] Update release notes for PMD 7.0.0-rc1 #4373
2023-03-23 09:46:56 +01:00
Andreas Dangel
5f01e8b79f Update release notes regarding release candidate
[skip ci]

Co-authored-by: Clément Fournier <clement.fournier76@gmail.com>
2023-03-23 09:43:04 +01:00
Clément Fournier
8307d8f5fa make missing class warnings debug level
Ref #3914
2023-03-21 21:22:19 +01:00
Clément Fournier
c222173234 Also add an optimized forEach impl
Benchmark                                   (sourceFname)  Mode  Cnt   Score   Error  Units
StreamBench.foreachOnChildrenStream     /PLSQLParser.java  avgt    4  14,992 ± 0,169  ms/op
StreamBench.foreachOnChildrenStreamOpt  /PLSQLParser.java  avgt    4   8,179 ± 0,141  ms/op
StreamBench.loopOnChildrenStream        /PLSQLParser.java  avgt    4   9,694 ± 0,549  ms/op
StreamBench.optimizedLoop               /PLSQLParser.java  avgt    4   7,631 ± 0,143  ms/op

"foreachOnChildrenStreamOpt" is the new implementation, the old is "foreachOnChildrenStream".
For comparison, this new impl of forEach with a lambda appears slightly faster than using a
for-each loop on the children stream, and using a manually indexed loop (with getChild) is
slightly faster.
2023-03-21 20:06:00 +01:00
Steve Stearns
ba297a2a8e Fine tuning style issues 2023-03-20 09:45:22 -05:00
Steve Stearns
e922278497 Fixing imports for code style issues 2023-03-20 09:28:48 -05:00
Steve Stearns
d181b565b3 Fixing a bug in ApexBadCrypto related to inline detection 2023-03-20 09:09:23 -05:00
Andreas Dangel
013ada5def [ci] Render release notes also for snapshots
This updates ReadMe.md on sourceforge for snapshots as well:
https://sourceforge.net/projects/pmd/files/pmd/7.0.0-SNAPSHOT/
2023-03-19 11:42:38 +01:00
Clément Fournier
8c448f2fd8 Make children more efficient on AbstractNode 2023-03-18 16:48:34 +01:00
Clément Fournier
386d77fb68 Move invoke=true 2023-03-18 15:20:46 +01:00
Clément Fournier
d1816619c6 Replace 139 with 31 2023-03-18 15:17:54 +01:00
Clément Fournier
6010674e69 Merge branch 'master' into pmd7.micro-opts 2023-03-18 15:17:00 +01:00
Andreas Dangel
6621603908 [cli] Fix NPE when only --file-list is specified 2023-03-18 11:02:08 +01:00