4531 Commits

Author SHA1 Message Date
Andreas Dangel
42ffb31ca0 [cpd] Fix CPD crashes about unicode escapes (#4983)
Merge pull request #4983 from oowekyala:cpd-fix-crashes
2024-05-02 11:13:33 +02:00
Andreas Dangel
22a31c938d [core] Actually duplicate the whole current config for RuleSetLoader (#4981)
Merge pull request #4981 from Monits:issue-4978
2024-05-01 20:32:27 +02:00
Andreas Dangel
2d11ed8e93 [core] Add a unit test for ruleset validation messages
Refs #4981
Refs #4978
2024-05-01 20:31:52 +02:00
Clément Fournier
d773088661 Split unit test 2024-04-29 19:00:46 +02:00
Clément Fournier
4c96e678af Add test for document fix 2024-04-29 12:46:25 +02:00
Clément Fournier
fb17f7ff9a Add test 2024-04-29 12:46:25 +02:00
Clément Fournier
e81449db4a fixes 2024-04-29 12:46:24 +02:00
Juan Martín Sotuyo Dodero
289d5aed3b Actually duplicate the whole current config for RuleSetLoader
- Fixes #4978
2024-04-27 19:40:28 -03:00
Juan Martín Sotuyo Dodero
cb092dd3ae Merge pull request #4968 from adangel/saxon-node-iterators
[core] Typesafe saxon node iterators
2024-04-28 00:33:54 +02:00
Andreas Dangel
eadf3d9293 Use saxon's NodeListIterator 2024-04-27 20:52:20 +02:00
Andreas Dangel
339e1d4f43 [release] Prepare next development version [skip ci] 2024-04-26 09:04:20 +02:00
Andreas Dangel
592e80d4a9 [release] prepare release pmd_releases/7.1.0 2024-04-26 08:35:11 +02:00
Andreas Dangel
16df3dd446 [core] Make CPD report maximal, non-repeating and non-overlapping duplicates (#4966)
Merge pull request #4966 from Monits:issue-2438
Fixes #2438
2024-04-25 09:20:16 +02:00
Clément Fournier
8c3d2cd2a0 Merge branch 'master' into issue4948-switch-fallthrough 2024-04-20 12:43:00 +02:00
Andreas Dangel
23671181df [core] Typesafe saxon node iterators 2024-04-18 20:45:14 +02:00
Andreas Dangel
c09abb2228 [core] Upgrade saxon to 12.4 (#4959)
Merge pull request #4959 from Monits:upgrade-saxon
2024-04-18 20:41:06 +02:00
Juan Martín Sotuyo Dodero
536ffc61e7 Merge branch 'master' into issue-2438 2024-04-18 12:54:02 -03:00
Andreas Dangel
37269caa03 [core] Fixups from review (#4956) 2024-04-18 17:12:59 +02:00
Juan Martín Sotuyo Dodero
8f6270d3b5 Style issues 2024-04-18 01:11:38 -03:00
Juan Martín Sotuyo Dodero
be902e61e1 Fix newly found scenarios 2024-04-18 00:37:37 -03:00
Juan Martín Sotuyo Dodero
1e0c9cd759 Add more specific tests in core 2024-04-18 00:37:27 -03:00
Juan Martín Sotuyo Dodero
0282ee3583 Properly handle multiple matches once again 2024-04-17 23:37:12 -03:00
Juan Martín Sotuyo Dodero
f9cb7ab992 Ensure CPD matches are nonoverlapping maximals
- The old implementation would fail on scenarios where duplicates
   exceed the minimum token window. In general, if we have 20 identical
   tokens, 1 different, and then the same 20 again, CPD would find the
   20 at the beginning match the last 20… but also the 19 at the
   beginning match the last 19, the 18 at the beggining… down to the
   windows size
2024-04-17 20:10:40 -03:00
Clément Fournier
7b553300a1 Fix #4948 - abrupt completion of switch statement 2024-04-16 13:36:14 +02:00
Juan Martín Sotuyo Dodero
232c35aed4 Remove commented code 2024-04-12 20:20:18 -03:00
Juan Martín Sotuyo Dodero
2eb62bc691 Unused imports 2024-04-12 18:51:02 -03:00
Juan Martín Sotuyo Dodero
8c6401ae37 Add missing @Override 2024-04-12 18:51:02 -03:00
Juan Martín Sotuyo Dodero
3571876519 Don't extend useless class 2024-04-12 18:51:02 -03:00
Juan Martín Sotuyo Dodero
2cf36cb2cc Update tests
- The rewritten XPaths are slightly different, although equivalent
2024-04-12 18:51:02 -03:00
Juan Martín Sotuyo Dodero
322ac4b8d4 Accomodate for UnicodeString 2024-04-12 18:51:02 -03:00
Juan Martín Sotuyo Dodero
b0d3f13367 Also handle UncheckedXPathException 2024-04-12 18:51:02 -03:00
Juan Martín Sotuyo Dodero
d93c653ad9 Fix reverse iteration 2024-04-12 18:51:02 -03:00
Juan Martín Sotuyo Dodero
842c9315a2 Remove unused imports 2024-04-12 18:51:02 -03:00
Juan Martín Sotuyo Dodero
8eaecf184e Swap for the new version of getAttributeValue 2024-04-12 18:51:02 -03:00
Juan Martín Sotuyo Dodero
a69d565d51 Upgrade to saxon 12.4 2024-04-12 18:50:58 -03:00
Juan Martín Sotuyo Dodero
184fb31f4d Typos 2024-04-12 12:57:47 -03:00
Juan Martín Sotuyo Dodero
db0df4ed89 Remove empty implementation 2024-04-12 12:56:53 -03:00
Juan Martín Sotuyo Dodero
55688cf300 Upgrade to Saxon 11.6 2024-04-12 12:55:21 -03:00
Andreas Dangel
2bddfd2b45 [core] Add a filter possibility to FileCollector
Fixes #4942
2024-04-12 12:44:55 +02:00
Andreas Dangel
62f215929c [core] Disable Caching in URLConnection for ClasspathClassLoader
Fixes #4899
2024-04-11 14:52:30 +02:00
Juan Martín Sotuyo Dodero
9e27977244 Checkstyle fixes 2024-04-04 18:41:06 -03:00
Juan Martín Sotuyo Dodero
76b00a95ad Better document what to throw on an unsupported lang 2024-04-04 18:18:14 -03:00
Clément Fournier
6d35f14f6b Fix #4893 - throw if language is not supported 2024-04-04 18:18:14 -03:00
Andreas Dangel
4fe50978b6 Add japicmp - breaks build based on semantic versioning 2024-04-04 15:20:15 +02:00
Andreas Dangel
280b1a1ee3 Bump next version to be 7.1.0-SNAPSHOT 2024-04-04 10:49:18 +02:00
Andreas Dangel
e10f622866 Merge branch 'master' into pr-4864 2024-04-04 08:44:27 +02:00
Andreas Dangel
ede73fa4ce [core] Improve assertion messages for unreachable code paths 2024-03-29 08:59:37 +01:00
Andreas Dangel
f31d50fd90 [core] Test access of package private impl methods of nodes
This is a test case for #4885, but doesn't reproduce
the problem.
2024-03-29 08:56:37 +01:00
Andreas Dangel
7332d61515 [release] prepare for next development iteration 2024-03-22 09:28:44 +01:00
Andreas Dangel
0541ab8591 Revert "[release] prepare for next development iteration"
This reverts commit 27620724dcf48160f9ea91b9a02a6186400a38cd.
2024-03-22 09:01:47 +01:00