Commit Graph
26854 Commits
Author SHA1 Message Date
Andreas Dangel 698ca0d3ff [java] Rename ASTClassOrInterfaceType to ASTClassType 2023-12-12 16:01:34 +01:00
Andreas Dangel 33c0d20f98 [java] Rename AccessNode to ModifierOwner 2023-12-12 15:31:00 +01:00
Andreas Dangel 721e88e812 Fix tests - ASTMethodDeclaration now has isFinal() 2023-12-12 14:55:33 +01:00
Andreas Dangel 9febf2ceae [java] Remove FinalizableNode 2023-12-12 14:35:42 +01:00
Andreas Dangel 6909a9d704 Fix tests - Use consequently BaseJavaTreeDumpTest 2023-12-11 16:44:54 +01:00
Andreas Dangel ae2846df8a Fix tests
* @PackagePrivate is deprecated now and gone
* @Static is no more deprecated for types, methods, fields
2023-12-11 16:36:05 +01:00
Andreas Dangel 22e46404ee [java] Add hasVisibility method
Deprecate ASTClassOrInterfaceDeclaration#isPackagePrivate().
Use #hasVisibility(Visibility) instead, which can correctly
differentiate between local and package private classes.
2023-12-11 15:54:02 +01:00
Andreas Dangel 9869dccf4b [java] Push isStatic() down to declaration
Only on ASTMethodDeclaration, ASTFieldDeclaration and ASTAnyTypeDeclaration.
This makes it possible to remove it
from AccessNode.
2023-12-11 15:19:12 +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
Clément Fournier b7b26f01f5 Fix #4753 2023-11-28 17:48:59 +01:00
Andreas Bergander de2a7e15ee Add allowCommentedBlocks property to EmptyControlStatementRule 2023-11-27 16:00:40 +01:00
Debamoy Datta 3fc9d8fc77 issue-1831 added test cases 2023-11-25 11:02:22 +05:30
Andreas Dangel f030d7f8d7 Merge pull requets #4750 from 219sansim:fix_flaky_SummaryHTMLRenderer
[core] Fix flaky SummaryHTMLRenderer #4750
2023-11-23 19:16:11 +01:00
Andreas Dangel a8e80cc74b [doc] Update release notes (#4750) 2023-11-23 19:15:45 +01:00