@@ -263,24 +263,24 @@ def main(argv=None):
263
263
ProcessFile (ruleManager , targetPath , analyzedFiles , ciMode )
264
264
265
265
# if the target is directory, analyze it with filefilter and basefilelist
266
- else :
267
- for root , dirs , files in os .walk (targetPath ):
268
- if '.cvs' in dirs :
269
- dirs .remove ('.cvs' )
270
- if '.svn' in dirs :
271
- dirs .remove ('.svn' )
272
- if '.git' in dirs :
273
- dirs .remove ('.git' )
274
- if '.hg' in dirs :
275
- dirs .remove ('.hg' )
276
- for fname in files :
277
- fileExtension = fname [fname .rfind ('.' ) + 1 : ]
278
- eachFile = os .path .join (root , fname )
279
- basePart = eachFile [len (targetPath ): ]
280
- if fileExtension in cExtendstionSet and basefilelist .IsNewOrChanged (eachFile ) and filter .CheckFileInclusion (basePart ):
281
- nsiqcppstyle_reporter .StartFile (os .path .dirname (basePart ), fname )
282
- ProcessFile (ruleManager , eachFile , analyzedFiles , ciMode )
283
- nsiqcppstyle_reporter .EndFile ()
266
+ else :
267
+ for root , dirs , files in os .walk (targetPath ):
268
+ if '.cvs' in dirs :
269
+ dirs .remove ('.cvs' )
270
+ if '.svn' in dirs :
271
+ dirs .remove ('.svn' )
272
+ if '.git' in dirs :
273
+ dirs .remove ('.git' )
274
+ if '.hg' in dirs :
275
+ dirs .remove ('.hg' )
276
+ for fname in files :
277
+ fileExtension = fname [fname .rfind ('.' ) + 1 : ]
278
+ eachFile = os .path .join (root , fname )
279
+ basePart = eachFile [len (targetPath ): ]
280
+ if fileExtension in cExtendstionSet and basefilelist .IsNewOrChanged (eachFile ) and filter .CheckFileInclusion (basePart ):
281
+ nsiqcppstyle_reporter .StartFile (os .path .dirname (basePart ), fname )
282
+ ProcessFile (ruleManager , eachFile , analyzedFiles , ciMode )
283
+ nsiqcppstyle_reporter .EndFile ()
284
284
ruleManager .RunProjectRules (targetPath )
285
285
nsiqcppstyle_reporter .EndTarget ()
286
286
0 commit comments