gitlab-org / GitLab_Community_Edition
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
haml
rake
po
eml
builder
txt
snap
patch
ru
meta
mysql
eslintignore
gitattributes
ruby
pub
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.

main766493 LOC (84%) 12,195 files
test6534 LOC (<1%) 141 files
generated0 LOC (0%) 0 files
build and deployment927 LOC (<1%) 15 files
other131710 LOC (14%) 1,430 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
haml
eml
rake
builder
mysql
ru
ruby
meta
pub
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 12195 files match defined criteria (766,493 LOC, 100.0% vs. main code):
    • 8,456 *.rb files (522,739 LOC)
    • 1,748 *.js files (129,529 LOC)
    • 471 *.vue files (43,045 LOC)
    • 148 *.scss files (32,483 LOC)
    • 1,149 *.haml files (26,083 LOC)
    • 7 *.xml files (5,831 LOC)
    • 39 *.eml files (2,841 LOC)
    • 64 *.rake files (2,418 LOC)
    • 62 *.erb files (689 LOC)
    • 21 *.html files (275 LOC)
    • 7 *.graphql files (194 LOC)
    • 14 *.builder files (142 LOC)
    • 1 *.css files (123 LOC)
    • 1 *.mysql files (57 LOC)
    • 3 *.ru files (28 LOC)
    • 1 *.ruby files (13 LOC)
    • 2 *.meta files (2 LOC)
    • 1 *.pub files (1 LOC)
  • " *.rb" is biggest, containing 68.2% of LOC.
  • " *.pub" is smallest, containing 0% of LOC.


*.rb522739 LOC (68%) 8,456 files
*.js129529 LOC (16%) 1,748 files
*.vue43045 LOC (5%) 471 files
*.scss32483 LOC (4%) 148 files
*.haml26083 LOC (3%) 1,149 files
*.xml5831 LOC (<1%) 7 files
*.eml2841 LOC (<1%) 39 files
*.rake2418 LOC (<1%) 64 files
*.erb689 LOC (<1%) 62 files
*.html275 LOC (<1%) 21 files
*.graphql194 LOC (<1%) 7 files
*.builder142 LOC (<1%) 14 files
*.css123 LOC (<1%) 1 file
*.mysql57 LOC (<1%) 1 file
*.ru28 LOC (<1%) 3 files
*.ruby13 LOC (<1%) 1 file
*.meta2 LOC (<1%) 2 files
*.pub1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
rake
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Ss]pecs/.*".
  • 141 files match defined criteria (6,534 LOC, 0.9% vs. main code):
    • 115 *.rb files (4,816 LOC)
    • 17 *.js files (1,461 LOC)
    • 5 *.snap files (183 LOC)
    • 1 *.vue files (39 LOC)
    • 2 *.rake files (19 LOC)
    • 1 *.scss files (16 LOC)
  • " *.rb" is biggest, containing 73.71% of LOC.
  • " *.scss" is smallest, containing 0.24% of LOC.


*.rb4816 LOC (73%) 115 files
*.js1461 LOC (22%) 17 files
*.snap183 LOC (2%) 5 files
*.vue39 LOC (<1%) 1 file
*.rake19 LOC (<1%) 2 files
*.scss16 LOC (<1%) 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 ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/[.]gitattributes".
  • 15 files match defined criteria (927 LOC, 0.1% vs. main code):
    • 9 *.sh files (526 LOC)
    • 4 *.js files (357 LOC)
    • 2 *.rb files (44 LOC)
  • " *.sh" is biggest, containing 56.74% of LOC.
  • " *.rb" is smallest, containing 4.75% of LOC.


*.sh526 LOC (56%) 9 files
*.js357 LOC (38%) 4 files
*.rb44 LOC (4%) 2 files
Other Code
po
patch
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]po".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*/asciidoc/.*".
    • files with paths like ".*/[.]eslintignore".
  • 1430 files match defined criteria (131,710 LOC, 17.2% vs. main code):
    • 1,128 *.md files (115,101 LOC)
    • 167 *.json files (13,938 LOC)
    • 9 *.po files (1,772 LOC)
    • 113 *.svg files (404 LOC)
    • 3 *.patch files (200 LOC)
    • 6 *.txt files (200 LOC)
    • 3 *.rb files (92 LOC)
    • 1 *.clj files (3 LOC)
  • " *.md" is biggest, containing 87.39% of LOC.
  • " *.clj" is smallest, containing 0% of LOC.


*.md115101 LOC (87%) 1,128 files
*.json13938 LOC (10%) 167 files
*.po1772 LOC (1%) 9 files
*.svg404 LOC (<1%) 113 files
*.patch200 LOC (<1%) 3 files
*.txt200 LOC (<1%) 6 files
*.rb92 LOC (<1%) 3 files
*.clj3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-16 13:52