There are too many issues to display.
Occasionally, you might see an error reading "We can successfully analyze both commits used for the comparison, but aren't able to display that number of issues on the comparison results page."
Typically, our PR integration only analyzes the diff of a PR. However, when a PR changes your Quality configuration (such as enabling a new check or plugin) we'll re-analyze the entire repo using that new configuration. In this scenario, the new configuration can result in thousands of "new" issues. The issues aren't necessarily caused by new or changed code, but rather from the new configuration.
In this scenario, we are successfully analyzing both commits used for the comparison, but aren't able to display that number of issues on the comparison results page.
To move forward, there are a few solutions:
- Merge the PR: once the PR is merged, you'll be able to see all of the issues in the UI via your Issues tab. If needed, you can use the Approve button in the UI to manually approve the PR.
- You can also run the analysis of that feature branch locally, using our CLI, and reduce the issues that way.
- You can also add the repository to Code Climate a second time, and change the default branch to the other (feature) branch. You'll then be able see and reduce the overall number of issues in this new branch.
In summary: this error typically doesn't relate to the code changes made by your PR, and is caused by a new configuration being used for the first time.
Updated over 1 year ago