16669 Commits

Author SHA1 Message Date
Clément Fournier
673fe3934d Fix hex numbers in uppercase 2020-06-18 20:56:00 +02:00
Clément Fournier
185c172b3c c++ ident unicode support 2020-06-18 20:54:41 +02:00
Andreas Dangel
534bfe3c55 Merge branch 'pr-2572'
[cpd] Allow CPD tests based on a text dump #2572
2020-06-18 20:09:58 +02:00
Andreas Dangel
095dff1358 [doc] Update release notes, refs #2572, fixes #2483 2020-06-18 19:58:16 +02:00
Andreas Dangel
a9f61260ae [scala] Remove unnecessary surefire config 2020-06-18 19:58:16 +02:00
Andreas Dangel
b607fa95d0 Don't use \\R yet... 2020-06-18 19:58:12 +02:00
Clément Fournier
e435037fdc Merge branch 'fix-xpath-rulechain' 2020-06-18 17:16:32 +02:00
Clément Fournier
2cfec287db Merge branch 'master' into fix-xpath-rulechain 2020-06-18 17:16:23 +02:00
Clément Fournier
121fb55567 Add test case 2020-06-18 17:12:37 +02:00
Andreas Dangel
0f06f5132a Merge branch 'pr-2593'
[java] NPathComplexity should mention the expected NPath complexity #2593
2020-06-18 15:09:35 +02:00
Andreas Dangel
186355c4f0 [doc] Update release notes, fixes #2570, refs #2593 2020-06-18 15:08:37 +02:00
Andreas Dangel
fd63c97d33 [java] NPathComplexityRule: Use String.valueOf consistently 2020-06-18 15:07:00 +02:00
Andreas Dangel
db89c43fb6 Merge branch 'pr-2566'
[java] Auxclasspath in PMD CLI does not support relative file path #2566
2020-06-18 15:04:49 +02:00
Andreas Dangel
ca44ca3964 Merge branch 'pr-2557'
[java] UseProperClassLoader can not detect the case with method call … #2557
2020-06-18 15:03:43 +02:00
Andreas Dangel
45d3c07201 Merge branch 'pr-2556'
[apex] Exception applying rule UnusedLocalVariable on trigger #2556
2020-06-18 15:01:25 +02:00
Andreas Dangel
18c3796760 [doc] Update release notes, refs #2600, refs #1932 2020-06-18 14:50:01 +02:00
Andreas Dangel
5579ddc21a [java] UseStringBufferForStringAppends: add good example 2020-06-18 14:48:34 +02:00
Andreas Dangel
dda76be8ae [java] UseStringBufferForStringAppends: fix false negative with fields
And also fix false positive when concatenation is local to each
for-loop iteration.

Test cases originally from #1932

Author: jborgers <jborgers@jpinpoint.com>
2020-06-18 14:37:47 +02:00
Andreas Dangel
a7f0c3d55f [doc] Update release notes, refs #2599 2020-06-18 12:57:18 +02:00
Andreas Dangel
4e0e2d14ba [core] Fix XPath 2.0 Rule Chain Analyzer
For the XPath expression

(//ForStatement | //WhileStatement | //DoStatement)//AssignmentOperator

we threw away "AssignmentOperator" and started visiting at this node.
But that's not possible, because that's not at the root of the expr.
2020-06-18 12:44:18 +02:00
Andreas Dangel
f1d46714a5 [java] InefficientStringBuffering: fix another ternary false positive 2020-06-18 12:10:36 +02:00
Andreas Dangel
4feb44b373 [java] AvoidCalendarDateCreation: fix more false positives 2020-06-18 11:58:37 +02:00
Andreas Dangel
93930c40fb Merge branch 'master' into perf-AvoidCalendarDateCreation 2020-06-18 11:13:55 +02:00
Andreas Dangel
f1400e37f7 [java] AvoidCalendarDateCreation - fix false positives 2020-06-18 11:11:15 +02:00
Andreas Dangel
2ed80df735 [doc] Update release notes, refs #2591 2020-06-18 10:34:31 +02:00
Andreas Dangel
1e986ed793 [java] Fix false positive for AppendCharacterWithChar and InefficientStringBuffering
Also make both rules use the rule chain.
2020-06-18 10:28:12 +02:00
Clément Fournier
2592c56229 Make apex end column inclusive 2020-06-17 20:03:16 +02:00
Clément Fournier
8e47ed3188 Merge branch 'master' into cpd-text-comp 2020-06-17 20:00:50 +02:00
Andreas Dangel
ca0f6535a4 Merge branch 'pr-2573'
[java] DefaultPackage: Allow package default JUnit 5 Test methods #2573
2020-06-15 20:26:04 +02:00
Andreas Dangel
e3bed25b4b [doc] Update release notes, refs #2573 2020-06-15 20:24:46 +02:00
Clément Fournier
62c5ebe482 Merge branch 'issue-2545' 2020-06-15 17:46:11 +02:00
Clément Fournier
527b75ceb4 Merge branch 'master' into issue-2545 2020-06-15 17:42:27 +02:00
Clément Fournier
2b19527649 Change property name to be camelCase 2020-06-15 17:41:30 +02:00
Artem Krosheninnikov
5706dbc4b8 fix issue #2570, add information about expected NPath complexity to rule violation message 2020-06-14 22:42:51 +03:00
Clément Fournier
d631b79307 Deprecate stuff for #2491 2020-06-14 21:36:33 +02:00
Andreas Dangel
b8e9ff19b2 [java] Fix rules InefficientStringBuffering and refactor existing rules
Rules affected additionally: AppendCharacterWithChar,
ConsecutiveLiteralAppends, InsufficientStringBufferDeclaration

Deprecate InefficientStringBuffering::isInStringBufferOperation
2020-06-14 12:59:06 +02:00
Artem Krosheninnikov
1986ae65da revert jcommander as after 1.72 some methods were removed 2020-06-14 12:59:36 +03:00
Clément Fournier
87797f7621 Port JSP tests 2020-06-14 05:27:46 +02:00
Craig Andrews
18191a1814 [java] Allow package default JUnit 5 Test methods
JUnit 5 allows test methods to be default / package scoped.
2020-06-13 23:19:51 -04: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