Context menu "Lint this view" shows up on scratch views
Of course you need a linter installed matching the syntax. Easy to reproduce with the 'annotations' linter. Then you can actually 'lint' GitSavvy interfaces and even our own error panel. 😲 


diff --git a/sublime_linter.py b/sublime_linter.py
index f684b1d..a1e886e 100644
--- a/sublime_linter.py
+++ b/sublime_linter.py
@@ -289,7 +289,13 @@ class sublime_linter_lint(sublime_plugin.TextCommand):
     """A command that lints the current view if it has a linter."""
 
     def is_enabled(self):
-        return any(elect.runnable_linters_for_view(self.view, 'on_user_request'))
+        return (
+            util.is_lintable(self.view)
+            and any(elect.runnable_linters_for_view(self.view, 'on_user_request'))
+        )
+
+    def is_visible(self):
+        return util.is_lintable(self.view)
 
     def run(self, edit):
         hit(self.view, 'on_user_request')
['sublime_linter.py']