@@ -90,18 +90,36 @@ function assertSrcContents() {
90
90
91
91
// check that all file names are in lower case
92
92
function assertFileNames ( ) {
93
+ var pattern = combineGlobs ( [
94
+ path . join ( constants . pathToRoot , '*.*' ) ,
95
+ path . join ( constants . pathToSrc , '**/*.*' ) ,
96
+ path . join ( constants . pathToLib , '**/*.*' ) ,
97
+ path . join ( constants . pathToDist , '**/*.*' ) ,
98
+ path . join ( constants . pathToRoot , 'test' , '**/*.*' ) ,
99
+ path . join ( constants . pathToRoot , 'tasks' , '**/*.*' ) ,
100
+ path . join ( constants . pathToRoot , 'devtools' , '**/*.*' )
101
+ ] ) ;
102
+
93
103
var logs = [ ] ;
94
104
95
- glob ( combineGlobs ( [ srcGlob , libGlob , testGlob , bundleTestGlob ] ) , function ( err , files ) {
105
+ glob ( pattern , function ( err , files ) {
96
106
files . forEach ( function ( file ) {
97
107
var base = path . basename ( file ) ;
98
108
109
+ if (
110
+ base === 'README.md' ||
111
+ base === 'CONTRIBUTING.md' ||
112
+ base === 'CHANGELOG.md' ||
113
+ base === 'SECURITY.md' ||
114
+ file . indexOf ( 'mathjax' ) !== - 1
115
+ ) return ;
116
+
99
117
if ( base !== base . toLowerCase ( ) ) {
100
118
logs . push ( [
101
- file , ' :' ,
119
+ file , ':' ,
102
120
'has a file name containing some' ,
103
121
'non-lower-case characters'
104
- ] ) ;
122
+ ] . join ( ' ' ) ) ;
105
123
}
106
124
} ) ;
107
125
0 commit comments