Class CodeMetrics

java.lang.Object
io.github.jbastgen.stemma.app.git.CodeMetrics

public final class CodeMetrics extends Object
The size of the code of a repository as it is now: lines, files, and the languages or file types used. Pure: it is given the number of lines of each file, which countLines(byte[]) counts.
  • Field Details

    • files

      public final int files
    • lines

      public final long lines
    • languages

      public final List<CodeMetrics.Lang> languages
      Languages by lines, the biggest first.
    • truncated

      public final boolean truncated
      Whether the file list was cut off.
  • Method Details

    • averagePerFile

      public double averagePerFile()
      Average number of lines of a file; 0 without files.