How is Code Health for a team calculated?

Code Health is a metric that aggregates over 25 factors from the source code, providing insight into the maintainability, stability, and complexity of the codebase and helping teams identify areas that may require attention for future development.

  • Code Health is a file-level metric, so for each file a team has modified, CodeScene will evaluate its current Code Health score.

  • When viewing Code Health by team, CodeScene aggregates the scores of all files that the team contributed to during that time window.

  • The overall team score is typically an average of the Code Health scores for those touched files, weighted by the degree of involvement.

To summarize, the Code Health for a team in a given period reflects the state of the code the team has actively worked on, not the entire codebase.