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
1414lib/web/magnifier/magnifier.js
1515lib/web/magnifier/magnify.js
1616lib/web/varien/js.js
17+
18+ // MINIFIED FILES
19+ app/code/**/*.min.js
Original file line number Diff line number Diff line change 33 * See COPYING.txt for license details.
44 */
55
6- /**
7- * Copyright © Magento, Inc. All rights reserved.
8- * See COPYING.txt for license details.
9- */
106'use strict' ;
117
128var glob = require ( 'glob' ) ,
@@ -29,8 +25,8 @@ module.exports = {
2925 getFilesForValidate : function ( ) {
3026 var blackListFiles = glob . sync ( pc . static . blacklist + '*.txt' ) ,
3127 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 ) ,
3430 files = [ ] ,
3531 entireBlackList = [ ] ;
3632
@@ -45,6 +41,11 @@ module.exports = {
4541 return files ;
4642 } ,
4743
44+ isListEntryValid : function ( line ) {
45+ line = line . trim ( ) ;
46+ return line . length > 0 && line . startsWith ( '// ' ) !== true ;
47+ } ,
48+
4849 getFiles : function ( file ) {
4950 if ( file ) {
5051 return file . split ( ',' ) ;
You can’t perform that action at this time.
0 commit comments