gitlab-org / gitlab-web-ide
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
gitattributes
patch
editorconfig
jsonc
vscodeignore
mjs
gitmodules
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.

main11255 LOC (37%) 317 files
test10666 LOC (35%) 172 files
generated0 LOC (0%) 0 files
build and deployment184 LOC (<1%) 9 files
other8032 LOC (26%) 85 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
jsonc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 317 files match defined criteria (11,255 LOC, 100.0% vs. main code):
    • 295 *.ts files (9,714 LOC)
    • 4 *.vue files (616 LOC)
    • 1 *.yaml files (503 LOC)
    • 12 *.js files (231 LOC)
    • 3 *.html files (74 LOC)
    • 1 *.mjs files (60 LOC)
    • 1 *.jsonc files (57 LOC)
  • " *.ts" is biggest, containing 86.31% of LOC.
  • " *.jsonc" is smallest, containing 0.51% of LOC.


*.ts9714 LOC (86%) 295 files
*.vue616 LOC (5%) 4 files
*.yaml503 LOC (4%) 1 file
*.js231 LOC (2%) 12 files
*.html74 LOC (<1%) 3 files
*.mjs60 LOC (<1%) 1 file
*.jsonc57 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
  • 172 files match defined criteria (10,666 LOC, 94.8% vs. main code):
    • 165 *.ts files (10,391 LOC)
    • 7 *.js files (275 LOC)
  • " *.ts" is biggest, containing 97.42% of LOC.
  • " *.js" is smallest, containing 2.58% of LOC.


*.ts10391 LOC (97%) 165 files
*.js275 LOC (2%) 7 files
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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitattributes".
  • 9 files match defined criteria (184 LOC, 1.6% vs. main code). All matches are in *.sh files.


*.sh184 LOC (100%) 9 files
Other Code
patch
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]vscodeignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 85 files match defined criteria (8,032 LOC, 71.4% vs. main code):
    • 64 *.json files (5,106 LOC)
    • 1 *.patch files (2,689 LOC)
    • 16 *.md files (125 LOC)
    • 2 *.svg files (90 LOC)
    • 2 *.txt files (22 LOC)
  • " *.json" is biggest, containing 63.57% of LOC.
  • " *.txt" is smallest, containing 0.27% of LOC.


*.json5106 LOC (63%) 64 files
*.patch2689 LOC (33%) 1 file
*.md125 LOC (1%) 16 files
*.svg90 LOC (1%) 2 files
*.txt22 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-16 13:32