26794 Commits

Author SHA1 Message Date
Juan Martín Sotuyo Dodero
9aa81016b0 Merge pull request #4643 from adangel/issue-4521-mobile-website
[doc] Make side fixed only for big screens
2023-08-22 11:33:24 -03:00
Richard Corfield
4151ca13f2 Fix Checkstyle errors by changing tab indentation to spaces
mvnw clean verify - now passes.
2023-08-18 17:53:19 +01:00
Richard Corfield
8f19067535 A neater set instantiation 2023-08-18 17:33:57 +01:00
Richard Corfield
2ab8447654 Remove the tests related to issue 4650
This commit will need to be reverted in 4650's branch.
2023-08-18 17:28:06 +01:00
Andreas Dangel
10a50b8677 [ci] Use adjusted m-pmd-p for dogfood 2023-08-17 18:59:07 +02:00
Richard Corfield
bcbaffcf21 Add unit tests for the behavior I hope to see
Two of these tests are failing. It doesn't recognise constants.
I guess that it never has recognised constants, and this is another
problem in the code. I don't know whether to try to fix this or consider
it a different problem so I can make smaller pull requests.
2023-08-17 10:59:59 +01:00
Richard Corfield
d85a1a7cfe Add SObjectType and SObjectField to list of injectable SOQL variable types 2023-08-17 10:07:51 +01:00
Andreas Dangel
a9ed11b7be [doc] Fix dead links 2023-08-17 10:10:21 +02:00
Andreas Dangel
86fdc446d4 Suppress PMD warnings (UnnecessaryConstructor) 2023-08-17 10:03:12 +02:00
Andreas Dangel
894d9fba84 Merge branch 'master' into pr-4397 2023-08-17 09:31:53 +02:00
Andreas Dangel
24257a0207 [core] revert property collection syntax <seq>
Refs #4305
2023-08-15 17:55:09 +02:00
Andreas Dangel
5846666dba [core] Support min/max as property constraints in RuleSetWriter
Refs #1204
2023-08-15 17:47:17 +02:00
Andreas Dangel
5eea2f3e94 [core] Add tests in RuleSetFactoryMessages
- moved deprecated delimiter test to messages
- added value as attribute and tag test
2023-08-12 11:51:05 +02:00
Andreas Dangel
79d6e8bc48 [core] NumericConstraints - add tests for above/below 2023-08-12 11:30:20 +02:00
Andreas Dangel
3ea4031d0e [core] PropertyDescriptor - remove deprecated methods
Update tests and usages for valueFrom/asDelimitedString
2023-08-12 11:23:20 +02:00
Andreas Dangel
8681e8d7f9 [ci] Update Dangerfile - fix link to download regression report
[skip ci]
2023-08-12 11:12:30 +02:00
Andreas Dangel
ea11fcda54 [core] Minor refactorings 2023-08-12 11:09:43 +02:00
Andreas Dangel
28c017ca8a [doc] Update release notes (rule properties)
#1204 #4301 #4302 #4303
2023-08-12 10:03:13 +02:00
Andreas Dangel
67fac20ac7 [doc] Update doc about (rule) properties
Refs #4303
2023-08-12 09:40:22 +02:00
Andreas Dangel
faa2d0ae56 [ci] Stop uploading regression tester record to chunk.io 2023-08-10 17:48:01 +02:00
Andreas Dangel
b73611f013 Merge branch 'master' into pr-4380 2023-08-10 17:37:36 +02:00
Andreas Dangel
f980c1f17b [doc] Make side fixed only for big screens
Also wrap the inline-toc in an accordion to
save some space.
Remove some of the unneeded javascript.

