Numerical metrics of code quality

Hi Swift Forum!

Are there any numerical metrics of code quality that could give information about the project and how to improve it?

The results of google search on this topic today speak only about quality metrics: readability, architecture, linter, etc.

Is it possible, at the expense of code, for example:

  • Reduce the speed of project build
  • Reduce the size of the application
  • Increase the speed of application launch

Is it possible to build mathematical functions that would express the above metrics by taking code as input?

P.s
So far I have the following idea about this. We could study how optimization works at compile time to write code so that it would be "easier/better" for the compiler to build the project.

With respect
Pogos

1 Like