Skip to content

Commit

Permalink
Remove gometalinter from the docs and the CircleCI check
Browse files Browse the repository at this point in the history
  • Loading branch information
na-- committed Jun 3, 2019
1 parent 0dd4262 commit 607b63c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
17 changes: 5 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
jobs:
lint:
deps:
docker:
- image: circleci/golang:1.12
environment:
Expand All @@ -18,14 +18,7 @@ jobs:
dep version
dep status
dep ensure -update -dry-run
- run:
name: Run linter
command: |
export PATH=$GOPATH/bin:$PATH
go get -t ./...
go get -u github.com/alecthomas/gometalinter
gometalinter --install
gometalinter --deadline 10m --config gometalinter.json --vendor ./...
test:
docker:
Expand Down Expand Up @@ -157,7 +150,7 @@ workflows:
version: 2
test_and_build:
jobs:
- lint:
- deps:
filters:
tags:
only: /.*/
Expand All @@ -171,14 +164,14 @@ workflows:
only: /.*/
- build-docker-images:
requires:
- lint
- deps
- test
filters:
tags:
only: /.*/
- build-linux-packages:
requires:
- lint
- deps
- test
filters:
branches:
Expand Down
9 changes: 4 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ go build

**Running the linter**:

We make use of the [gometalinter](https://github.com/alecthomas/gometalinter) tool to lint the code in CI. To run it locally, first install it:
We make use of the [golangci-lint](https://github.com/golangci/golangci-lint) tool to lint the code in CI. To run it locally, first install it:
```bash
go get -u github.com/alecthomas/gometalinter
gometalinter --install
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
```
then run:
```
gometalinter --deadline 10m --config gometalinter.json --vendor ./...
golangci-lint run --out-format=tab --new-from-rev master ./...
```

If you've added new dependencies you might also want to check and make sure all dependencies exists in `vendor/` folder by running:
Expand Down Expand Up @@ -106,7 +105,7 @@ As you'd expect, please adhere to good ol' `gofmt` (there are plugins for most e
Continuous integration will catch all of this if you don't, and it's fine to just fix linter complaints with another commit, but you can also run the linter yourself:

```
gometalinter --config gometalinter.json --deadline 10m ./...
golangci-lint run --out-format=tab --new-from-rev master ./...
```

Comments in the source should wrap at 100 characters, but there's no maximum length or need to be brief here - please include anything one might need to know in order to understand the code, that you could reasonably expect any reader to not already know (you probably don't need to explain what a goroutine is).
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ format:

.PHONY: check
check:
gometalinter --deadline 10m --config gometalinter.json --vendor ./...
golangci-lint run --out-format=tab --new-from-rev master ./...
go test -race -timeout 210s ./...

.PHONY: docs
Expand Down
3 changes: 2 additions & 1 deletion release notes/upcoming.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ Now all http methods have an additional param called `compression` that will mak

## Internals

* JS: VU initialization time and memory usage has been significantly decreased by caching the parsed version of the core-js library. Thanks, @matlockx! (#1038)
* JS: VU initialization time and memory usage has been significantly decreased by caching the parsed version of the core-js library. Thanks, @matlockx! (#1038)
* CI: removed the gometalinter check in CircleCI, since that project [was deprecated](https://github.com/alecthomas/gometalinter/issues/590) and now exclusively rely on [golangci-lint](https://github.com/golangci/golangci-lint). (#1039)

0 comments on commit 607b63c

Please sign in to comment.