Bug 1455086 - codespell: add an exclude list r=ahal

MozReview-Commit-ID: JcRGpjXzxEi

--HG--
extra : rebase_source : 25dda950ddbe3a077e0c74b10f472b97a56565a7
This commit is contained in:
Sylvestre Ledru 2018-04-18 21:17:40 +02:00
Родитель 44232b9bb8
Коммит e2ad665009
2 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -30,6 +30,8 @@ results = []
CODESPELL_FORMAT_REGEX = re.compile(r'(.*):(.*): (.*) ==> (.*)$')
here = os.path.abspath(os.path.dirname(__file__))
class CodespellProcess(ProcessHandlerMixin):
def __init__(self, config, *args, **kwargs):
@ -98,6 +100,7 @@ def lint(paths, config, fix=None, **lintargs):
return []
config['root'] = lintargs['root']
exclude_list = os.path.join(here, 'exclude-list.txt')
cmd_args = [binary,
'--disable-colors',
# Silence some warnings:
@ -106,6 +109,8 @@ def lint(paths, config, fix=None, **lintargs):
# 4: shut down warnings about automatic fixes
# that were disabled in dictionary.
'--quiet-level=4',
'--ignore-words=' + exclude_list,
'--skip=exclude-list.txt',
]
# Disabled for now because of

Просмотреть файл

@ -0,0 +1,6 @@
cas
optin
aparent
acount
te