16222 Commits

Author SHA1 Message Date
Andreas Dangel
3eb36712fd Add code of conduct
Fixes #2357
2020-04-17 16:13:34 +02:00
Clément Fournier
ea532e6d2d Rename RecordDeclaration::getComponentList to getRecordComponents
This name is clearer when seen from the
interface ASTAnyTypeDeclaration, also
it matches the Class API
2020-04-16 14:28:59 +02:00
Andreas Dangel
954bfb28d4 [ci] Update java to 11.0.7+10 2020-04-15 19:37:19 +02:00
Andreas Dangel
ac21dc95b1 Merge branch 'pr-2407'
[core] Deprecate Jaxen and XPath internal API #2407
2020-04-13 12:17:58 +02:00
Andreas Dangel
161af4dfd3 [doc] Update release notes with deprecations, see #2407 2020-04-13 12:17:13 +02:00
Andreas Dangel
5c31d40ec2 [core] XPathRule: use == for enum comparison 2020-04-13 12:16:55 +02:00
Andreas Dangel
0726496726 Merge branch 'pr-2409'
[java] ClassNamingConventions suggests to add Util for class containing only static constants, fixes #1164 #2409
2020-04-13 12:06:01 +02:00
Andreas Dangel
cc2894eaf4 [doc] Update release notes, refs #2409, fixes #1164 2020-04-13 12:04:56 +02:00
Clément Fournier
e70568ff54 Merge branch 'pr-2411' 2020-04-11 21:50:14 +02:00
Clément Fournier
363f70b481 Update release notes, refs #2411 2020-04-11 21:49:43 +02:00
Andreas Dangel
85924b5ad1 Merge branch 'pr-2388'
[lang-test] Use tree dumps for regression tests #2388
2020-04-11 15:09:42 +02:00
Blightbuster
8c2edd625f
Fix UseAssertEqualsInsteadOfAssertTrue Example
String used ? instead of "
2020-04-11 14:32:43 +02:00
Andreas Dangel
0710877d05 [core] Deprecate AntlrToken#getType() in favor of #getKind()
Refs #2371
2020-04-10 18:50:58 +02:00
Binu R J
f4b95a3ae3 [java] ClassNamingConventions suggests to add Util for class containing only static constants, fixes #1164 2020-04-09 19:15:39 +05:30
Clément Fournier
60d443963c Call default ctor
Defines properties
2020-04-09 15:28:20 +02:00
Clément Fournier
60087590e6 Remove changes to XPathHandler 2020-04-08 22:07:26 +02:00
Clément Fournier
1de1d1c66d Update some usages early 2020-04-08 22:00:36 +02:00
Clément Fournier
5067c79eb2 Cleanup a test 2020-04-08 21:38:10 +02:00
Clément Fournier
961e78954a Update some tests 2020-04-08 21:35:34 +02:00
Clément Fournier
8284fc8e81 Deprecate two other things 2020-04-08 21:35:34 +02:00
Clément Fournier
bcf90ceb8a Externalize creator for XPath rule 2020-04-08 21:35:34 +02:00
Clément Fournier
fc304bf70c Add XPath version maker 2020-04-08 21:35:34 +02:00
Andreas Dangel
c7941638e8 Merge branch 'pr-2401'
[doc] Update DoNotUseThreads rule documentation #2401
2020-04-06 20:21:32 +02:00
Andreas Dangel
4c0a47e2b7 [doc] Update release notes, refs #2401, fixes 2313 2020-04-06 20:20:51 +02:00
Andreas Dangel
41c56803af Merge branch 'pr-2403'
[java] #2402 fix false-positives on Primitive Streams #2403
2020-04-06 20:07:55 +02:00
Andreas Dangel
d64ea87bbc [doc] Update release notes, refs #2403, fixes #2402 2020-04-06 20:07:47 +02:00
Bernd Farka
f28bdbed5e issue 2402 fix false-positives on Primitive Streams 2020-04-05 19:47:52 +02:00
Saikat
dcde4258b3 Update DoNotUseThreads rule documentation
Fixes #2313 [java] Documentation for DoNotUseThreads is outdated
2020-04-05 11:46:51 +05:30
Andreas Dangel
0356895cc2 [doc] Fix github issue templates
The labels were wrong, maybe now they are assigned
automatically...
2020-04-04 18:29:50 +02:00
Andreas Dangel
69ed0464a7 Merge branch 'pr-2385'
[java] Make yield statements more conditional #2385

Fixes #2319
2020-04-04 18:20:49 +02:00
Andreas Dangel
5ed8570703 Add new rule: apex/bestpractices.xml/UnusedLocalVariable 2020-04-04 18:09:44 +02:00
Andreas Dangel
a86e172b98 Merge branch 'pr-2395'
[apex] New Rule: Unused local variables #2395
2020-04-04 18:08:41 +02:00
Andreas Dangel
cdbb4570b4 [doc] Update release notes, refs #2395 2020-04-04 18:07:28 +02:00
Andreas Dangel
9db695eee2 [apex] Add additional test case for unused local var shadowing a field 2020-04-04 18:07:23 +02:00
Andreas Dangel
2f33951f60 Add new rules ruleset for release 6.23.0 2020-04-04 17:49:09 +02:00
Andreas Dangel
6196da44b0 Merge branch 'pr-2396'
[apex] New rule: field declarations should be at start #2396
2020-04-04 17:44:07 +02:00
Andreas Dangel
92a518c991 [doc] Update release notes, refs #2396 2020-04-04 17:43:14 +02:00
Andreas Dangel
f1759c68c6 [apex] Move new rule def up in codestyle.xml 2020-04-04 17:38:13 +02:00
Andreas Dangel
130fee68de Merge branch 'pr-2376'
[doc] Add missing doc about pmd.github.io #2376
2020-04-04 10:56:24 +02:00
Andreas Dangel
d3b45e5d96 Merge branch 'pr-2370'
[doc] Improve documentation about incremental analysis #2370
2020-04-04 10:54:35 +02:00
Andreas Dangel
a04964c32a Merge branch 'pr-2392'
[java] Fix UseDiamondOperator false positive inside lambda #2392
2020-04-04 10:44:32 +02:00
Andreas Dangel
e064a5f5ca [doc] Update release notes, fixes #1723 2020-04-04 10:43:52 +02:00
Andreas Dangel
9155a31b2a Merge branch 'pr-2397'
[apex] fixed WITH SECURITY_ENFORCED regex to recognise line break characters #2397
2020-04-04 10:21:25 +02:00
Andreas Dangel
e47a6b0007 [doc] Update release notes, refs #2397, fixes #2399 2020-04-04 10:21:18 +02:00
Kieran Black
746797e805 added tests for line breaks 2020-04-03 15:43:56 -04:00
Kieran Black
d09d4de308 fixed WITH SECURITY_ENFORCED regex to recognise line break characters 2020-04-03 12:25:22 -04:00
Gwilym Kuiper
7b06d3001f Make UnusedLocalVariableRule a rule chain rule 2020-04-03 15:27:37 +01:00
Gwilym Kuiper
6a70bda5e6 Should be 6.23.0 for release 2020-04-03 15:19:12 +01:00
Gwilym Kuiper
e94db8bf22 Make rule a RuleChain 2020-04-03 15:18:22 +01:00
Gwilym Kuiper
58185fce2f Extract constant 2020-04-03 15:17:29 +01:00