Switch 'active' to 'disabled' for rules.

This commit is contained in:
Michael Scovetta 2017-03-18 23:01:47 -07:00
Родитель 0d23d336d4
Коммит 94962cef2e
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -637,8 +637,8 @@ class DevSkimEventListener(sublime_plugin.EventListener):
logger.warning("Error suppressing rules for %s: %s" %
(rule_id, msg))
# Only include active rules -- if 'active' is not specified, assume True
rules = list(filter(lambda x: x.get('active', True), rules))
# Only include non-disabled rules -- if 'disabled' is not specified, assume False
rules = list(filter(lambda x: not x.get('disabled', False), rules))
# Filter by tags, if specified, convert all to lowercase
show_only_tags = set([k.lower().strip()