26883 Commits

Author SHA1 Message Date
Andreas Dangel
6163f67b06 [core] Rename Tokenizer to CpdLexer
See #4065
2024-01-11 17:04:48 +01:00
Andreas Dangel
55d91791c3 [core] Rename TokenMgrError to LexException
See #4065
2024-01-11 15:56:28 +01:00
Andreas Dangel
2e7263af69 Merge pull request #4746 from adangel:build-improvements
[ci] Build improvements #4746
2024-01-05 15:49:37 +01:00
Andreas Dangel
1c1cdb52de Merge pull request #4718 from adangel:issue-4717-xsltrenderer-leak
[core] XSLTRenderer: Close original writer at the end #4718
2024-01-05 15:12:55 +01:00
Andreas Dangel
a382d675b6 Merge branch 'master' into issue-4717-xsltrenderer-leak 2024-01-05 15:12:13 +01:00
Andreas Dangel
b4781ada3b Merge pull request #4694 from oowekyala:issue4635-cpd-lexical-error
[core] Fix line/col numbers in TokenMgrError #4694
2024-01-05 15:07:02 +01:00
Andreas Dangel
bd7fb70c13 [ci] Bump build-tools to master (23-SNAPSHOT)
Should fix the expired release key
2024-01-05 14:59:39 +01:00
Andreas Dangel
194a644cee [ci] Bump build-tools to 23-SNAPSHOT
Should fix the expired release key
2024-01-05 14:57:09 +01:00
Andreas Dangel
fb0e9c5344 [doc] Update release notes (#4694) 2024-01-05 14:55:14 +01:00
Andreas Dangel
b65589175c [core] Add tests for TokenMgrError location 2024-01-05 14:48:10 +01:00
Andreas Dangel
6255274659 Merge branch 'master' into pr-4694 2024-01-05 14:15:37 +01:00
Andreas Dangel
070cca8743 Merge pull request #4628 from adangel:support-jrt-fs
[java] Support loading classes from java runtime images #4628
2024-01-05 13:51:40 +01:00
Andreas Dangel
a558fd17eb [ci] Use bundler 2.4.22, which is still compatible with ruby 2.7 2023-12-16 13:03:32 +01:00
Andreas Dangel
e4f2307b06 Merge pull request #4726 from Monits:upgrade-groovy
[groovy] Support Groovy to 3 and 4 and CPD suppressions #4726
2023-12-11 13:42:29 +01:00
Andreas Dangel
552ce7d36f [doc] Update release notes and docs for groovy (#4726) 2023-12-11 13:42:01 +01:00
Andreas Dangel
65b4c38bca Merge branch 'master' into pr-4726 2023-12-11 13:25:32 +01:00
Andreas Dangel
2862d36f4e Merge pull request #4685 from adangel:issue-4676-cpd-cli
[cli] Clarify CPD documentation, fix positional parameter handling #4685
2023-12-11 11:18:47 +01:00
Andreas Dangel
6ea7206f65 Fix unit tests 2023-12-11 11:14:16 +01:00
Andreas Dangel
1ecda3f749 [doc] Update release notes (#4685) 2023-12-11 10:52:44 +01:00
Andreas Dangel
9ecbe2e5ce [cli] Use setters for --dir and positional parameters
This makes it possible to combine both inputs into a single list of
files to be analyzed.
2023-12-11 10:49:44 +01:00
Andreas Dangel
dfcde5acde [doc] Update release notes (#4697) 2023-12-11 10:35:14 +01:00
Andreas Dangel
fc3fce1d02 Merge branch 'master' into issue-4676-cpd-cli 2023-12-11 10:32:34 +01:00
Andreas Dangel
cc8455ee1b Merge pull request #4698 from openium:feature/swift-5.9-support
[swift] Add macro expansion support for swift 5.9 #4698
2023-12-11 10:05:13 +01:00
Andreas Dangel
84c2eb7511 [doc] Update release notes (#4698) 2023-12-11 10:04:29 +01:00
Andreas Dangel
020e2da270 [swift] Log parser errors
* Eventually, this should throw, but the grammar
is very incomplete.
* Support opaque-types
2023-12-11 09:57:39 +01:00
Andreas Dangel
dbfde44b92 [swift] Make Macro expansion an expression
Add parser tests
2023-12-11 09:56:18 +01:00
Andreas Dangel
abed5b00dc Merge pull request #4749 from bergander:FixNoSuchMethodErrorInPmdCompat6
Fixes NoSuchMethodError on processing errors in pmd-compat6 #4749
2023-12-07 20:49:19 +01:00
Andreas Dangel
071a632de1 Merge branch 'master' into pr-4749 2023-12-07 20:08:52 +01:00
Andreas Dangel
729d035f26 [doc] Update release notes (#4749) 2023-12-07 20:08:16 +01:00
Andreas Dangel
dcdab9d792 Fix test 2023-12-07 20:05:35 +01:00
Andreas Dangel
0a63e74d2d Merge pull request #4759 from marcindabrowski:fix-java-errorprone-warnings
[java] fix: remove delimiter attribute from ruleset category/java/errorprone.xml #4759
2023-12-07 19:20:07 +01:00
Andreas Dangel
49e6777fff [apex] Remove deprecated rule ref to ApexCSRF
This rule has been moved from security to errorprone
since PMD 6.21.0 already
2023-12-07 19:15:34 +01:00
Andreas Dangel
aa93a75009 [test] Test built-in rulesets for warnings while loading 2023-12-07 18:44:41 +01:00
Andreas Dangel
9f9a8f7068 Add @marcindabrowski as a contributor 2023-12-07 18:43:52 +01:00
Andreas Dangel
272b23d7b2 [doc] Update release notes (#4759) 2023-12-07 18:43:34 +01:00
Andreas Dangel
b2aca33e80 [doc] Update release notes (#4642) 2023-12-07 18:18:43 +01:00
Marcin Dąbrowski
6d09555af6 fix: remove delimiter attribute from pmd-java/src/main/resources/category/java/errorprone.xml
When using `category/java/errorprone.xml` ruleset with PMD 7.0.0-rc4 I'm getting these warnings:

```
Warning at category/java/errorprone.xml:1039:78
 1037|         <properties>
 1038|             <property name="version" value="2.0"/>
 1039|             <property name="typesThatCompareByReference" type="List[String]" delimiter="," description="List of canonical type names for which reference comparison is allowed.">
                                                                                    ^^^^^^^^^ Delimiter attribute is not supported anymore, values are always comma-separated.

 1040|                 <value>java.lang.Enum,java.lang.Class</value>
 1041|             </property>
Warning at category/java/errorprone.xml:2353:62
 2351|         <priority>3</priority>
 2352|         <properties>
 2353|             <property name="annotations" type="List[String]" delimiter="," value="org.springframework.beans.factory.annotation.Autowired,javax.inject.Inject,com.google.inject.Inject" description="If a constructor is annotated with one of these annotations, then the class is ignored."/>
                                                                    ^^^^^^^^^ Delimiter attribute is not supported anymore, values are always comma-separated.

 2354|             <property name="xpath">
 2355|                 <value>
 ```
2023-12-04 12:05:45 +01:00
kenji
10ae2fae96 Add swift 5.9 support 2023-12-01 15:48:31 +01:00
Andreas Bergander
f73d75d5a3 Fix NoSuchMethodError on processing errors in pmd-compat6 2023-12-01 15:30:17 +01:00
Andreas Dangel
c6d55ca059 Merge pull request #4706 from Debamoy:issue/1831-detached-test-case-reports-package-private-methods
[java] DetachedTestCase should not report on abstract methods #4706
2023-12-01 15:07:41 +01:00
Andreas Dangel
990090d6d1 [doc] Update release notes (#4706, #1831) 2023-12-01 15:05:22 +01:00
Andreas Dangel
b0e2ab68c9 Add @Debamoy as a contributor 2023-12-01 15:04:45 +01:00
Andreas Dangel
10c184b44b Fix checkstyle 2023-12-01 15:02:24 +01:00
Andreas Dangel
3875ae2726 Merge pull request #4754 from bergander:AllowCommentedBlocks
[java] EmptyControlStatementRule: Add allowCommentedBlocks property #4754
2023-12-01 14:29:03 +01:00
Andreas Dangel
5ccae72a30 Update @bergander as a contributor 2023-12-01 14:27:42 +01:00
Andreas Dangel
1e8d5874ed [doc] Update release notes (#4754) 2023-12-01 14:27:15 +01:00
Andreas Dangel
b06ff0bda4 Merge pull request #4755 from oowekyala:issue4753-capture-of-wildcard
[java] Fix #4753 - PMD crashes while using generics and wildcards #4755
2023-12-01 11:19:23 +01:00
Andreas Dangel
b69b126292 Add @soyodream as a contributor 2023-12-01 11:18:53 +01:00
Andreas Dangel
d77d936daa [doc] Update release notes (#4753) 2023-12-01 11:18:24 +01:00
Clément Fournier
c3a91ea495 Update release notes 2023-11-28 17:56:32 +01:00