4552 Commits

Author SHA1 Message Date
Andreas Dangel
28c6c8e121
[release] Prepare next development version [skip ci] 2024-05-31 13:21:14 +02:00
Andreas Dangel
38bc997d4e
[release] prepare release pmd_releases/7.2.0 2024-05-31 12:57:36 +02:00
Andreas Dangel
2a0cba7b91
[java] Improve LocalVariableCouldBeFinal (#5003)
Merge pull request #5003 from oowekyala:issue1619-localVariableCouldBeFinal-FP
2024-05-31 10:39:37 +02:00
Clément Fournier
4cfe90cfdc
Cleanup symtable factory 2024-05-15 09:36:39 +02:00
Clément Fournier
7f0d148a1b
Fix FPs 2024-05-11 23:06:30 +02:00
Juan Martín Sotuyo Dodero
722f25ba86
Merge branch 'master' into xpath-seq-attributes 2024-05-02 13:06:03 -03:00
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
4bb533b625 Ignore type variables 2024-04-28 13:13:29 -03:00
Juan Martín Sotuyo Dodero
458405e02d Use spaces 2024-04-28 12:43:30 -03:00
Juan Martín Sotuyo Dodero
66606648a2
Merge branch 'master' into xpath-seq-attributes 2024-04-28 17:39:08 +02:00
Juan Martín Sotuyo Dodero
fbb4648efc
Update pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/xpath/internal/SaxonXPathRuleQuery.java
Co-authored-by: Clément Fournier <clem.fournier@proton.me>
2024-04-28 12:37:42 -03:00
Juan Martín Sotuyo Dodero
124f908ca8 Properly log when the impossible happens 2024-04-28 12:36:57 -03: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
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