16556 Commits

Author SHA1 Message Date
Clément Fournier
87797f7621 Port JSP tests 2020-06-14 05:27:46 +02:00
Clément Fournier
05f3740832 Make method private 2020-06-14 02:31:28 +02:00
Clément Fournier
332e2369f5 Fix pmd warning 2020-06-14 01:22:17 +02:00
Clément Fournier
1bdbd4883c Convert groovy tests 2020-06-14 01:09:49 +02:00
Clément Fournier
59dfa15269 Fix groovy columns 2020-06-14 01:04:32 +02:00
Clément Fournier
b976d6550d Preserve column numbers in AnyTokenizer 2020-06-14 00:42:15 +02:00
Clément Fournier
fb0819f319 Convert Apex tests 2020-06-14 00:29:58 +02:00
Clément Fournier
4c378b5631 Convert C# module 2020-06-14 00:20:14 +02:00
Clément Fournier
394b866524 Convert swift tests 2020-06-13 23:58:17 +02:00
Clément Fournier
aedd2ce493 Convert python tests 2020-06-13 23:56:55 +02:00
Clément Fournier
2c563436e4 Convert plsql tests 2020-06-13 23:48:21 +02:00
Clément Fournier
15d6515278 Convert ObjC tests 2020-06-13 23:44:34 +02:00
Clément Fournier
60d028a282 Convert matlab tests 2020-06-13 23:39:35 +02:00
Clément Fournier
9fc15f0b91 Remove test
This is already tested in SourceCodeTest in pmd-core
2020-06-13 23:34:00 +02:00
Clément Fournier
3df4506365 Convert scala tests 2020-06-13 23:25:24 +02:00
Clément Fournier
ff2aa9c038 Convert lua tests 2020-06-13 23:01:14 +02:00
Clément Fournier
7e594e390a Convert fortran tests 2020-06-13 22:57:18 +02:00
Clément Fournier
6eba9a827f Fix ruby lexer 2020-06-13 22:51:00 +02:00
Clément Fournier
50725a95fc Port ruby tests
TODO there's a bug
2020-06-13 22:08:58 +02:00
Clément Fournier
da764abb1e Convert kotlin tests 2020-06-13 22:04:33 +02:00
Clément Fournier
da371182aa Convert Go tests 2020-06-13 22:00:58 +02:00
Clément Fournier
4b3d58d4c9 Normalize path to avoid surprises 2020-06-13 21:52:45 +02:00
Clément Fournier
0d23c04c1b Check-in reference files 2020-06-13 21:47:49 +02:00
Clément Fournier
6ff4a1c4d4 Rename test file 2020-06-13 21:37:47 +02:00
Clément Fournier
d8c3831db8 Fix getSlice
The method path for when the
code is not loaded yet was incorrect.

This was hidden by the fact that tests
use a dummy tokenizer *before* cutting
out a slice, so that the code is in the
soft reference, and that code path is
never taken in the relevant tests.
2020-06-13 21:24:36 +02:00
Clément Fournier
344d02600c Convert java tests 2020-06-13 21:09:31 +02:00
Clément Fournier
709996fddc Finish cpp module 2020-06-13 20:34:30 +02:00
Clément Fournier
551ab453fd Convert CPP tests 2020-06-13 20:14:08 +02:00
Clément Fournier
0a1e82efad Rename dir 2020-06-13 19:21:27 +02:00
Clément Fournier
e48fc7cca2 Convert JS tests 2020-06-13 19:16:22 +02:00
Clément Fournier
4e21c1a947 Fix js tests 2020-06-13 19:02:35 +02:00
Clément Fournier
30f3d11795 Fix java test 2020-06-13 18:00:57 +02:00
Clément Fournier
a976e9af47 Fix sourceCode test 2020-06-13 17:11:47 +02:00
Clément Fournier
1ee33c7c20 Normalize CPD newlines
Otherwise tests are not platform-independent.
Denormalizing to a platform-specific delimiter
should be done in the renderers
2020-06-13 16:57:57 +02:00
Clément Fournier
ceda6bb965 Fix newline-only tokens
This happens eg in XML. Previously the end column would have been zero. We can't blindly make it 1 because the end column is inclusive. So we instead use the last column of the previous line.
2020-06-13 14:46:55 +03:00
Clément Fournier
6ebe4c8775 Port xml tests 2020-06-13 02:29:50 +02:00
Clément Fournier
d405eab97f Fix java 7 incompatibility 2020-06-12 18:22:21 +02:00
Clément Fournier
43412b532b Fix column problem with Antlr multiline tokens 2020-06-12 18:15:33 +02:00
Clément Fournier
826bc36331 Normalize text before tokenizing
Otherwise column numbers are messed up on windows
2020-06-12 17:27:11 +02:00
Clément Fournier
1540ec6d91 Port remaining dart tests 2020-06-12 16:56:43 +02:00
Clément Fournier
ecc8699269 Add doc 2020-06-12 16:27:40 +02:00
Clément Fournier
b47001c90d Add text comparison tests for CPD 2020-06-12 16:01:00 +02:00
Andreas Dangel
5653400257 Merge branch 'pr-2519'
[java] Enable rule UnnecessaryCast (codestyle) #2519
2020-06-12 13:55:44 +02:00
Andreas Dangel
a171ab8512 [doc] Update release notes and releases ruleset 2020-06-12 13:54:40 +02:00
Andreas Dangel
7820c17435 [java] UnnecessaryCastRule: fix false positive with maps (nested generics) 2020-06-12 13:11:24 +02:00
Andreas Dangel
28ea13e4f9 Merge branch 'pr-2567'
[c#] Fix CPD suppression with comments doesn't work #2551 #2567
2020-06-12 12:49:21 +02:00
Andreas Dangel
30ec2829bd [doc] Update release notes, fixes #2551, refs #2567 2020-06-12 12:48:31 +02:00
Andreas Dangel
702936ba45 Merge branch 'pr-2552'
[doc] Update next major development page for PMD 7 plans #2552
2020-06-12 12:45:39 +02:00
Andreas Dangel
8f606c787e Merge branch 'pr-2547'
[scala] Add cross compilation for scala 2.12 and 2.13 #2547
2020-06-12 12:44:50 +02:00
Andreas Dangel
c70c150c31 Revert "travis symlink support"
This reverts commit 06e2da0653b2ecd84e239c76a05349adc740147d.
2020-06-12 12:44:16 +02:00