We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91a82fa commit b10119dCopy full SHA for b10119d
linter.py
@@ -11,3 +11,13 @@ class Golangcilint(Linter):
11
defaults = {"selector": "source.go"}
12
error_stream = util.STREAM_STDOUT
13
multiline = False
14
+
15
+ def run(self, cmd, code):
16
+ dir = os.path.dirname(self.filename)
17
+ if not dir:
18
+ print("golangcilint: skipped linting of unsaved file")
19
+ return
20
+ if settings.get("lint_mode") == "background":
21
+ return self._live_lint(cmd, code)
22
+ else:
23
+ return self._in_place_lint(cmd)
0 commit comments