aliyun / alibabacloud-kms-agent
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
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.

main1765 LOC (77%) 19 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment46 LOC (2%) 3 files
other471 LOC (20%) 3 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 ".*".
  • 19 files match defined criteria (1,765 LOC, 100.0% vs. main code):
    • 16 *.go files (1,678 LOC)
    • 2 *.toml files (57 LOC)
    • 1 *.yaml files (30 LOC)
  • " *.go" is biggest, containing 95.07% of LOC.
  • " *.yaml" is smallest, containing 1.7% of LOC.


*.go1678 LOC (95%) 16 files
*.toml57 LOC (3%) 2 files
*.yaml30 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 ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 3 files match defined criteria (46 LOC, 2.6% vs. main code):
    • 2 *.sh files (27 LOC)
    • 1 *.yaml files (19 LOC)
  • " *.sh" is biggest, containing 58.7% of LOC.
  • " *.yaml" is smallest, containing 41.3% of LOC.


*.sh27 LOC (58%) 2 files
*.yaml19 LOC (41%) 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 ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
  • 3 files match defined criteria (471 LOC, 26.7% vs. main code):
    • 2 *.md files (431 LOC)
    • 1 *.mod files (40 LOC)
  • " *.md" is biggest, containing 91.51% of LOC.
  • " *.mod" is smallest, containing 8.49% of LOC.


*.md431 LOC (91%) 2 files
*.mod40 LOC (8%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:25