gitlab-org / gitlab-pages
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
mk
mod
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.

main7217 LOC (30%) 144 files
test14709 LOC (61%) 127 files
generated0 LOC (0%) 0 files
build and deployment97 LOC (<1%) 3 files
other1985 LOC (8%) 31 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 ".*".
  • 144 files match defined criteria (7,217 LOC, 100.0% vs. main code):
    • 97 *.go files (7,160 LOC)
    • 47 *.html files (57 LOC)
  • " *.go" is biggest, containing 99.21% of LOC.
  • " *.html" is smallest, containing 0.79% of LOC.


*.go7160 LOC (99%) 97 files
*.html57 LOC (<1%) 47 files
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 ".*_test[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 127 files match defined criteria (14,709 LOC, 203.8% vs. main code):
    • 123 *.go files (14,705 LOC)
    • 4 *.html files (4 LOC)
  • " *.go" is biggest, containing 99.97% of LOC.
  • " *.html" is smallest, containing 0.03% of LOC.


*.go14705 LOC (99%) 123 files
*.html4 LOC (<1%) 4 files
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 ".*[.]mk".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 3 files match defined criteria (97 LOC, 1.3% vs. main code). All matches are in *.mk files.


*.mk97 LOC (100%) 3 files
Other Code
mod
txt
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 ".*/go[.]mod".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
  • 31 files match defined criteria (1,985 LOC, 27.5% vs. main code):
    • 6 *.md files (1,752 LOC)
    • 23 *.json files (154 LOC)
    • 1 *.mod files (78 LOC)
    • 1 *.txt files (1 LOC)
  • " *.md" is biggest, containing 88.26% of LOC.
  • " *.txt" is smallest, containing 0.05% of LOC.


*.md1752 LOC (88%) 6 files
*.json154 LOC (7%) 23 files
*.mod78 LOC (3%) 1 file
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-16 13:47