gitlab-org / GitLab_Puma
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
ru
rl
gitattributes
txt
lua
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.

main8279 LOC (60%) 54 files
test3696 LOC (26%) 61 files
generated0 LOC (0%) 0 files
build and deployment30 LOC (<1%) 6 files
other1758 LOC (12%) 12 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
rl
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 54 files match defined criteria (8,279 LOC, 100.0% vs. main code):
    • 37 *.rb files (5,129 LOC)
    • 4 *.c files (1,841 LOC)
    • 5 *.java files (902 LOC)
    • 3 *.rl files (272 LOC)
    • 1 *.ps1 files (57 LOC)
    • 2 *.h files (56 LOC)
    • 1 *.gemspec files (19 LOC)
    • 1 *.lua files (3 LOC)
  • " *.rb" is biggest, containing 61.95% of LOC.
  • " *.lua" is smallest, containing 0.04% of LOC.


*.rb5129 LOC (61%) 37 files
*.c1841 LOC (22%) 4 files
*.java902 LOC (10%) 5 files
*.rl272 LOC (3%) 3 files
*.ps157 LOC (<1%) 1 file
*.h56 LOC (<1%) 2 files
*.gemspec19 LOC (<1%) 1 file
*.lua3 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
ru
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 61 files match defined criteria (3,696 LOC, 44.6% vs. main code):
    • 50 *.rb files (3,655 LOC)
    • 11 *.ru files (41 LOC)
  • " *.rb" is biggest, containing 98.89% of LOC.
  • " *.ru" is smallest, containing 1.11% of LOC.


*.rb3655 LOC (98%) 50 files
*.ru41 LOC (1%) 11 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 6 files match defined criteria (30 LOC, 0.4% vs. main code). All matches are in *.sh files.


*.sh30 LOC (100%) 6 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 12 files match defined criteria (1,758 LOC, 21.2% vs. main code):
    • 9 *.md files (1,662 LOC)
    • 3 *.rb files (96 LOC)
  • " *.md" is biggest, containing 94.54% of LOC.
  • " *.rb" is smallest, containing 5.46% of LOC.


*.md1662 LOC (94%) 9 files
*.rb96 LOC (5%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-16 13:37