1. Overall Grade
Codacy will give an overall grade to help you better understand the overall quality of your repository.
Codacy grades range from A to F, with A being the best grade.
Note that this grade is on a branch level. This gives you a better understanding of the code quality of two different branches.
2. Category Grades
Every issue found in Codacy enters in one specific category:
- Code Complexity
- Code Style
- Error Prone
- Unused Code
Every issue found will impact the grade of its category. Category grades range from 0% - 100%, with 100% being the best grade.
3. File Grades
The file grades range from A to F, with A being the best grade.
Every file will be graded according to the weighted average of the following categories:
- coverage (optional)
4. Commit Grades
The commit grades also belong to the range from A to F.
Every commit will be graded according to the weighted average of the following categories:
- new issues from calculated delta
- fixed issues from calculated delta
- other metrics from delta (coverage, complexity, number of clones)
5. Grade Calculation
The grades are calculated with the number of issues for each thousand lines of code (KLOC). Steve McConnell, on his book 'Code Complete', wrote about average bugs per LOC:
(a) Industry Average: "about 15 - 50 errors per 1000 lines of delivered code." He further says this is usually representative of code that has some level of structured programming behind it, but probably includes a mix of coding techniques.