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

main4760 LOC (47%) 39 files
test3827 LOC (38%) 21 files
generated0 LOC (0%) 0 files
build and deployment311 LOC (3%) 8 files
other1041 LOC (10%) 30 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 ".*".
  • 39 files match defined criteria (4,760 LOC, 100.0% vs. main code):
    • 7 *.cs files (688 LOC)
    • 6 *.java files (645 LOC)
    • 5 *.swift files (584 LOC)
    • 1 *.go files (537 LOC)
    • 4 *.py files (527 LOC)
    • 3 *.php files (479 LOC)
    • 4 *.cpp files (451 LOC)
    • 1 *.tea files (225 LOC)
    • 1 *.ts files (203 LOC)
    • 1 *.cmake files (170 LOC)
    • 1 *.hpp files (165 LOC)
    • 2 *.h files (46 LOC)
    • 1 *.cc files (19 LOC)
    • 1 *.xml files (18 LOC)
    • 1 *.in files (3 LOC)
  • " *.cs" is biggest, containing 14.45% of LOC.
  • " *.in" is smallest, containing 0.06% of LOC.


*.cs688 LOC (14%) 7 files
*.java645 LOC (13%) 6 files
*.swift584 LOC (12%) 5 files
*.go537 LOC (11%) 1 file
*.py527 LOC (11%) 4 files
*.php479 LOC (10%) 3 files
*.cpp451 LOC (9%) 4 files
*.tea225 LOC (4%) 1 file
*.ts203 LOC (4%) 1 file
*.cmake170 LOC (3%) 1 file
*.hpp165 LOC (3%) 1 file
*.h46 LOC (<1%) 2 files
*.cc19 LOC (<1%) 1 file
*.xml18 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.
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".
  • 21 files match defined criteria (3,827 LOC, 80.4% vs. main code):
    • 5 *.cs files (737 LOC)
    • 3 *.java files (593 LOC)
    • 3 *.py files (453 LOC)
    • 2 *.php files (439 LOC)
    • 1 *.swift files (426 LOC)
    • 1 *.go files (412 LOC)
    • 4 *.cpp files (400 LOC)
    • 1 *.ts files (350 LOC)
    • 1 *.csproj files (17 LOC)
  • " *.cs" is biggest, containing 19.26% of LOC.
  • " *.csproj" is smallest, containing 0.44% of LOC.


*.cs737 LOC (19%) 5 files
*.java593 LOC (15%) 3 files
*.py453 LOC (11%) 3 files
*.php439 LOC (11%) 2 files
*.swift426 LOC (11%) 1 file
*.go412 LOC (10%) 1 file
*.cpp400 LOC (10%) 4 files
*.ts350 LOC (9%) 1 file
*.csproj17 LOC (<1%) 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".
    • files with paths like ".*[.]sh".
  • 8 files match defined criteria (311 LOC, 6.5% vs. main code):
    • 1 *.xml files (155 LOC)
    • 5 *.sh files (93 LOC)
    • 1 *.csproj files (45 LOC)
    • 1 *.podspec files (18 LOC)
  • " *.xml" is biggest, containing 49.84% of LOC.
  • " *.podspec" is smallest, containing 5.79% of LOC.


*.xml155 LOC (49%) 1 file
*.sh93 LOC (29%) 5 files
*.csproj45 LOC (14%) 1 file
*.podspec18 LOC (5%) 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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
  • 30 files match defined criteria (1,041 LOC, 21.9% vs. main code):
    • 21 *.md files (613 LOC)
    • 5 *.txt files (294 LOC)
    • 3 *.json files (131 LOC)
    • 1 *.mod files (3 LOC)
  • " *.md" is biggest, containing 58.89% of LOC.
  • " *.mod" is smallest, containing 0.29% of LOC.


*.md613 LOC (58%) 21 files
*.txt294 LOC (28%) 5 files
*.json131 LOC (12%) 3 files
*.mod3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:01