Skip to content

Commit

Permalink
Merge pull request #18 from antonmarin/codeclimate
Browse files Browse the repository at this point in the history
codeclimate
  • Loading branch information
antonmarin authored Mar 14, 2019
2 parents c788dc6 + ded70d9 commit ab698af
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: "2"
plugins:
editorconfig:
enabled: true
fixme:
enabled: true
gofmt:
enabled: true
golint:
enabled: true
govet:
enabled: true
markdownlint:
enabled: true
duplication:
enabled: true
exclude_patterns:
- ".idea"
- "release/"
- "**/vendor/"
- "**/*_test.go"
- "**/*.d.ts"
18 changes: 14 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ tasks:
- go vet $({{ .CMD_LIST_PACKAGES }})
deps: [build]

test:
desc: "Test application"
qa:
cmds:
- go test -race -coverprofile=c.out $({{ .CMD_LIST_PACKAGES }})
deps: [lint]
- docker run
--interactive --tty --rm
--env CODECLIMATE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
--volume /tmp/cc:/tmp/cc
codeclimate/codeclimate analyze

require-cobra:
cmds:
Expand All @@ -62,3 +66,9 @@ tasks:
- curl https://raw.githubusercontent.com/golang/dep/{{ .VERSION_DEP }}/install.sh | sh
status:
- test -f "$(command -v dep)"

test:
desc: "Test application"
cmds:
- go test -race -coverprofile=c.out $({{ .CMD_LIST_PACKAGES }})
deps: [lint]

0 comments on commit ab698af

Please sign in to comment.