aliyun / darabonba-openapi
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
mod
tea
podspec
in
csproj
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.

main20569 LOC (67%) 68 files
test8704 LOC (28%) 17 files
generated0 LOC (0%) 0 files
build and deployment263 LOC (<1%) 3 files
other775 LOC (2%) 25 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 ".*".
  • 68 files match defined criteria (20,569 LOC, 100.0% vs. main code):
    • 17 *.py files (3,548 LOC)
    • 8 *.go files (3,313 LOC)
    • 6 *.cs files (2,885 LOC)
    • 13 *.php files (2,552 LOC)
    • 9 *.ts files (2,134 LOC)
    • 5 *.java files (1,602 LOC)
    • 3 *.swift files (1,570 LOC)
    • 1 *.tea files (1,346 LOC)
    • 1 *.cpp files (974 LOC)
    • 1 *.hpp files (420 LOC)
    • 1 *.cmake files (170 LOC)
    • 1 *.xml files (27 LOC)
    • 1 *.js files (25 LOC)
    • 1 *.in files (3 LOC)
  • " *.py" is biggest, containing 17.25% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.py3548 LOC (17%) 17 files
*.go3313 LOC (16%) 8 files
*.cs2885 LOC (14%) 6 files
*.php2552 LOC (12%) 13 files
*.ts2134 LOC (10%) 9 files
*.java1602 LOC (7%) 5 files
*.swift1570 LOC (7%) 3 files
*.tea1346 LOC (6%) 1 file
*.cpp974 LOC (4%) 1 file
*.hpp420 LOC (2%) 1 file
*.cmake170 LOC (<1%) 1 file
*.xml27 LOC (<1%) 1 file
*.js25 LOC (<1%) 1 file
*.in3 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]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".
  • 17 files match defined criteria (8,704 LOC, 42.3% vs. main code):
    • 5 *.py files (3,047 LOC)
    • 2 *.ts files (2,035 LOC)
    • 2 *.go files (1,857 LOC)
    • 5 *.java files (1,256 LOC)
    • 3 *.php files (509 LOC)
  • " *.py" is biggest, containing 35.01% of LOC.
  • " *.php" is smallest, containing 5.85% of LOC.


*.py3047 LOC (35%) 5 files
*.ts2035 LOC (23%) 2 files
*.go1857 LOC (21%) 2 files
*.java1256 LOC (14%) 5 files
*.php509 LOC (5%) 3 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 ".*[.]podspec".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*/package[.]json".
  • 3 files match defined criteria (263 LOC, 1.3% vs. main code):
    • 1 *.xml files (191 LOC)
    • 1 *.csproj files (50 LOC)
    • 1 *.podspec files (22 LOC)
  • " *.xml" is biggest, containing 72.62% of LOC.
  • " *.podspec" is smallest, containing 8.37% of LOC.


*.xml191 LOC (72%) 1 file
*.csproj50 LOC (19%) 1 file
*.podspec22 LOC (8%) 1 file
Other Code
txt
mod
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 ".*/go[.]mod".
  • 25 files match defined criteria (775 LOC, 3.8% vs. main code):
    • 18 *.md files (505 LOC)
    • 3 *.txt files (170 LOC)
    • 3 *.json files (89 LOC)
    • 1 *.mod files (11 LOC)
  • " *.md" is biggest, containing 65.16% of LOC.
  • " *.mod" is smallest, containing 1.42% of LOC.


*.md505 LOC (65%) 18 files
*.txt170 LOC (21%) 3 files
*.json89 LOC (11%) 3 files
*.mod11 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:03