gitlab-org / GitLab_Development_Kit
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
mk
rake
txt
editorconfig
ini
gitmodules
pub
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.

main29675 LOC (68%) 436 files
test316 LOC (<1%) 3 files
generated6 LOC (<1%) 1 file
build and deployment2759 LOC (6%) 53 files
other10622 LOC (24%) 125 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
rake
pub
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 436 files match defined criteria (29,675 LOC, 100.0% vs. main code):
    • 359 *.rb files (25,726 LOC)
    • 52 *.erb files (2,873 LOC)
    • 13 *.rake files (638 LOC)
    • 5 *.js files (162 LOC)
    • 2 *.xml files (112 LOC)
    • 1 *.bash files (60 LOC)
    • 1 *.yaml files (51 LOC)
    • 1 *.toml files (30 LOC)
    • 1 *.gemspec files (22 LOC)
    • 1 *.pub files (1 LOC)
  • " *.rb" is biggest, containing 86.69% of LOC.
  • " *.pub" is smallest, containing 0% of LOC.


*.rb25726 LOC (86%) 359 files
*.erb2873 LOC (9%) 52 files
*.rake638 LOC (2%) 13 files
*.js162 LOC (<1%) 5 files
*.xml112 LOC (<1%) 2 files
*.bash60 LOC (<1%) 1 file
*.yaml51 LOC (<1%) 1 file
*.toml30 LOC (<1%) 1 file
*.gemspec22 LOC (<1%) 1 file
*.pub1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 3 files match defined criteria (316 LOC, 1.1% vs. main code):
    • 2 *.rb files (238 LOC)
    • 1 *.mk files (78 LOC)
  • " *.rb" is biggest, containing 75.32% of LOC.
  • " *.mk" is smallest, containing 24.68% of LOC.


*.rb238 LOC (75%) 2 files
*.mk78 LOC (24%) 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 LOC, 0.0% vs. main code). All matches are in *.json files.


*.json6 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]mk".
    • files with paths like ".*/package[-]lock[.]json".
  • 53 files match defined criteria (2,759 LOC, 9.3% vs. main code):
    • 39 *.mk files (1,606 LOC)
    • 13 *.sh files (1,121 LOC)
    • 1 *.rb files (32 LOC)
  • " *.mk" is biggest, containing 58.21% of LOC.
  • " *.rb" is smallest, containing 1.16% of LOC.


*.mk1606 LOC (58%) 39 files
*.sh1121 LOC (40%) 13 files
*.rb32 LOC (1%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
  • 125 files match defined criteria (10,622 LOC, 35.8% vs. main code):
    • 117 *.md files (10,406 LOC)
    • 7 *.txt files (210 LOC)
    • 1 *.json files (6 LOC)
  • " *.md" is biggest, containing 97.97% of LOC.
  • " *.json" is smallest, containing 0.06% of LOC.


*.md10406 LOC (97%) 117 files
*.txt210 LOC (1%) 7 files
*.json6 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-16 13:49