@@ -62,7 +62,7 @@ var CSSLint = (function() {
62
62
len = rules . length ;
63
63
64
64
while ( i < len ) {
65
- ruleset [ rules [ i ++ ] . id ] = 1 ; //by default, everything is a warning
65
+ ruleset [ rules [ i ++ ] . id ] = 1 ; // by default, everything is a warning
66
66
}
67
67
68
68
return ruleset ;
@@ -193,7 +193,7 @@ var CSSLint = (function() {
193
193
allowRuleset = { } ;
194
194
195
195
if ( allowRules ) {
196
- allowRules . toLowerCase ( ) . split ( "," ) . forEach ( function ( allowRule ) {
196
+ allowRules . toLowerCase ( ) . split ( "," ) . forEach ( function ( allowRule ) {
197
197
allowRuleset [ allowRule . trim ( ) ] = true ;
198
198
} ) ;
199
199
if ( Object . keys ( allowRuleset ) . length > 0 ) {
@@ -206,22 +206,22 @@ var CSSLint = (function() {
206
206
ignoreEnd = null ;
207
207
CSSLint . Util . forEach ( lines , function ( line , lineno ) {
208
208
// Keep oldest, "unclosest" ignore:start
209
- if ( null === ignoreStart && line . match ( / \/ \* [ \t ] * c s s l i n t [ \t ] + i g n o r e : s t a r t [ \t ] * \* \/ / i) ) {
209
+ if ( null === ignoreStart && line . match ( / \/ \* [ \t ] * c s s l i n t [ \t ] + i g n o r e : s t a r t [ \t ] * \* \/ / i) ) {
210
210
ignoreStart = lineno ;
211
211
}
212
212
213
- if ( line . match ( / \/ \* [ \t ] * c s s l i n t [ \t ] + i g n o r e : e n d [ \t ] * \* \/ / i) ) {
213
+ if ( line . match ( / \/ \* [ \t ] * c s s l i n t [ \t ] + i g n o r e : e n d [ \t ] * \* \/ / i) ) {
214
214
ignoreEnd = lineno ;
215
215
}
216
216
217
- if ( null !== ignoreStart && null !== ignoreEnd ) {
217
+ if ( null !== ignoreStart && null !== ignoreEnd ) {
218
218
ignore . push ( [ ignoreStart , ignoreEnd ] ) ;
219
219
ignoreStart = ignoreEnd = null ;
220
220
}
221
221
} ) ;
222
222
223
223
// Close remaining ignore block, if any
224
- if ( null !== ignoreStart ) {
224
+ if ( null !== ignoreStart ) {
225
225
ignore . push ( [ ignoreStart , lines . length ] ) ;
226
226
}
227
227
@@ -230,14 +230,14 @@ var CSSLint = (function() {
230
230
}
231
231
232
232
if ( embeddedRuleset . test ( text ) ) {
233
- //defensively copy so that caller's version does not get modified
233
+ // defensively copy so that caller's version does not get modified
234
234
ruleset = clone ( ruleset ) ;
235
235
ruleset = applyEmbeddedRuleset ( text , ruleset ) ;
236
236
}
237
237
238
238
reporter = new Reporter ( lines , ruleset , allow , ignore ) ;
239
239
240
- ruleset . errors = 2 ; //always report parsing errors as errors
240
+ ruleset . errors = 2 ; // always report parsing errors as errors
241
241
for ( i in ruleset ) {
242
242
if ( ruleset . hasOwnProperty ( i ) && ruleset [ i ] ) {
243
243
if ( rules [ i ] ) {
@@ -247,7 +247,7 @@ var CSSLint = (function() {
247
247
}
248
248
249
249
250
- //capture most horrible error type
250
+ // capture most horrible error type
251
251
try {
252
252
parser . parse ( text ) ;
253
253
} catch ( ex ) {
@@ -262,7 +262,7 @@ var CSSLint = (function() {
262
262
ignore : reporter . ignore
263
263
} ;
264
264
265
- //sort by line numbers, rollups at the bottom
265
+ // sort by line numbers, rollups at the bottom
266
266
report . messages . sort ( function ( a , b ) {
267
267
if ( a . rollup && ! b . rollup ) {
268
268
return 1 ;
0 commit comments