Add possibility to disable spellcheck

This commit is contained in:
Florian Bruhin 2016-07-15 00:07:37 +02:00
parent a8dc940b73
commit d079caafa8
2 changed files with 5 additions and 3 deletions

View File

@ -346,8 +346,8 @@ class ConfigManager(QObject):
DELETED_OPTIONS = [
('colors', 'tab.separator'),
('colors', 'tabs.separator'),
('colors', 'tab.seperator'),
('colors', 'tabs.seperator'),
('colors', 'tab.seperator'), # pragma: no spellcheck
('colors', 'tabs.seperator'), # pragma: no spellcheck
('colors', 'completion.item.bg'),
('tabs', 'indicator-space'),
('tabs', 'hide-auto'),

View File

@ -112,7 +112,9 @@ def check_spelling():
continue
for line in f:
for w in words:
if re.search(w, line) and fn not in seen[w]:
if (re.search(w, line) and
fn not in seen[w] and
'# pragma: no spellcheck' not in line):
print('Found "{}" in {}!'.format(w, fn))
seen[w].append(fn)
ok = False