File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,16 @@ $ golangci-lint run --disable-all -E errcheck
156
156
157
157
# Editor Integration
158
158
1 . [ Go for Visual Studio Code] ( https://marketplace.visualstudio.com/items?itemName=ms-vscode.Go ) .
159
+ Recommended settings for VS Code are:
160
+ ``` json
161
+ "go.lintTool" :" golangci-lint" ,
162
+ "go.lintFlags" : [
163
+ " --fast"
164
+ ]
165
+ ```
166
+ Using it in an editor without ` --fast ` can freeze your editor.
167
+ Golangci-lint automatically discovers ` .golangci.yml ` config for edited file: you don't need to configure it in VS Code settings.
168
+
159
169
2 . Sublime Text - [ plugin] ( https://github.com/alecthomas/SublimeLinter-contrib-golang-cilint ) for SublimeLinter.
160
170
3 . GoLand
161
171
- Configure [ File Watcher] ( https://www.jetbrains.com/help/go/settings-tools-file-watchers.html ) with arguments ` run --print-issued-lines=false $FileDir$ ` .
Original file line number Diff line number Diff line change @@ -129,6 +129,16 @@ $ golangci-lint run --disable-all -E errcheck
129
129
130
130
# Editor Integration
131
131
1 . [ Go for Visual Studio Code] ( https://marketplace.visualstudio.com/items?itemName=ms-vscode.Go ) .
132
+ Recommended settings for VS Code are:
133
+ ``` json
134
+ "go.lintTool" :" golangci-lint" ,
135
+ "go.lintFlags" : [
136
+ " --fast"
137
+ ]
138
+ ```
139
+ Using it in an editor without ` --fast ` can freeze your editor.
140
+ Golangci-lint automatically discovers ` .golangci.yml ` config for edited file: you don't need to configure it in VS Code settings.
141
+
132
142
2 . Sublime Text - [ plugin] ( https://github.com/alecthomas/SublimeLinter-contrib-golang-cilint ) for SublimeLinter.
133
143
3 . GoLand
134
144
- Configure [ File Watcher] ( https://www.jetbrains.com/help/go/settings-tools-file-watchers.html ) with arguments ` run --print-issued-lines=false $FileDir$ ` .
You can’t perform that action at this time.
0 commit comments