aliyun / terraform-provider-alibabacloudstack
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
proto
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.

main150698 LOC (65%) 627 files
test52824 LOC (22%) 367 files
generated0 LOC (0%) 0 files
build and deployment49 LOC (<1%) 5 files
other27704 LOC (11%) 385 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 627 files match defined criteria (150,698 LOC, 100.0% vs. main code):
    • 620 *.go files (146,916 LOC)
    • 1 *.erb files (1,479 LOC)
    • 1 *.xml files (1,370 LOC)
    • 4 *.proto files (880 LOC)
    • 1 *.py files (53 LOC)
  • " *.go" is biggest, containing 97.49% of LOC.
  • " *.py" is smallest, containing 0.04% of LOC.


*.go146916 LOC (97%) 620 files
*.erb1479 LOC (<1%) 1 file
*.xml1370 LOC (<1%) 1 file
*.proto880 LOC (<1%) 4 files
*.py53 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[.].*".
  • 367 files match defined criteria (52,824 LOC, 35.1% vs. main code). All matches are in *.go files.


*.go52824 LOC (100%) 367 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".
  • 5 files match defined criteria (49 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh49 LOC (100%) 5 files
Other Code
txt
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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]markdown".
  • 385 files match defined criteria (27,704 LOC, 18.4% vs. main code):
    • 365 *.markdown files (24,346 LOC)
    • 6 *.txt files (1,721 LOC)
    • 3 *.json files (993 LOC)
    • 5 *.md files (491 LOC)
    • 6 *.mod files (153 LOC)
  • " *.markdown" is biggest, containing 87.88% of LOC.
  • " *.mod" is smallest, containing 0.55% of LOC.


*.markdown24346 LOC (87%) 365 files
*.txt1721 LOC (6%) 6 files
*.json993 LOC (3%) 3 files
*.md491 LOC (1%) 5 files
*.mod153 LOC (<1%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:15