File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
tests/static/testsuite/Magento/Test/Js/_files/blacklist Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -14,3 +14,6 @@ lib/web/mage/adminhtml/varienLoader.js
14
14
lib/web/magnifier/magnifier.js
15
15
lib/web/magnifier/magnify.js
16
16
lib/web/varien/js.js
17
+
18
+ // MINIFIED FILES
19
+ app/code/**/*.min.js
Original file line number Diff line number Diff line change 3
3
* See COPYING.txt for license details.
4
4
*/
5
5
6
- /**
7
- * Copyright © Magento, Inc. All rights reserved.
8
- * See COPYING.txt for license details.
9
- */
10
6
'use strict' ;
11
7
12
8
var glob = require ( 'glob' ) ,
@@ -29,8 +25,8 @@ module.exports = {
29
25
getFilesForValidate : function ( ) {
30
26
var blackListFiles = glob . sync ( pc . static . blacklist + '*.txt' ) ,
31
27
whiteListFiles = glob . sync ( pc . static . whitelist + '*.txt' ) ,
32
- blackList = this . readFiles ( blackListFiles ) ,
33
- whiteList = this . readFiles ( whiteListFiles ) ,
28
+ blackList = this . readFiles ( blackListFiles ) . filter ( this . isListEntryValid ) ,
29
+ whiteList = this . readFiles ( whiteListFiles ) . filter ( this . isListEntryValid ) ,
34
30
files = [ ] ,
35
31
entireBlackList = [ ] ;
36
32
@@ -45,6 +41,11 @@ module.exports = {
45
41
return files ;
46
42
} ,
47
43
44
+ isListEntryValid : function ( line ) {
45
+ line = line . trim ( ) ;
46
+ return line . length > 0 && line . startsWith ( '// ' ) !== true ;
47
+ } ,
48
+
48
49
getFiles : function ( file ) {
49
50
if ( file ) {
50
51
return file . split ( ',' ) ;
You can’t perform that action at this time.
0 commit comments