— To migrate an existing account, please see our Migration Guide.
Code Climate provides a few different ways for users to view code quality and test coverage analysis results on a pull request.
Code Climate has an associated Github App that, once installed, supports two types of automated review comments: Summary Comments and Inline Issue Comments.
Summary comments are comments left on the pull request summarizing the issues introduced by the pull request, as well as the test coverage changes.
There are several configuration options for how this comment should behave:
To enable this functionality, please see Configuring Summary Comments.
Inline issue comments are pull request comments left as part of a GitHub review. Any new issues related to lines changed in the diff will be added as comments to the Pull Request. Once addressed, the comments will collapse using the native GitHub behavior.
There are two configuration options for how this comment should behave:
In addition, the maximum number of comments left per review is configurable (default: 5).
To enable this functionality, please see Configuring Inline Issue Comments.
To make use of automated pull request comments, first the CodeClimate GitHub app must be installed.
This integration is configured via a separate GitHub app to utilize several advantages of GitHub Apps compared to OAuth applications:
For more information about GitHub Apps, please see the GitHub documentation.
Note
Only Admins of a GitHub organization are authorized to install and configure GitHub apps. These steps must be completed by a GitHub Admin.
The app can be installed for all current and future repositories in the GitHub organization:
Or for a select list of repositories in the GitHub organization:
Verify that the GitHub app has been installed for the repo and the repo has been added to Code Climate as described above.
Visit the repo settings page and navigate to GitHub settings.
Enable the Summary Comments feature, choose the desired strategy, and click save.
The next time a pull request is opened for one of the installed repositories, a summary comment will be posted based on the selected strategy.
To add or remove this functionality for other repositories in the GitHub organization, the app installation can be managed from the GitHub organization settings page where the app has been installed under Settings -> Installed GitHub Apps.
Verify that the GitHub app has been installed for the repo and the repo has been added to Code Climate as described above.
Visit the repo settings page and navigate to GitHub settings.
Enable the Inline Issue Comments feature, choose the desired strategy, and click save.
The next time a pull request is opened for one of the installed repositories, a summary comment will be posted based on the selected strategy.
To add or remove this functionality for other repositories in the GitHub organization, the app installation can be managed from the GitHub organization settings page where the app has been installed under Settings -> Installed GitHub Apps.
Missing Summary and Inline Comments? If you send test coverage to Code Climate, PR comments require test coverage payloads for the PR's commits.
The Test Coverage tab on your repo's Settings page lists your payloads: make sure there are payloads for your PR's merge base and head.
If you have our GitHub PR integration enabled, when opening up a pull request, we'll run our 10-point maintainability assessment and post a status update in GitHub notifying you of new code quality issues that have been introduced.
Once you've setup test coverage reporting, you can use our test coverage statuses to ensure that all PRs meet your team's specific coverage standards.
In addition to our in-house maintainability checks, you can optionally enable open source plugins to run checks against your code.
Our browser extension ensures code quality and test coverage data is constantly visible throughout your development workflow, so your team can get, discuss, and act on all of this information without leaving GitHub. By clicking over to Files Changed in GitHub, you'll be able to view the static analysis and test coverage results right in-line.
Teams should use their judgment to validate and invalidate issues found by Code Climate. For these cases, Code Climate allows developers to mark any issue with one of 3 different statuses:
For more information on changing issue statuses, please see this doc.
Ineligible Pull Requests
Though we hope to expand our pull request integration in the future, note that we currently do NOT support:
- Pull requests against branches other than your default branch.
- Pull requests from repositories not hosted on GitHub.com. Our PR integration currently does not support pull requests from SCM's such as Bitbucket or GitHub Enterprise.
Note
To communicate with GitHub, the oauth token of the user installing the integration will be used. To change to a new token, the integration can be disabled and re-installed.
Code Climate Quality is being replaced with Qlty Cloud
— New users should sign up directly at qlty.sh.
— To migrate an existing account, please see our Migration Guide.
Code Climate provides a few different ways for users to view code quality and test coverage analysis results on a pull request.
Code Climate has an associated App that, once installed, supports two types of automated review comments: Summary Comments and Inline Issue Comments.
Summary comments are comments left on the pull request summarizing the issues introduced by the pull request, as well as the test coverage changes.
There are several configuration options for how this comment should behave:
To enable this functionality, please see Configuring Summary Comments.
Inline issue comments are pull request comments left as part of a review. Any new issues related to lines changed in the diff will be added as comments to the Pull Request. Once addressed, the comments will collapse using the native behavior.
There are two configuration options for how this comment should behave:
In addition, the maximum number of comments left per review is configurable (default: 5).
To enable this functionality, please see Configuring Inline Issue Comments.
To make use of automated pull request comments, first the CodeClimate app must be installed.
This integration is configured via a separate app to utilize several advantages of Apps compared to OAuth applications:
For more information about Apps, please see the documentation.
Note
Only Admins of a organization are authorized to install and configure apps. These steps must be completed by a Admin.
The app can be installed for all current and future repositories in the organization:
Or for a select list of repositories in the organization:
Verify that the app has been installed for the repo and the repo has been added to Code Climate as described above.
Visit the repo settings page and navigate to settings.
Enable the Summary Comments feature, choose the desired strategy, and click save.
The next time a pull request is opened for one of the installed repositories, a summary comment will be posted based on the selected strategy.
To add or remove this functionality for other repositories in the organization, the app installation can be managed from the organization settings page where the app has been installed under Settings -> Installed Apps.
Verify that the app has been installed for the repo and the repo has been added to Code Climate as described above.
Visit the repo settings page and navigate to settings.
Enable the Inline Issue Comments feature, choose the desired strategy, and click save.
The next time a pull request is opened for one of the installed repositories, a summary comment will be posted based on the selected strategy.
To add or remove this functionality for other repositories in the organization, the app installation can be managed from the organization settings page where the app has been installed under Settings -> Installed Apps.
Missing Summary and Inline Comments? If you send test coverage to Code Climate, PR comments require test coverage payloads for the PR's commits.
The Test Coverage tab on your repo's Settings page lists your payloads: make sure there are payloads for your PR's merge base and head.
If you have our PR integration enabled, when opening up a pull request, we'll run our 10-point maintainability assessment and post a status update in notifying you of new code quality issues that have been introduced.
Once you've setup test coverage reporting, you can use our test coverage statuses to ensure that all PRs meet your team's specific coverage standards.
In addition to our in-house maintainability checks, you can optionally enable open source plugins to run checks against your code.
Our browser extension ensures code quality and test coverage data is constantly visible throughout your development workflow, so your team can get, discuss, and act on all of this information without leaving . By clicking over to Files Changed in , you'll be able to view the static analysis and test coverage results right in-line.
Teams should use their judgment to validate and invalidate issues found by Code Climate. For these cases, Code Climate allows developers to mark any issue with one of 3 different statuses:
For more information on changing issue statuses, please see this doc.
Ineligible Pull Requests
Though we hope to expand our pull request integration in the future, note that we currently do NOT support:
- Pull requests against branches other than your default branch.
- Pull requests from repositories not hosted on .com. Our PR integration currently does not support pull requests from SCM's such as Bitbucket or Enterprise.
Note
To communicate with , the oauth token of the user installing the integration will be used. To change to a new token, the integration can be disabled and re-installed.
Updated about 2 months ago