aliyun / Resource-Orchestration-Service-Cloud-Development-Kit
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
csproj
mod
in
cfg
npmignore
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.

main4704730 LOC (96%) 26,375 files
test3844 LOC (<1%) 66 files
generated112460 LOC (2%) 184 files
build and deployment33618 LOC (<1%) 259 files
other37448 LOC (<1%) 1,735 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
in
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 26375 files match defined criteria (4,704,730 LOC, 100.0% vs. main code):
    • 10,856 *.go files (1,944,240 LOC)
    • 7,721 *.cs files (1,267,812 LOC)
    • 5,376 *.java files (1,001,298 LOC)
    • 424 *.py files (409,943 LOC)
    • 1,440 *.ts files (76,778 LOC)
    • 178 *.js files (2,921 LOC)
    • 125 *.toml files (1,000 LOC)
    • 125 *.cfg files (375 LOC)
    • 125 *.in files (125 LOC)
    • 1 *.ps1 files (124 LOC)
    • 2 *.xml files (102 LOC)
    • 2 *.mod files (12 LOC)
  • " *.go" is biggest, containing 41.33% of LOC.
  • " *.mod" is smallest, containing 0% of LOC.


*.go1944240 LOC (41%) 10,856 files
*.cs1267812 LOC (26%) 7,721 files
*.java1001298 LOC (21%) 5,376 files
*.py409943 LOC (8%) 424 files
*.ts76778 LOC (1%) 1,440 files
*.js2921 LOC (<1%) 178 files
*.toml1000 LOC (<1%) 125 files
*.cfg375 LOC (<1%) 125 files
*.in125 LOC (<1%) 125 files
*.ps1124 LOC (<1%) 1 file
*.xml102 LOC (<1%) 2 files
*.mod12 LOC (<1%) 2 files
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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
  • 66 files match defined criteria (3,844 LOC, 0.1% vs. main code):
    • 54 *.ts files (3,645 LOC)
    • 2 *.java files (54 LOC)
    • 4 *.py files (52 LOC)
    • 4 *.js files (51 LOC)
    • 2 *.go files (42 LOC)
  • " *.ts" is biggest, containing 94.82% of LOC.
  • " *.go" is smallest, containing 1.09% of LOC.


*.ts3645 LOC (94%) 54 files
*.java54 LOC (1%) 2 files
*.py52 LOC (1%) 4 files
*.js51 LOC (1%) 4 files
*.go42 LOC (1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]generated[.][a-zA-Z]+".
  • 184 files match defined criteria (112,460 LOC, 2.4% vs. main code). All matches are in *.ts files.


*.ts112460 LOC (100%) 184 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]sh".
  • 259 files match defined criteria (33,618 LOC, 0.7% vs. main code):
    • 125 *.xml files (28,670 LOC)
    • 129 *.csproj files (4,573 LOC)
    • 3 *.sh files (353 LOC)
    • 2 *.bat files (22 LOC)
  • " *.xml" is biggest, containing 85.28% of LOC.
  • " *.bat" is smallest, containing 0.07% of LOC.


*.xml28670 LOC (85%) 125 files
*.csproj4573 LOC (13%) 129 files
*.sh353 LOC (1%) 3 files
*.bat22 LOC (<1%) 2 files
Other Code
txt
mod
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]npmignore".
  • 1735 files match defined criteria (37,448 LOC, 0.8% vs. main code):
    • 356 *.json files (21,305 LOC)
    • 638 *.txt files (8,964 LOC)
    • 543 *.md files (3,318 LOC)
    • 28 *.py files (1,281 LOC)
    • 127 *.mod files (1,159 LOC)
    • 8 *.js files (264 LOC)
    • 4 *.ts files (250 LOC)
    • 8 *.cs files (197 LOC)
    • 4 *.go files (168 LOC)
    • 6 *.java files (161 LOC)
    • 1 *.sh files (149 LOC)
    • 2 *.xml files (102 LOC)
    • 6 *.bat files (66 LOC)
    • 4 *.csproj files (64 LOC)
  • " *.json" is biggest, containing 56.89% of LOC.
  • " *.csproj" is smallest, containing 0.17% of LOC.


*.json21305 LOC (56%) 356 files
*.txt8964 LOC (23%) 638 files
*.md3318 LOC (8%) 543 files
*.py1281 LOC (3%) 28 files
*.mod1159 LOC (3%) 127 files
*.js264 LOC (<1%) 8 files
*.ts250 LOC (<1%) 4 files
*.cs197 LOC (<1%) 8 files
*.go168 LOC (<1%) 4 files
*.java161 LOC (<1%) 6 files
*.sh149 LOC (<1%) 1 file
*.xml102 LOC (<1%) 2 files
*.bat66 LOC (<1%) 6 files
*.csproj64 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:29