Fix the counting of rules, errors and warnings in included files
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13166 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
ba77a3862f
commit
16804860a1
|
@ -149,8 +149,11 @@ def checkdialoguefile(msgfile, location):
|
||||||
for extrapath in extrafiles:
|
for extrapath in extrafiles:
|
||||||
newfiles, newrules, newwarnings, newerrors = checkdialoguefile(extrapath, location)
|
newfiles, newrules, newwarnings, newerrors = checkdialoguefile(extrapath, location)
|
||||||
print "checked ", newrules, "rules from file", extrapath, "Found ", newerrors, " errors and ", newwarnings,"warnings"
|
print "checked ", newrules, "rules from file", extrapath, "Found ", newerrors, " errors and ", newwarnings,"warnings"
|
||||||
|
warnings +=newwarnings
|
||||||
|
rulenumber+=newrules
|
||||||
|
errors+=newerrors
|
||||||
extrafiles = []
|
extrafiles = []
|
||||||
return (1+newfiles, rulenumber+newrules, warnings+newwarnings, errors+newerrors)
|
return (1+newfiles, rulenumber, warnings, errors)
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
print "usage: python dialog_check.py path/to/dialogfile.msg"
|
print "usage: python dialog_check.py path/to/dialogfile.msg"
|
||||||
|
|
Loading…
Reference in New Issue