Fixes #4521
2023-08-10 17:30:06 +02:00
Andreas Dangel
a93c8f2b7b [doc] Add JDK21 to the build for integration testing
Note: This is using 21-ea for now
2023-08-10 15:37:35 +02:00
Andreas Dangel
99948c8fb6 [doc] Update release notes (JDK 21 Support) 2023-08-10 15:37:33 +02:00
Andreas Dangel
000f2e86fd [java] Fix more parsing errors after supporting String Templates 2023-08-10 15:36:30 +02:00
Andreas Dangel
41643dd020 [java] Avoid using Thread.fillInStackTrace() for token context
This requires to use the option TOKEN_MANAGER_USES_PARSER
2023-08-10 15:36:30 +02:00
Andreas Dangel
d061883ca6 [java] Fix CPD tests, use latest java version
Now the files need to be syntactically valid java sources.
2023-08-10 15:36:30 +02:00
Andreas Dangel
630626ca82 [java] Fix Tokenizer for CPD after supporting String Templates 2023-08-10 15:36:29 +02:00
Andreas Dangel
38a5e827e9 Fix code duplication 2023-08-10 15:36:29 +02:00
Andreas Dangel
f4c86b25ae [java] Support Unnamed Classes and Instance Main Methods for Java 21 Preview
JEP 445
2023-08-10 15:36:29 +02:00
Andreas Dangel
216dd09405 [java] Support Unnamed Patterns and Variables for Java 21 Preview
JEP 443
2023-08-10 15:36:28 +02:00
Andreas Dangel
715d58fef3 [java] Support String Templates for Java 21 Preview
JEP 430
2023-08-10 15:36:28 +02:00
Andreas Dangel
c2710c9a91 Fix pmd-dist tests 2023-08-10 15:36:28 +02:00
Andreas Dangel
b5d00b7e42 Fix checkstyle 2023-08-10 15:36:27 +02:00
Andreas Dangel
2488107b23 [java] Update impl for record patterns for java 21
- renamed ASTComponentPatternList to ASTPatternList
2023-08-10 15:36:27 +02:00
Andreas Dangel
3bdb921548 [java] Update impl for pattern matching for switch for java 21
- renamed ASTSwitchGuard to ASTGuard
2023-08-10 15:36:27 +02:00
Andreas Dangel
05d55d0d7a [java] Update tests for java 21
Only Pattern Matching for switch
2023-08-10 15:36:27 +02:00
Andreas Dangel
0ea6336044 [java] Add tests for java 21-preview
Copied from 20-preview
2023-08-10 15:36:26 +02:00
Andreas Dangel
9fa7565807 [java] Remove version java 19-preview 2023-08-10 15:36:26 +02:00
Andreas Dangel
0566eedfb4 [java] Bump asm from 9.4 to 9.5 2023-08-10 15:36:26 +02:00
Andreas Dangel
0cd0b40ede [java] Add new versions 21 and 21-preview 2023-08-10 15:36:25 +02:00
Andreas Dangel
2b0cadf0ed Bump maven from 3.9.2 to 3.9.4 2023-08-10 13:54:09 +02:00
Andreas Dangel
510608f9af Bump cyclonedx-maven-plugin from 2.7.6 to 2.7.9 2023-08-10 13:52:44 +02:00
Shai Bennathan
56ae02ad35 Update pmd-dist/src/main/resources/scripts/pmd
Co-authored-by: Juan Martín Sotuyo Dodero <juansotuyo@gmail.com>
2023-08-07 15:32:11 +03:00
Shai Bennathan
295ee304a4 Issue: Launch failure via bin/bash
Currently if run.sh is launched via 'bin/bash run.sh', when run.sh is not in the local directory (i.e., accessed via path env var) it thinks it runs in the local directory.
This change makes sure that all cases are covered.
Tested on local Ubuntu 22.04.
2023-08-07 12:51:09 +03:00
Andreas Dangel
1021b3b7d4 Merge pull request #4637 from krdabrowski:fix-4634
[java] fix #4634 - JUnit4TestShouldUseTestAnnotation false positive with TestNG #4637
2023-08-05 20:12:40 +02:00
Andreas Dangel
7b5a70e3c7 Add @krdabrowski as a contributor 2023-08-05 20:10:57 +02:00
Andreas Dangel
8523adc53b [doc] Update release notes (#4637, #4634) 2023-08-05 20:10:32 +02:00
Krystian Dabrowski
91d7cc2f21 Refs https://github.com/pmd/pmd/issues/4634
- fix the JUnit4TestShouldUseTestAnnotation rule for TestNG,
- add test
- update changelog
2023-08-04 10:45:05 +02:00
Andreas Dangel
a065600e48 Update migration guide (Final touches)
- Final touches
2023-07-08 20:39:38 +02:00