alibaba / transmittable-thread-local
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
properties
editorconfig
gitmodules
cmd
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.

main7009 LOC (40%) 117 files
test4795 LOC (27%) 66 files
generated0 LOC (0%) 0 files
build and deployment2368 LOC (13%) 21 files
other3339 LOC (19%) 50 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 117 files match defined criteria (7,009 LOC, 100.0% vs. main code):
    • 115 *.java files (6,816 LOC)
    • 2 *.kt files (193 LOC)
  • " *.java" is biggest, containing 97.25% of LOC.
  • " *.kt" is smallest, containing 2.75% of LOC.


*.java6816 LOC (97%) 115 files
*.kt193 LOC (2%) 2 files
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 ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/test_.*".
  • 66 files match defined criteria (4,795 LOC, 68.4% vs. main code):
    • 58 *.kt files (4,452 LOC)
    • 7 *.java files (330 LOC)
    • 1 *.xml files (13 LOC)
  • " *.kt" is biggest, containing 92.85% of LOC.
  • " *.xml" is smallest, containing 0.27% of LOC.


*.kt4452 LOC (92%) 58 files
*.java330 LOC (6%) 7 files
*.xml13 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
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 ".*/[.]gitmodules".
  • 21 files match defined criteria (2,368 LOC, 33.8% vs. main code):
    • 9 *.xml files (2,136 LOC)
    • 12 *.sh files (232 LOC)
  • " *.xml" is biggest, containing 90.2% of LOC.
  • " *.sh" is smallest, containing 9.8% of LOC.


*.xml2136 LOC (90%) 9 files
*.sh232 LOC (9%) 12 files
Other Code
txt
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 ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
  • 50 files match defined criteria (3,339 LOC, 47.6% vs. main code):
    • 32 *.kt files (1,800 LOC)
    • 12 *.md files (1,390 LOC)
    • 4 *.java files (139 LOC)
    • 1 *.txt files (9 LOC)
    • 1 *.properties files (1 LOC)
  • " *.kt" is biggest, containing 53.91% of LOC.
  • " *.properties" is smallest, containing 0.03% of LOC.


*.kt1800 LOC (53%) 32 files
*.md1390 LOC (41%) 12 files
*.java139 LOC (4%) 4 files
*.txt9 LOC (<1%) 1 file
*.properties1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:51