gitlab-org / GitLab_Markup
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
txt
pod
org
rmd
textile
litcoffee
mediawiki
rdoc
creole
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.

main296 LOC (7%) 9 files
test1874 LOC (50%) 18 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other1557 LOC (41%) 18 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 9 files match defined criteria (296 LOC, 100.0% vs. main code):
    • 8 *.rb files (267 LOC)
    • 1 *.gemspec files (29 LOC)
  • " *.rb" is biggest, containing 90.2% of LOC.
  • " *.gemspec" is smallest, containing 9.8% of LOC.


*.rb267 LOC (90%) 8 files
*.gemspec29 LOC (9%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 18 files match defined criteria (1,874 LOC, 633.1% vs. main code):
    • 16 *.html files (1,778 LOC)
    • 1 *.rb files (95 LOC)
    • 1 *.sh files (1 LOC)
  • " *.html" is biggest, containing 94.88% of LOC.
  • " *.sh" is smallest, containing 0.05% of LOC.


*.html1778 LOC (94%) 16 files
*.rb95 LOC (5%) 1 file
*.sh1 LOC (<1%) 1 file
Other Code
org
pod
litcoffee
creole
mediawiki
txt
rdoc
rmd
textile
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]markdown".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 18 files match defined criteria (1,557 LOC, 526.0% vs. main code):
    • 3 *.rst files (1,071 LOC)
    • 3 *.md files (205 LOC)
    • 1 *.org files (102 LOC)
    • 1 *.pod files (57 LOC)
    • 1 *.litcoffee files (35 LOC)
    • 1 *.creole files (26 LOC)
    • 1 *.mediawiki files (19 LOC)
    • 2 *.txt files (17 LOC)
    • 1 *.asciidoc files (14 LOC)
    • 1 *.rdoc files (4 LOC)
    • 1 *.rmd files (3 LOC)
    • 1 *.textile files (2 LOC)
    • 1 *.markdown files (2 LOC)
  • " *.rst" is biggest, containing 68.79% of LOC.
  • " *.markdown" is smallest, containing 0.13% of LOC.


*.rst1071 LOC (68%) 3 files
*.md205 LOC (13%) 3 files
*.org102 LOC (6%) 1 file
*.pod57 LOC (3%) 1 file
*.litcoffee35 LOC (2%) 1 file
*.creole26 LOC (1%) 1 file
*.mediawiki19 LOC (1%) 1 file
*.txt17 LOC (1%) 2 files
*.asciidoc14 LOC (<1%) 1 file
*.rdoc4 LOC (<1%) 1 file
*.rmd3 LOC (<1%) 1 file
*.textile2 LOC (<1%) 1 file
*.markdown2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-16 13:46