File tree Expand file tree Collapse file tree 2 files changed +29
-7
lines changed
dev/tests/static/framework/Magento/TestFramework/CodingStandard/Tool Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 10
10
namespace Magento \TestFramework \CodingStandard \Tool ;
11
11
12
12
use \Magento \TestFramework \CodingStandard \ToolInterface ;
13
+ use Magento \TestFramework \CodingStandard \Tool \CodeMessOutput ;
13
14
14
15
class CodeMessDetector implements ToolInterface
15
16
{
@@ -21,16 +22,12 @@ class CodeMessDetector implements ToolInterface
21
22
private $ rulesetFile ;
22
23
23
24
/**
24
- * Report file
25
- *
26
25
* @var string
27
26
*/
28
27
private $ reportFile ;
29
28
30
29
/**
31
- * Constructor
32
- *
33
- * @param string $rulesetDir \Directory that locates the inspection rules
30
+ * @param string $rulesetFile \Directory that locates the inspection rules
34
31
* @param string $reportFile Destination file to write inspection report to
35
32
*/
36
33
public function __construct ($ rulesetFile , $ reportFile )
@@ -50,7 +47,7 @@ public function canRun()
50
47
}
51
48
52
49
/**
53
- * { @inheritdoc}
50
+ * @inheritdoc
54
51
*/
55
52
public function run (array $ whiteList )
56
53
{
@@ -69,7 +66,7 @@ public function run(array $whiteList)
69
66
70
67
$ options = new \PHPMD \TextUI \CommandLineOptions ($ commandLineArguments );
71
68
72
- $ command = new \PHPMD \TextUI \Command ();
69
+ $ command = new \PHPMD \TextUI \Command (new CodeMessOutput () );
73
70
74
71
return $ command ->run ($ options , new \PHPMD \RuleSetFactory ());
75
72
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+
7
+ /**
8
+ * PHP Code Mess v1.3.3 tool wrapper
9
+ */
10
+ declare (strict_types=1 );
11
+
12
+ namespace Magento \TestFramework \CodingStandard \Tool ;
13
+
14
+ use PHPMD \Console \Output ;
15
+
16
+ class CodeMessOutput extends Output
17
+ {
18
+ /**
19
+ * @inheritdoc
20
+ */
21
+ protected function doWrite ($ message )
22
+ {
23
+ // TODO: Implement doWrite() method.
24
+ }
25
+ }
You can’t perform that action at this time.
0 commit comments