gitlab-org / gitlab-vscode-extension
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
mjs
txt
gitattributes
editorconfig
npmrc
ini
vscodeignore
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.

main25648 LOC (26%) 465 files
test27933 LOC (28%) 334 files
generated18838 LOC (19%) 3 files
build and deployment103 LOC (<1%) 6 files
other24850 LOC (25%) 67 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 465 files match defined criteria (25,648 LOC, 100.0% vs. main code):
    • 395 *.ts files (21,909 LOC)
    • 18 *.vue files (1,818 LOC)
    • 24 *.js files (591 LOC)
    • 16 *.mjs files (579 LOC)
    • 1 *.scss files (533 LOC)
    • 8 *.html files (205 LOC)
    • 2 *.toml files (11 LOC)
    • 1 *.cjs files (2 LOC)
  • " *.ts" is biggest, containing 85.42% of LOC.
  • " *.cjs" is smallest, containing 0.01% of LOC.


*.ts21909 LOC (85%) 395 files
*.vue1818 LOC (7%) 18 files
*.js591 LOC (2%) 24 files
*.mjs579 LOC (2%) 16 files
*.scss533 LOC (2%) 1 file
*.html205 LOC (<1%) 8 files
*.toml11 LOC (<1%) 2 files
*.cjs2 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/vitest[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*/[Ss]pecs/.*".
  • 334 files match defined criteria (27,933 LOC, 108.9% vs. main code):
    • 277 *.ts files (24,358 LOC)
    • 56 *.js files (3,534 LOC)
    • 1 *.mjs files (41 LOC)
  • " *.ts" is biggest, containing 87.2% of LOC.
  • " *.mjs" is smallest, containing 0.15% of LOC.


*.ts24358 LOC (87%) 277 files
*.js3534 LOC (12%) 56 files
*.mjs41 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".
  • 3 files match defined criteria (18,838 LOC, 73.4% vs. main code). All matches are in *.json files.


*.json18838 LOC (100%) 3 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[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 6 files match defined criteria (103 LOC, 0.4% vs. main code). All matches are in *.sh files.


*.sh103 LOC (100%) 6 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]vscodeignore".
  • 67 files match defined criteria (24,850 LOC, 96.9% vs. main code):
    • 33 *.json files (22,621 LOC)
    • 14 *.md files (2,152 LOC)
    • 20 *.svg files (77 LOC)
  • " *.json" is biggest, containing 91.03% of LOC.
  • " *.svg" is smallest, containing 0.31% of LOC.


*.json22621 LOC (91%) 33 files
*.md2152 LOC (8%) 14 files
*.svg77 LOC (<1%) 20 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-16 13:42