aliyun / alibabacloud-gateway
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
tea
mod
csproj
podspec
npmignore
txt
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.

main59657 LOC (93%) 1,049 files
test539 LOC (<1%) 17 files
generated0 LOC (0%) 0 files
build and deployment2141 LOC (3%) 22 files
other1340 LOC (2%) 50 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tea
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1049 files match defined criteria (59,657 LOC, 100.0% vs. main code):
    • 882 *.java files (35,100 LOC)
    • 77 *.py files (8,555 LOC)
    • 21 *.cs files (4,954 LOC)
    • 12 *.go files (2,814 LOC)
    • 24 *.php files (2,635 LOC)
    • 14 *.ts files (2,532 LOC)
    • 13 *.tea files (2,289 LOC)
    • 5 *.swift files (758 LOC)
    • 1 *.xml files (20 LOC)
  • " *.java" is biggest, containing 58.84% of LOC.
  • " *.xml" is smallest, containing 0.03% of LOC.


*.java35100 LOC (58%) 882 files
*.py8555 LOC (14%) 77 files
*.cs4954 LOC (8%) 21 files
*.go2814 LOC (4%) 12 files
*.php2635 LOC (4%) 24 files
*.ts2532 LOC (4%) 14 files
*.tea2289 LOC (3%) 13 files
*.swift758 LOC (1%) 5 files
*.xml20 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 17 files match defined criteria (539 LOC, 0.9% vs. main code):
    • 3 *.java files (155 LOC)
    • 3 *.go files (141 LOC)
    • 5 *.py files (103 LOC)
    • 2 *.ts files (58 LOC)
    • 1 *.cs files (33 LOC)
    • 2 *.php files (32 LOC)
    • 1 *.csproj files (17 LOC)
  • " *.java" is biggest, containing 28.76% of LOC.
  • " *.csproj" is smallest, containing 3.15% of LOC.


*.java155 LOC (28%) 3 files
*.go141 LOC (26%) 3 files
*.py103 LOC (19%) 5 files
*.ts58 LOC (10%) 2 files
*.cs33 LOC (6%) 1 file
*.php32 LOC (5%) 2 files
*.csproj17 LOC (3%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
podspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]podspec".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/package[.]json".
  • 22 files match defined criteria (2,141 LOC, 3.6% vs. main code):
    • 12 *.xml files (1,681 LOC)
    • 8 *.csproj files (415 LOC)
    • 2 *.podspec files (45 LOC)
  • " *.xml" is biggest, containing 78.51% of LOC.
  • " *.podspec" is smallest, containing 2.1% of LOC.


*.xml1681 LOC (78%) 12 files
*.csproj415 LOC (19%) 8 files
*.podspec45 LOC (2%) 2 files
Other Code
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]txt".
  • 50 files match defined criteria (1,340 LOC, 2.2% vs. main code):
    • 31 *.json files (851 LOC)
    • 9 *.md files (370 LOC)
    • 10 *.mod files (119 LOC)
  • " *.json" is biggest, containing 63.51% of LOC.
  • " *.mod" is smallest, containing 8.88% of LOC.


*.json851 LOC (63%) 31 files
*.md370 LOC (27%) 9 files
*.mod119 LOC (8%) 10 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:12