aliyun / alibabacloud-oss-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
tea
in
mod
podspec
properties
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.

main86520 LOC (93%) 640 files
test3305 LOC (3%) 44 files
generated0 LOC (0%) 0 files
build and deployment677 LOC (<1%) 15 files
other1690 LOC (1%) 56 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tea
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 640 files match defined criteria (86,520 LOC, 100.0% vs. main code):
    • 304 *.php files (27,059 LOC)
    • 140 *.java files (16,098 LOC)
    • 16 *.py files (14,675 LOC)
    • 3 *.cpp files (11,566 LOC)
    • 3 *.tea files (5,479 LOC)
    • 146 *.cs files (5,195 LOC)
    • 6 *.h files (3,592 LOC)
    • 8 *.swift files (1,081 LOC)
    • 6 *.go files (991 LOC)
    • 3 *.ts files (405 LOC)
    • 1 *.hpp files (176 LOC)
    • 1 *.cmake files (170 LOC)
    • 1 *.xml files (27 LOC)
    • 2 *.in files (6 LOC)
  • " *.php" is biggest, containing 31.27% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.php27059 LOC (31%) 304 files
*.java16098 LOC (18%) 140 files
*.py14675 LOC (16%) 16 files
*.cpp11566 LOC (13%) 3 files
*.tea5479 LOC (6%) 3 files
*.cs5195 LOC (6%) 146 files
*.h3592 LOC (4%) 6 files
*.swift1081 LOC (1%) 8 files
*.go991 LOC (1%) 6 files
*.ts405 LOC (<1%) 3 files
*.hpp176 LOC (<1%) 1 file
*.cmake170 LOC (<1%) 1 file
*.xml27 LOC (<1%) 1 file
*.in6 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]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[.]spec[.]ts".
  • 44 files match defined criteria (3,305 LOC, 3.8% vs. main code):
    • 5 *.java files (842 LOC)
    • 12 *.cs files (777 LOC)
    • 8 *.py files (400 LOC)
    • 2 *.ts files (341 LOC)
    • 6 *.go files (330 LOC)
    • 4 *.swift files (210 LOC)
    • 1 *.cpp files (202 LOC)
    • 4 *.php files (170 LOC)
    • 2 *.csproj files (33 LOC)
  • " *.java" is biggest, containing 25.48% of LOC.
  • " *.csproj" is smallest, containing 1% of LOC.


*.java842 LOC (25%) 5 files
*.cs777 LOC (23%) 12 files
*.py400 LOC (12%) 8 files
*.ts341 LOC (10%) 2 files
*.go330 LOC (9%) 6 files
*.swift210 LOC (6%) 4 files
*.cpp202 LOC (6%) 1 file
*.php170 LOC (5%) 4 files
*.csproj33 LOC (<1%) 2 files
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 ".*[.]sh".
    • files with paths like ".*[.]podspec".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/package[.]json".
  • 15 files match defined criteria (677 LOC, 0.8% vs. main code):
    • 2 *.xml files (305 LOC)
    • 9 *.sh files (240 LOC)
    • 2 *.csproj files (93 LOC)
    • 2 *.podspec files (39 LOC)
  • " *.xml" is biggest, containing 45.05% of LOC.
  • " *.podspec" is smallest, containing 5.76% of LOC.


*.xml305 LOC (45%) 2 files
*.sh240 LOC (35%) 9 files
*.csproj93 LOC (13%) 2 files
*.podspec39 LOC (5%) 2 files
Other Code
txt
mod
properties
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/go[.]mod".
  • 56 files match defined criteria (1,690 LOC, 2.0% vs. main code):
    • 37 *.md files (1,094 LOC)
    • 9 *.txt files (341 LOC)
    • 7 *.json files (235 LOC)
    • 2 *.mod files (19 LOC)
    • 1 *.properties files (1 LOC)
  • " *.md" is biggest, containing 64.73% of LOC.
  • " *.properties" is smallest, containing 0.06% of LOC.


*.md1094 LOC (64%) 37 files
*.txt341 LOC (20%) 9 files
*.json235 LOC (13%) 7 files
*.mod19 LOC (1%) 2 files
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:01