From 6e3b7a8684fc4b49033a5243befa226914f22574 Mon Sep 17 00:00:00 2001 From: Fernando Serboncini Date: Mon, 18 Oct 2021 09:16:40 -0400 Subject: [PATCH] Allow args, with default to fast. --- linter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linter.py b/linter.py index 0922c94..0682fd9 100644 --- a/linter.py +++ b/linter.py @@ -2,7 +2,7 @@ class GolangCILint(Linter): - cmd = 'golangci-lint run --fast --out-format tab ${file_path}' + cmd = 'golangci-lint run ${args} --out-format tab ${file_path}' tempfile_suffix = '-' # Column reporting is optional and not provided by all linters. # Issues reported by the 'typecheck' linter are treated as errors, @@ -12,5 +12,6 @@ class GolangCILint(Linter): r'(?P(?Ptypecheck)|\w+)\s+(?P.+)$' default_type = WARNING defaults = { - 'selector': 'source.go' + 'selector': 'source.go', + 'args': '--fast' }