Teach wmllint to fix a common WML typo, "agression" for "aggression".
This commit is contained in:
parent
bf063e25f6
commit
346f37d8e8
5 changed files with 7 additions and 5 deletions
|
@ -60,7 +60,7 @@
|
|||
fog=yes
|
||||
shroud=no
|
||||
[ai]
|
||||
agression=0.6
|
||||
aggression=0.6
|
||||
grouping=offensive
|
||||
recruitment_pattern=mixed fighter,fighter
|
||||
[/ai]
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
fog=no
|
||||
shroud=no
|
||||
[ai]
|
||||
agression=0.5
|
||||
aggression=0.5
|
||||
caution=0.1
|
||||
villages_per_scout=8
|
||||
village_value=0.5
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
no_leader=yes
|
||||
[ai]
|
||||
village_value=0
|
||||
agression=0.8
|
||||
aggression=0.8
|
||||
[/ai]
|
||||
[/side]
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
no_leader=yes
|
||||
[ai]
|
||||
village_value=0
|
||||
agression=0.8
|
||||
aggression=0.8
|
||||
[/ai]
|
||||
[/side]
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
# the spelling exceptions apply to all files below the parent
|
||||
# directory.
|
||||
#
|
||||
# A coment containing "no spellcheck" disable spellchecking on the
|
||||
# A coment containing "no spellcheck" disables spellchecking on the
|
||||
# line where it occurs.
|
||||
|
||||
import sys, os, re, getopt, string, copy, difflib, time
|
||||
|
@ -116,6 +116,8 @@ linechanges = (
|
|||
("canrecruit=1", "canrecruit=yes"),
|
||||
("canrecruit=0", "canrecruit=no"),
|
||||
("generate_description", "generate_name"),
|
||||
# Fix a common typo
|
||||
("agression=", "aggression="),
|
||||
# These changed just after 1.5.0
|
||||
("[special_filter]", "[filter_attack]"),
|
||||
("[wml_filter]", "[filter_wml]"),
|
||||
|
|
Loading…
Add table
Reference in a new issue