gitlab-org / cli
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
mod
ini
iss
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.

main30578 LOC (45%) 282 files
test33131 LOC (49%) 196 files
generated1447 LOC (2%) 4 files
build and deployment23 LOC (<1%) 1 file
other1538 LOC (2%) 9 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
iss
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 282 files match defined criteria (30,578 LOC, 100.0% vs. main code):
    • 279 *.go files (30,366 LOC)
    • 1 *.iss files (84 LOC)
    • 1 *.js files (79 LOC)
    • 1 *.yaml files (49 LOC)
  • " *.go" is biggest, containing 99.31% of LOC.
  • " *.yaml" is smallest, containing 0.16% of LOC.


*.go30366 LOC (99%) 279 files
*.iss84 LOC (<1%) 1 file
*.js79 LOC (<1%) 1 file
*.yaml49 LOC (<1%) 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 ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 196 files match defined criteria (33,131 LOC, 108.3% vs. main code). All matches are in *.go files.


*.go33131 LOC (100%) 196 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with any line of content like "//[ ]*Generated by .*".
  • 4 files match defined criteria (1,447 LOC, 4.7% vs. main code):
    • 1 *.json files (895 LOC)
    • 3 *.go files (552 LOC)
  • " *.json" is biggest, containing 61.85% of LOC.
  • " *.go" is smallest, containing 38.15% of LOC.


*.json895 LOC (61%) 1 file
*.go552 LOC (38%) 3 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 1 file matches defined criteria (23 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh23 LOC (100%) 1 file
Other Code
mod
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/go[.]mod".
  • 9 files match defined criteria (1,538 LOC, 5.0% vs. main code):
    • 2 *.json files (909 LOC)
    • 6 *.md files (517 LOC)
    • 1 *.mod files (112 LOC)
  • " *.json" is biggest, containing 59.1% of LOC.
  • " *.mod" is smallest, containing 7.28% of LOC.


*.json909 LOC (59%) 2 files
*.md517 LOC (33%) 6 files
*.mod112 LOC (7%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-16 13:32