Skip to content
This documentation applies to Codacy Self-hosted v5.0.0

For the latest updates and improvements, see the latest Cloud documentation instead.

Commits page#

The Commits page displays an overview of the commits in your repository, such as the analysis status and the number of new and fixed issues for each commit. This allows you to monitor the evolution of the code quality in your repository per commit.

By default, the page lists the commits on the main branch of your repository but if you have more than one branch enabled you can use the drop-down list at the top of the page to display issues on other branches.

Commits page

Commit detail#

Click a specific commit to see detailed information about the quality changes in that commit.

The commit detail displays:

  • The status and logs of the analysis of the commit
  • An overview of the code quality changes introduced by the commit
  • The list of issues and duplication blocks that the commit created or fixed
  • The list of files and the lines of code changed in the commit

    Note

    The changes in the number of issues and code quality metrics introduced by the commit are displayed either as a positive or negative variation, or no variation (represented by =).

    Depending on the languages being analyzed or if you haven't set up coverage for your repository, some metrics may be missing (represented by -).

New issues in the commit detail

Click the title of an issue to see the following information:

  • The contributor and date of the commit that introduced the issue
  • The tool that reported the issue and the estimated time to fix it
  • What's the issue and how to solve it
  • The programming language and category of the issue

Use the options in the cogwheel menu of each issue to ignore and manage issues.

Expanded issue view

The commit differences view allows you to review the lines of code changed in the commit.

Commit differences view

Possible issues#

In some situations, Codacy may report either new or fixed possible issues on a commit or pull request, which means that the code analysis detected these issues in lines of code that weren't changed by that commit or pull request. This gives you awareness to how your changes may be affecting other parts of your code.

Possible fixed issue in a commit

The following are example situations that can lead to possible issues:

  • The issue was either created or fixed in the current commit, but the static code analysis tools reported the issue on a line that didn't change in the commit. For example, if you remove the line containing the declaration of a variable you may get an "undeclared variable" issue in other lines that use that variable.

  • If a file had more than 50 issues reported by the same tool and you push a new commit that fixes some of these issues, Codacy will report more issues until the limit of 50 issues. These issues will be possible issues if they're outside the lines of code changed in the current commit.

Share your feedback 📢

Did this page help you?

Thanks for the feedback! Is there anything else you'd like to tell us about this page?

We're sorry to hear that. Please let us know what we can improve:

Alternatively, you can create a more detailed issue on our GitHub repository.

Thanks for helping improve the Codacy documentation.

If you have a question or need help please contact support@codacy.com.

Last modified November 9, 2021