apache / answer
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
editorconfig
mod
npmrc
tpl
eslintignore
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.

main158525 LOC (97%) 860 files
test1581 LOC (<1%) 23 files
generated949 LOC (<1%) 4 files
build and deployment52 LOC (<1%) 6 files
other795 LOC (<1%) 10 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 860 files match defined criteria (158,525 LOC, 100.0% vs. main code):
    • 64 *.yaml files (83,584 LOC)
    • 397 *.go files (40,260 LOC)
    • 251 *.tsx files (26,065 LOC)
    • 93 *.ts files (6,310 LOC)
    • 28 *.scss files (1,089 LOC)
    • 13 *.html files (704 LOC)
    • 7 *.js files (350 LOC)
    • 1 *.tpl files (70 LOC)
    • 1 *.toml files (34 LOC)
    • 3 *.xml files (30 LOC)
    • 2 *.css files (29 LOC)
  • " *.yaml" is biggest, containing 52.73% of LOC.
  • " *.css" is smallest, containing 0.02% of LOC.


*.yaml83584 LOC (52%) 64 files
*.go40260 LOC (25%) 397 files
*.tsx26065 LOC (16%) 251 files
*.ts6310 LOC (3%) 93 files
*.scss1089 LOC (<1%) 28 files
*.html704 LOC (<1%) 13 files
*.js350 LOC (<1%) 7 files
*.tpl70 LOC (<1%) 1 file
*.toml34 LOC (<1%) 1 file
*.xml30 LOC (<1%) 3 files
*.css29 LOC (<1%) 2 files
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 ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
  • 23 files match defined criteria (1,581 LOC, 1.0% vs. main code):
    • 22 *.go files (1,575 LOC)
    • 1 *.tsx files (6 LOC)
  • " *.go" is biggest, containing 99.62% of LOC.
  • " *.tsx" is smallest, containing 0.38% of LOC.


*.go1575 LOC (99%) 22 files
*.tsx6 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
    • files with any line of content like "//[ ]*Generated by .*".
  • 4 files match defined criteria (949 LOC, 0.6% vs. main code):
    • 3 *.html files (747 LOC)
    • 1 *.go files (202 LOC)
  • " *.html" is biggest, containing 78.71% of LOC.
  • " *.go" is smallest, containing 21.29% of LOC.


*.html747 LOC (78%) 3 files
*.go202 LOC (21%) 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 ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yaml".
  • 6 files match defined criteria (52 LOC, 0.0% vs. main code):
    • 4 *.sh files (38 LOC)
    • 2 *.yaml files (14 LOC)
  • " *.sh" is biggest, containing 73.08% of LOC.
  • " *.yaml" is smallest, containing 26.92% of LOC.


*.sh38 LOC (73%) 4 files
*.yaml14 LOC (26%) 2 files
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/go[.]mod".
  • 10 files match defined criteria (795 LOC, 0.5% vs. main code):
    • 4 *.md files (423 LOC)
    • 1 *.mod files (173 LOC)
    • 3 *.json files (160 LOC)
    • 1 *.svg files (20 LOC)
    • 1 *.txt files (19 LOC)
  • " *.md" is biggest, containing 53.21% of LOC.
  • " *.txt" is smallest, containing 2.39% of LOC.


*.md423 LOC (53%) 4 files
*.mod173 LOC (21%) 1 file
*.json160 LOC (20%) 3 files
*.svg20 LOC (2%) 1 file
*.txt19 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:42