elastic / docs-builder
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
cshtml
fs
csproj
props
txt
fsproj
editorconfig
dotsettings
mjs
prettierignore
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.

main16379 LOC (44%) 239 files
test5375 LOC (14%) 66 files
generated6858 LOC (18%) 1 file
build and deployment264 LOC (<1%) 11 files
other7993 LOC (21%) 20 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cshtml
fs
props
fsproj
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 239 files match defined criteria (16,379 LOC, 100.0% vs. main code):
    • 167 *.cs files (12,164 LOC)
    • 35 *.cshtml files (1,666 LOC)
    • 16 *.css files (996 LOC)
    • 9 *.ts files (912 LOC)
    • 4 *.fs files (314 LOC)
    • 4 *.props files (119 LOC)
    • 1 *.js files (111 LOC)
    • 1 *.ps1 files (50 LOC)
    • 1 *.fsproj files (29 LOC)
    • 1 *.mjs files (18 LOC)
  • " *.cs" is biggest, containing 74.27% of LOC.
  • " *.mjs" is smallest, containing 0.11% of LOC.


*.cs12164 LOC (74%) 167 files
*.cshtml1666 LOC (10%) 35 files
*.css996 LOC (6%) 16 files
*.ts912 LOC (5%) 9 files
*.fs314 LOC (1%) 4 files
*.props119 LOC (<1%) 4 files
*.js111 LOC (<1%) 1 file
*.ps150 LOC (<1%) 1 file
*.fsproj29 LOC (<1%) 1 file
*.mjs18 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
fs
csproj
fsproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests/.*".
    • files with paths like ".*[.][Tt]ests[.].*".
  • 66 files match defined criteria (5,375 LOC, 32.8% vs. main code):
    • 38 *.cs files (3,252 LOC)
    • 25 *.fs files (2,014 LOC)
    • 2 *.csproj files (56 LOC)
    • 1 *.fsproj files (53 LOC)
  • " *.cs" is biggest, containing 60.5% of LOC.
  • " *.fsproj" is smallest, containing 0.99% of LOC.


*.cs3252 LOC (60%) 38 files
*.fs2014 LOC (37%) 25 files
*.csproj56 LOC (1%) 2 files
*.fsproj53 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 ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (6,858 LOC, 41.9% vs. main code). All matches are in *.json files.


*.json6858 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
  • 11 files match defined criteria (264 LOC, 1.6% vs. main code):
    • 8 *.csproj files (208 LOC)
    • 2 *.sh files (54 LOC)
    • 1 *.bat files (2 LOC)
  • " *.csproj" is biggest, containing 78.79% of LOC.
  • " *.bat" is smallest, containing 0.76% of LOC.


*.csproj208 LOC (78%) 8 files
*.sh54 LOC (20%) 2 files
*.bat2 LOC (<1%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]prettierignore".
  • 20 files match defined criteria (7,993 LOC, 48.8% vs. main code):
    • 6 *.json files (6,970 LOC)
    • 2 *.txt files (590 LOC)
    • 8 *.svg files (241 LOC)
    • 4 *.md files (192 LOC)
  • " *.json" is biggest, containing 87.2% of LOC.
  • " *.md" is smallest, containing 2.4% of LOC.


*.json6970 LOC (87%) 6 files
*.txt590 LOC (7%) 2 files
*.svg241 LOC (3%) 8 files
*.md192 LOC (2%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 20:09