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 = [ DELETED_OPTIONS = [
('colors', 'tab.separator'), ('colors', 'tab.separator'),
('colors', 'tabs.separator'), ('colors', 'tabs.separator'),
('colors', 'tab.seperator'), ('colors', 'tab.seperator'), # pragma: no spellcheck
('colors', 'tabs.seperator'), ('colors', 'tabs.seperator'), # pragma: no spellcheck
('colors', 'completion.item.bg'), ('colors', 'completion.item.bg'),
('tabs', 'indicator-space'), ('tabs', 'indicator-space'),
('tabs', 'hide-auto'), ('tabs', 'hide-auto'),

View File

@ -112,7 +112,9 @@ def check_spelling():
continue continue
for line in f: for line in f:
for w in words: 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)) print('Found "{}" in {}!'.format(w, fn))
seen[w].append(fn) seen[w].append(fn)
ok = False ok = False