Skip to content

Commit addfbfb

Browse files
committed
Changes for git and hg
1 parent 31c03ed commit addfbfb

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

nsiqcppstyle_exe.py

+14-10
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,20 @@ def main(argv=None):
267267
for root, dirs, files in os.walk(targetPath):
268268
if '.cvs' in dirs:
269269
dirs.remove('.cvs')
270-
if '.svn' in dirs:
271-
dirs.remove('.svn')
272-
for fname in files:
273-
fileExtension = fname[fname.rfind('.') + 1: ]
274-
eachFile = os.path.join(root, fname)
275-
basePart = eachFile[len(targetPath): ]
276-
if fileExtension in cExtendstionSet and basefilelist.IsNewOrChanged(eachFile) and filter.CheckFileInclusion(basePart):
277-
nsiqcppstyle_reporter.StartFile(os.path.dirname(basePart), fname)
278-
ProcessFile(ruleManager, eachFile, analyzedFiles, ciMode)
279-
nsiqcppstyle_reporter.EndFile()
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()
280284
ruleManager.RunProjectRules(targetPath)
281285
nsiqcppstyle_reporter.EndTarget()
282286

0 commit comments

Comments
 (0)