Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: problem with codeClimate #689

Closed
harsh-98 opened this issue Aug 28, 2023 · 1 comment
Closed

chore: problem with codeClimate #689

harsh-98 opened this issue Aug 28, 2023 · 1 comment

Comments

@harsh-98
Copy link
Contributor

harsh-98 commented Aug 28, 2023

Background

CodeClimate is built upon different plugins like govet, golint, gofmt, golangci-lint etc. Almost all of the suggestions in codeClimate report are from golint. But golint has been deprecated in preference to staticcheck.

Codeclimate has a tool available for getting these suggestions locally. I looked for a way to only run codeClimate on specific comments, but can't find it.

Currently I have to run codeClimate separately for each file to get all the suggestions locally, this is a hassle. My codecliamte.yml config for replicating codeClimate report locally is:

plugins:
  golint:
    enabled: true

and then run

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 file_name/directory

Questions:

  • Does someone know how to disable some golint checks in .codeclimate.yml? There is golint config section on codeclimate website but that doesn't delve into this and golint is deprecated so info from there too.
  • Can we change the golint plugin to something more configurable and active in codeClimate?
@chair28980
Copy link
Contributor

Closing as fixed per go-waku pm meeting 2023-12-12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants