You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -366,14 +366,24 @@ By doing this you won't create new issues in code and can smoothly fix existing
366
366
367
367
A: You have 2 choices:
368
368
1. Use [GolangCI](https://golangci.com): this service is highly integrated with GitHub (issues are commented in the pull request) and uses a `golangci-lint` tool. For configuration use `.golangci.yml` (or toml/json).
369
-
2. Use custom CI: just run `golangci-lint` in CI and check exit code. If it's non-zero - fail the build. The main disadvantage is that you can't see found issues in pull request code and should view build log, then open needed source file to see a context.
370
-
If you'd like to vendor `golangci-lint`to fix it's version run:
369
+
2. Use custom CI: just run `golangci-lint` in CI and check the exit code. If it's non-zero - fail the build. The main disadvantage is that you can't see found issues in pull request code and should view build log, then open needed source file to see a context.
370
+
If you'd like to vendor `golangci-lint`in your repo, run:
371
371
```bash
372
372
go get -u github.com/golang/dep/cmd/dep
373
373
dep init
374
374
dep ensure -v -add github.com/golangci/golangci-lint/cmd/golangci-lint
375
375
```
376
-
And in CI run next command to install vendored `golangci-lint`: `go install ./vendor/github.com/golangci/golangci-lint/cmd/golangci-lint/`.
376
+
Then add these lines to your `Gopkg.toml` file, so `dep ensure -update` won't delete the vendored `golangci-lint` code.
0 commit comments