Skip to content

Commit 8113b27

Browse files
authored
Merge pull request #8 from fserb/master
Allow to specify custom golangci-lint flags via arguments
2 parents a034220 + 6e3b7a8 commit 8113b27

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

linter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class GolangCILint(Linter):
5-
cmd = 'golangci-lint run --fast --out-format tab ${file_path}'
5+
cmd = 'golangci-lint run ${args} --out-format tab ${file_path}'
66
tempfile_suffix = '-'
77
# Column reporting is optional and not provided by all linters.
88
# Issues reported by the 'typecheck' linter are treated as errors,
@@ -12,5 +12,6 @@ class GolangCILint(Linter):
1212
r'(?P<code>(?P<error>typecheck)|\w+)\s+(?P<message>.+)$'
1313
default_type = WARNING
1414
defaults = {
15-
'selector': 'source.go'
15+
'selector': 'source.go',
16+
'args': '--fast'
1617
}

0 commit comments

Comments
 (0)