File tree 2 files changed +80
-0
lines changed
2 files changed +80
-0
lines changed Original file line number Diff line number Diff line change
1
+ // /**
2
+ // * Copyright © Magento, Inc. All rights reserved.
3
+ // * See COPYING.txt for license details.
4
+ // */
5
+
6
+ //
7
+ // First level comment
8
+ // _____________________________________________
9
+
10
+ .first-level {
11
+ background-color : green ;
12
+ }
13
+
14
+ //
15
+ // Incorrect First level comment
16
+ // _____________________________________________
17
+ .incorrect-first-level {
18
+ background-color : red ;
19
+ }
20
+
21
+ //
22
+ // Second level comment
23
+ // ---------------------------------------------
24
+
25
+ .second-level {
26
+ background-color : green ;
27
+ }
28
+
29
+ //
30
+ // Incorrect Second level comment
31
+ // ---------------------------------------------
32
+
33
+ .incorrect-second-level {
34
+ background-color : red ;
35
+ }
36
+
37
+ // third level comment
38
+ .third-level-nav {
39
+ // New line comment, considered third level too
40
+ background-color : green ; // ToDo UI: todo inline comment
41
+ color : white ; // inline comment
42
+ }
43
+
44
+ // Incorrect third level comment
45
+ .incorrect-third-level {
46
+ // Incorrect new line comment
47
+ color : red ; // incorrect inline comment
48
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ namespace Magento2 \Tests \Less ;
7
+
8
+ class CommentLevelsUnitTest extends AbstractLessSniffUnitTestCase
9
+ {
10
+ /**
11
+ * @inheritdoc
12
+ */
13
+ public function getErrorList ()
14
+ {
15
+ return [
16
+ 16 => 1 ,
17
+ 30 => 1 ,
18
+ 31 => 1 ,
19
+ 44 => 1 ,
20
+ 46 => 1 ,
21
+ 47 => 1
22
+ ];
23
+ }
24
+
25
+ /**
26
+ * @inheritdoc
27
+ */
28
+ public function getWarningList ()
29
+ {
30
+ return [];
31
+ }
32
+ }
You can’t perform that action at this time.
0 commit comments