Simplify `register_linter`
@@ -169,11 +169,10 @@ class LinterMeta(type):
cls.reinitialize()
if 'syntax' in attrs and name not in BASE_CLASSES:
- cls.register_linter(name, attrs)
+ cls.register_linter(name)
- def register_linter(cls, name, attrs):
+ def register_linter(cls, name):
"""Add a linter class to our mapping of class names <-> linter classes."""
- if name:
name = name.lower()
persist.linter_classes[name] = cls
@@ -186,9 +185,6 @@ class LinterMeta(type):
logger.info('{} linter reloaded'.format(name))
- else:
- logger.info('{} linter loaded'.format(name))
-
def map_args(cls, defaults):
"""
Map plain setting names to args that will be passed to the linter executable.
