aliyun / alibabacloud-servicemesh-api
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
proto
txt
mk
mod
gitattributes
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.

main90543 LOC (98%) 422 files
test255 LOC (<1%) 2 files
generated0 LOC (0%) 0 files
build and deployment1045 LOC (1%) 25 files
other470 LOC (<1%) 15 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 ".*".
  • 422 files match defined criteria (90,543 LOC, 100.0% vs. main code):
    • 135 *.go files (38,515 LOC)
    • 189 *.proto files (30,567 LOC)
    • 23 *.html files (20,165 LOC)
    • 73 *.yaml files (1,211 LOC)
    • 1 *.py files (73 LOC)
    • 1 *.rb files (12 LOC)
  • " *.go" is biggest, containing 42.54% of LOC.
  • " *.rb" is smallest, containing 0.01% of LOC.


*.go38515 LOC (42%) 135 files
*.proto30567 LOC (33%) 189 files
*.html20165 LOC (22%) 23 files
*.yaml1211 LOC (1%) 73 files
*.py73 LOC (<1%) 1 file
*.rb12 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]ests/.*".
    • files with paths like ".*_test[.].*".
  • 2 files match defined criteria (255 LOC, 0.3% vs. main code). All matches are in *.go files.


*.go255 LOC (100%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 25 files match defined criteria (1,045 LOC, 1.2% vs. main code):
    • 21 *.sh files (804 LOC)
    • 4 *.mk files (241 LOC)
  • " *.sh" is biggest, containing 76.94% of LOC.
  • " *.mk" is smallest, containing 23.06% of LOC.


*.sh804 LOC (76%) 21 files
*.mk241 LOC (23%) 4 files
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
  • 15 files match defined criteria (470 LOC, 0.5% vs. main code):
    • 8 *.md files (240 LOC)
    • 2 *.mod files (136 LOC)
    • 4 *.txt files (69 LOC)
    • 1 *.json files (25 LOC)
  • " *.md" is biggest, containing 51.06% of LOC.
  • " *.json" is smallest, containing 5.32% of LOC.


*.md240 LOC (51%) 8 files
*.mod136 LOC (28%) 2 files
*.txt69 LOC (14%) 4 files
*.json25 LOC (5%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:17