gitlab-org / GitLab_Terraform_Provider
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
mod
gitattributes
txt
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.

main46519 LOC (53%) 208 files
test36381 LOC (41%) 164 files
generated0 LOC (0%) 0 files
build and deployment171 LOC (<1%) 7 files
other4206 LOC (4%) 249 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 ".*".
  • 208 files match defined criteria (46,519 LOC, 100.0% vs. main code):
    • 206 *.go files (46,474 LOC)
    • 1 *.rb files (32 LOC)
    • 1 *.tf files (13 LOC)
  • " *.go" is biggest, containing 99.9% of LOC.
  • " *.tf" is smallest, containing 0.03% of LOC.


*.go46474 LOC (99%) 206 files
*.rb32 LOC (<1%) 1 file
*.tf13 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[.].*".
  • 164 files match defined criteria (36,381 LOC, 78.2% vs. main code). All matches are in *.go files.


*.go36381 LOC (100%) 164 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".
  • 7 files match defined criteria (171 LOC, 0.4% vs. main code). All matches are in *.sh files.


*.sh171 LOC (100%) 7 files
Other Code
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
  • 249 files match defined criteria (4,206 LOC, 9.0% vs. main code):
    • 151 *.tf files (2,115 LOC)
    • 4 *.md files (1,688 LOC)
    • 2 *.mod files (300 LOC)
    • 91 *.sh files (97 LOC)
    • 1 *.json files (6 LOC)
  • " *.tf" is biggest, containing 50.29% of LOC.
  • " *.json" is smallest, containing 0.14% of LOC.


*.tf2115 LOC (50%) 151 files
*.md1688 LOC (40%) 4 files
*.mod300 LOC (7%) 2 files
*.sh97 LOC (2%) 91 files
*.json6 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-16 13:30