gitlab-org / GitLab
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
snap
rake
po
txt
eml
builder
mjs
patch
pub
meta
nuspec
asc
mod
diff
ru
jsonl
gitattributes
editorconfig
tpl
rdoc
p8
hcl
ini
ruby
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.

main4385629 LOC (82%) 61,664 files
test91547 LOC (1%) 1,167 files
generated41 LOC (<1%) 1 file
build and deployment4346 LOC (<1%) 62 files
other843710 LOC (15%) 4,134 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
haml
rake
eml
mjs
builder
asc
ru
p8
ruby
tpl
pub
meta
jsonl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 61664 files match defined criteria (4,385,629 LOC, 100.0% vs. main code):
    • 43,717 *.rb files (2,860,872 LOC)
    • 9,094 *.js files (894,724 LOC)
    • 3,866 *.vue files (491,701 LOC)
    • 2,222 *.haml files (34,874 LOC)
    • 1,687 *.graphql files (32,423 LOC)
    • 246 *.scss files (27,210 LOC)
    • 130 *.go files (11,414 LOC)
    • 19 *.xml files (6,749 LOC)
    • 144 *.rake files (6,580 LOC)
    • 93 *.yaml files (5,409 LOC)
    • 260 *.erb files (4,458 LOC)
    • 71 *.eml files (4,269 LOC)
    • 18 *.mjs files (1,959 LOC)
    • 5 *.sql files (897 LOC)
    • 16 *.html files (640 LOC)
    • 18 *.gemspec files (453 LOC)
    • 3 *.css files (268 LOC)
    • 22 *.builder files (209 LOC)
    • 2 *.py files (175 LOC)
    • 3 *.asc files (75 LOC)
    • 1 *.java files (64 LOC)
    • 1 *.dockerignore files (53 LOC)
    • 2 *.toml files (43 LOC)
    • 2 *.ps1 files (20 LOC)
    • 2 *.ru files (18 LOC)
    • 1 *.p8 files (14 LOC)
    • 1 *.ruby files (13 LOC)
    • 1 *.tpl files (12 LOC)
    • 1 *.cjs files (10 LOC)
    • 10 *.pub files (10 LOC)
    • 1 *.tfstate files (8 LOC)
    • 3 *.meta files (3 LOC)
    • 2 *.jsonl files (2 LOC)
  • " *.rb" is biggest, containing 65.23% of LOC.
  • " *.jsonl" is smallest, containing 0% of LOC.


*.rb2860872 LOC (65%) 43,717 files
*.js894724 LOC (20%) 9,094 files
*.vue491701 LOC (11%) 3,866 files
*.haml34874 LOC (<1%) 2,222 files
*.graphql32423 LOC (<1%) 1,687 files
*.scss27210 LOC (<1%) 246 files
*.go11414 LOC (<1%) 130 files
*.xml6749 LOC (<1%) 19 files
*.rake6580 LOC (<1%) 144 files
*.yaml5409 LOC (<1%) 93 files
*.erb4458 LOC (<1%) 260 files
*.eml4269 LOC (<1%) 71 files
*.mjs1959 LOC (<1%) 18 files
*.sql897 LOC (<1%) 5 files
*.html640 LOC (<1%) 16 files
*.gemspec453 LOC (<1%) 18 files
*.css268 LOC (<1%) 3 files
*.builder209 LOC (<1%) 22 files
*.py175 LOC (<1%) 2 files
*.asc75 LOC (<1%) 3 files
*.java64 LOC (<1%) 1 file
*.dockerignore53 LOC (<1%) 1 file
*.toml43 LOC (<1%) 2 files
*.ps120 LOC (<1%) 2 files
*.ru18 LOC (<1%) 2 files
*.p814 LOC (<1%) 1 file
*.ruby13 LOC (<1%) 1 file
*.tpl12 LOC (<1%) 1 file
*.cjs10 LOC (<1%) 1 file
*.pub10 LOC (<1%) 10 files
*.tfstate8 LOC (<1%) 1 file
*.meta3 LOC (<1%) 3 files
*.jsonl2 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
rake
haml
hcl
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 ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/tests_.*".
    • 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 ".*/[Mm]ocks/.*".
    • files with paths like ".*/__mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 1167 files match defined criteria (91,547 LOC, 2.1% vs. main code):
    • 620 *.rb files (38,482 LOC)
    • 207 *.snap files (20,660 LOC)
    • 119 *.go files (15,066 LOC)
    • 180 *.js files (14,110 LOC)
    • 18 *.vue files (2,720 LOC)
    • 4 *.sh files (219 LOC)
    • 11 *.graphql files (188 LOC)
    • 2 *.rake files (47 LOC)
    • 3 *.haml files (42 LOC)
    • 1 *.html files (6 LOC)
    • 1 *.scss files (4 LOC)
    • 1 *.hcl files (3 LOC)
  • " *.rb" is biggest, containing 42.04% of LOC.
  • " *.hcl" is smallest, containing 0% of LOC.


*.rb38482 LOC (42%) 620 files
*.snap20660 LOC (22%) 207 files
*.go15066 LOC (16%) 119 files
*.js14110 LOC (15%) 180 files
*.vue2720 LOC (2%) 18 files
*.sh219 LOC (<1%) 4 files
*.graphql188 LOC (<1%) 11 files
*.rake47 LOC (<1%) 2 files
*.haml42 LOC (<1%) 3 files
*.html6 LOC (<1%) 1 file
*.scss4 LOC (<1%) 1 file
*.hcl3 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 any line of content like "\<\!\-\-[ ]*Generated by .*".
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 1 file matches defined criteria (41 LOC, 0.0% vs. main code). All matches are in *.xml files.


*.xml41 LOC (100%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
nuspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 62 files match defined criteria (4,346 LOC, 0.1% vs. main code):
    • 45 *.sh files (2,809 LOC)
    • 7 *.js files (1,134 LOC)
    • 7 *.rb files (351 LOC)
    • 3 *.nuspec files (52 LOC)
  • " *.sh" is biggest, containing 64.63% of LOC.
  • " *.nuspec" is smallest, containing 1.2% of LOC.


*.sh2809 LOC (64%) 45 files
*.js1134 LOC (26%) 7 files
*.rb351 LOC (8%) 7 files
*.nuspec52 LOC (1%) 3 files
Other Code
txt
po
patch
mod
diff
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 ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]po".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]diff".
    • files with paths like ".*/asciidoc/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
  • 4134 files match defined criteria (843,710 LOC, 19.2% vs. main code):
    • 2,913 *.md files (532,053 LOC)
    • 1,104 *.json files (308,125 LOC)
    • 48 *.txt files (1,022 LOC)
    • 12 *.po files (1,021 LOC)
    • 16 *.patch files (538 LOC)
    • 29 *.svg files (437 LOC)
    • 7 *.rb files (315 LOC)
    • 2 *.mod files (171 LOC)
    • 2 *.diff files (25 LOC)
    • 1 *.clj files (3 LOC)
  • " *.md" is biggest, containing 63.06% of LOC.
  • " *.clj" is smallest, containing 0% of LOC.


*.md532053 LOC (63%) 2,913 files
*.json308125 LOC (36%) 1,104 files
*.txt1022 LOC (<1%) 48 files
*.po1021 LOC (<1%) 12 files
*.patch538 LOC (<1%) 16 files
*.svg437 LOC (<1%) 29 files
*.rb315 LOC (<1%) 7 files
*.mod171 LOC (<1%) 2 files
*.diff25 LOC (<1%) 2 files
*.clj3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-16 14:41