wmllint: extend scenario check to include first scenario
Some newbie authors run into trouble at this point!
This commit is contained in:
parent
93af90d2db
commit
8b3aba7ccb
1 changed files with 3 additions and 0 deletions
|
@ -931,6 +931,9 @@ def local_sanity_check(filename, nav, key, prefix, value, comment):
|
|||
if parent in ("[allow_recruit]", "[disallow_recruit]") and key == "recruit":
|
||||
print errlead + "recruit= should be type="
|
||||
# Accumulate data to check for missing next scenarios
|
||||
if parent == '[campaign]':
|
||||
if key == "first_scenario" and value != "null":
|
||||
nextrefs.append((filename, nav.lineno, value))
|
||||
if parent == '[scenario]' or parent == None:
|
||||
if key == "next_scenario" and value != "null":
|
||||
nextrefs.append((filename, nav.lineno, value))
|
||||
|
|
Loading…
Add table
Reference in a new issue