aliyun / alibabacloud-opensearch-sdk
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
tea
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.

main10842 LOC (14%) 143 files
test2019 LOC (2%) 26 files
generated59064 LOC (80%) 73 files
build and deployment692 LOC (<1%) 6 files
other699 LOC (<1%) 29 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 ".*".
  • 143 files match defined criteria (10,842 LOC, 100.0% vs. main code):
    • 78 *.java files (4,782 LOC)
    • 7 *.py files (1,458 LOC)
    • 25 *.php files (1,448 LOC)
    • 25 *.cs files (1,010 LOC)
    • 2 *.go files (932 LOC)
    • 2 *.ts files (771 LOC)
    • 2 *.tea files (388 LOC)
    • 2 *.xml files (53 LOC)
  • " *.java" is biggest, containing 44.11% of LOC.
  • " *.xml" is smallest, containing 0.49% of LOC.


*.java4782 LOC (44%) 78 files
*.py1458 LOC (13%) 7 files
*.php1448 LOC (13%) 25 files
*.cs1010 LOC (9%) 25 files
*.go932 LOC (8%) 2 files
*.ts771 LOC (7%) 2 files
*.tea388 LOC (3%) 2 files
*.xml53 LOC (<1%) 2 files
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]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]spec[.]ts".
  • 26 files match defined criteria (2,019 LOC, 18.6% vs. main code):
    • 18 *.java files (1,815 LOC)
    • 2 *.php files (58 LOC)
    • 2 *.py files (36 LOC)
    • 1 *.cs files (35 LOC)
    • 1 *.ts files (33 LOC)
    • 1 *.xml files (27 LOC)
    • 1 *.csproj files (15 LOC)
  • " *.java" is biggest, containing 89.9% of LOC.
  • " *.csproj" is smallest, containing 0.74% of LOC.


*.java1815 LOC (89%) 18 files
*.php58 LOC (2%) 2 files
*.py36 LOC (1%) 2 files
*.cs35 LOC (1%) 1 file
*.ts33 LOC (1%) 1 file
*.xml27 LOC (1%) 1 file
*.csproj15 LOC (<1%) 1 file
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/.*".
    • files with paths like ".*/src/gen/.*".
  • 73 files match defined criteria (59,064 LOC, 544.8% vs. main code). All matches are in *.java files.


*.java59064 LOC (100%) 73 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/package[.]json".
  • 6 files match defined criteria (692 LOC, 6.4% vs. main code):
    • 3 *.xml files (512 LOC)
    • 1 *.sh files (98 LOC)
    • 2 *.csproj files (82 LOC)
  • " *.xml" is biggest, containing 73.99% of LOC.
  • " *.csproj" is smallest, containing 11.85% of LOC.


*.xml512 LOC (73%) 3 files
*.sh98 LOC (14%) 1 file
*.csproj82 LOC (11%) 2 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 ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Dd]emos?/.*".
  • 29 files match defined criteria (699 LOC, 6.4% vs. main code):
    • 6 *.java files (302 LOC)
    • 12 *.md files (198 LOC)
    • 6 *.json files (160 LOC)
    • 1 *.xml files (23 LOC)
    • 2 *.mod files (12 LOC)
    • 2 *.txt files (4 LOC)
  • " *.java" is biggest, containing 43.2% of LOC.
  • " *.txt" is smallest, containing 0.57% of LOC.


*.java302 LOC (43%) 6 files
*.md198 LOC (28%) 12 files
*.json160 LOC (22%) 6 files
*.xml23 LOC (3%) 1 file
*.mod12 LOC (1%) 2 files
*.txt4 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:03