1

Сan you please guide me on how to reduce the full test coverage threshold in the config file in the repository? I had 33% full coverage in some project, my edits reduced it to 0.2, and I would like to say to codeclimate that this is acceptable

I have my golang repo and .codeclimate.yml in root:

version: "2"         # required to adjust maintainability checks
checks:
  return-statements:
    enabled: false

enter image description here

fpawel
  • 309
  • 1
  • 3
  • 14

2 Answers2

1

as pointed here there is no configuration to modify that.

Extracted from the docs

If the overall test coverage percentage of your repository will decrease (by 0.1% >or more) by merging the PR, Code Climate will send a failed status to Github.

If I'm understanding correctly, you would like to increase that threshold to lets say 0.5%, so for the case of your edits codeclimate doesn't raise a flag. If that's the case, then again, that's not configurable.

Under your Repo -> Settings, you can enable or disable sending pass/fail statuses >on your total coverage.

Federico Moya
  • 722
  • 5
  • 5
  • many thanks for feedback. I was hoping that there are ways, perhaps not described enough in the documentation. – fpawel Apr 04 '21 at 11:29
1

Check this document. You can disable the Enforce Diff Coverage and Enforce Totoal Coverage checks in codeclimate so that these reports are not run for your commits.

Sachin Singh
  • 993
  • 8
  • 16