Allow '<untitled>' in `excludes` setting
@@ -161,6 +161,7 @@ def get_selectors(linter, wanted_syntax):
def filter_linters(linters, view):
filename = view.file_name()
+ filename = os.path.realpath(filename) if filename else '<untitled>'
enabled, disabled = [], []
for linter in linters:
@@ -175,10 +176,7 @@ def filter_linters(linters, view):
disabled.append(linter)
continue
- if filename:
- filename = os.path.realpath(filename)
excludes = util.convert_type(view_settings.get('excludes', []), [])
-
if excludes:
matched = False
