Commit Graph

4588 Commits

Author SHA1 Message Date
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
75e50df94a Make @Image have old behavior, remove KEYWORD_UNRESERVED from tree 2024-04-21 22:55:09 +02:00
Clément Fournier
06eb7ead5a review comments 2024-04-21 12:16:26 +02:00
Clément Fournier
c4826668c9 Merge branch 'master' into issue4396-cpd-case-sensitive 2024-04-21 12:14:42 +02:00
Clément Fournier
8c3d2cd2a0 Merge branch 'master' into issue4948-switch-fallthrough 2024-04-20 12:43:00 +02:00
Juan Martín Sotuyo Dodero
3650622645 Remove unused imports 2024-04-19 09:08:21 -03:00
Juan Martín Sotuyo Dodero
346d7fd0dc Do not warn for List being deprecated by default 2024-04-19 09:02:16 -03:00
Juan Martín Sotuyo Dodero
3a4abd720e Schema awareness changes the produced queries 2024-04-19 01:13:37 -03:00
Juan Martín Sotuyo Dodero
0d6f196c6d Fix broken tests 2024-04-19 01:13:21 -03:00
Juan Martín Sotuyo Dodero
b74b6e5a66 Revert. Different rules on the same node report separately 2024-04-19 00:46:58 -03:00
Juan Martín Sotuyo Dodero
8d51a2f2a0 Just do it once per attribute 2024-04-19 00:31:37 -03:00
Juan Martín Sotuyo Dodero
ce5e229c61 Produce deprecation warnings when atomize is used
- When Saxon determines that it needs to atomize an attribute rather
   than getStringValue() we were not producing deprecation warnings.
2024-04-19 00:28:28 -03:00
Juan Martín Sotuyo Dodero
8db0c80f24 Restrict exposed attributes based on element types 2024-04-19 00:14:11 -03:00
Juan Martín Sotuyo Dodero
a01481a4f3 Add test for collection attributes 2024-04-18 23:29:37 -03:00
Juan Martín Sotuyo Dodero
53246d584e Support sequences in XPath Attributes 2024-04-18 15:45:23 -03: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
Clément Fournier
835abc80f7 Add back ctor for compatibility 2024-04-09 13:44:07 +02:00
Clément Fournier
41c01356fc Fix things 2024-04-09 11:35:14 +02:00
Clément Fournier
ab80b2443d Also add this ability for Antlr lexers, adapt TSQL 2024-04-08 21:36:45 +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