uber / h3
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
txt
mdx
in
clang-format
kml
clang-tidy
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main23713 LOC (17%) 185 files
test48 LOC (<1%) 2 files
generated0 LOC (0%) 0 files
build and deployment34 LOC (<1%) 3 files
other113816 LOC (82%) 195 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
kml
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 185 files match defined criteria (23,713 LOC, 100.0% vs. main code):
    • 131 *.c files (19,020 LOC)
    • 4 *.in files (1,538 LOC)
    • 27 *.h files (906 LOC)
    • 9 *.js files (665 LOC)
    • 5 *.jsx files (615 LOC)
    • 2 *.ts files (313 LOC)
    • 2 *.cmake files (288 LOC)
    • 1 *.kml files (273 LOC)
    • 3 *.css files (78 LOC)
    • 1 *.ps1 files (17 LOC)
  • " *.c" is biggest, containing 80.21% of LOC.
  • " *.ps1" is smallest, containing 0.07% of LOC.


*.c19020 LOC (80%) 131 files
*.in1538 LOC (6%) 4 files
*.h906 LOC (3%) 27 files
*.js665 LOC (2%) 9 files
*.jsx615 LOC (2%) 5 files
*.ts313 LOC (1%) 2 files
*.cmake288 LOC (1%) 2 files
*.kml273 LOC (1%) 1 file
*.css78 LOC (<1%) 3 files
*.ps117 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/testing[.].*".
  • 2 files match defined criteria (48 LOC, 0.2% vs. main code):
    • 1 *.h files (33 LOC)
    • 1 *.c files (15 LOC)
  • " *.h" is biggest, containing 68.75% of LOC.
  • " *.c" is smallest, containing 31.25% of LOC.


*.h33 LOC (68%) 1 file
*.c15 LOC (31%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 3 files match defined criteria (34 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh34 LOC (100%) 3 files
Other Code
txt
mdx
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]mdx".
  • 195 files match defined criteria (113,816 LOC, 480.0% vs. main code):
    • 134 *.txt files (108,636 LOC)
    • 8 *.mdx files (2,683 LOC)
    • 42 *.md files (2,019 LOC)
    • 3 *.json files (249 LOC)
    • 5 *.c files (147 LOC)
    • 3 *.svg files (82 LOC)
  • " *.txt" is biggest, containing 95.45% of LOC.
  • " *.svg" is smallest, containing 0.07% of LOC.


*.txt108636 LOC (95%) 134 files
*.mdx2683 LOC (2%) 8 files
*.md2019 LOC (1%) 42 files
*.json249 LOC (<1%) 3 files
*.c147 LOC (<1%) 5 files
*.svg82 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 07:36