elastic / terraform-google-bigquery
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
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.

main4177 LOC (62%) 47 files
test332 LOC (4%) 11 files
generated0 LOC (0%) 0 files
build and deployment143 LOC (2%) 3 files
other2079 LOC (30%) 46 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 ".*".
  • 47 files match defined criteria (4,177 LOC, 100.0% vs. main code):
    • 26 *.tf files (1,984 LOC)
    • 1 *.ipynb files (867 LOC)
    • 12 *.yaml files (862 LOC)
    • 7 *.sql files (424 LOC)
    • 1 *.py files (40 LOC)
  • " *.tf" is biggest, containing 47.5% of LOC.
  • " *.py" is smallest, containing 0.96% of LOC.


*.tf1984 LOC (47%) 26 files
*.ipynb867 LOC (20%) 1 file
*.yaml862 LOC (20%) 12 files
*.sql424 LOC (10%) 7 files
*.py40 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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 11 files match defined criteria (332 LOC, 7.9% vs. main code):
    • 8 *.tf files (248 LOC)
    • 1 *.rb files (70 LOC)
    • 1 *.go files (8 LOC)
    • 1 *.tfvars files (6 LOC)
  • " *.tf" is biggest, containing 74.7% of LOC.
  • " *.tfvars" is smallest, containing 1.81% of LOC.


*.tf248 LOC (74%) 8 files
*.rb70 LOC (21%) 1 file
*.go8 LOC (2%) 1 file
*.tfvars6 LOC (1%) 1 file
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".
  • 3 files match defined criteria (143 LOC, 3.4% vs. main code). All matches are in *.sh files.


*.sh143 LOC (100%) 3 files
Other Code
mod
txt
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 ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
  • 46 files match defined criteria (2,079 LOC, 49.8% vs. main code):
    • 20 *.tf files (837 LOC)
    • 12 *.md files (628 LOC)
    • 10 *.json files (475 LOC)
    • 1 *.mod files (82 LOC)
    • 2 *.tfvars files (55 LOC)
    • 1 *.txt files (2 LOC)
  • " *.tf" is biggest, containing 40.26% of LOC.
  • " *.txt" is smallest, containing 0.1% of LOC.


*.tf837 LOC (40%) 20 files
*.md628 LOC (30%) 12 files
*.json475 LOC (22%) 10 files
*.mod82 LOC (3%) 1 file
*.tfvars55 LOC (2%) 2 files
*.txt2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-13 20:08