aliyun / dataworks-spec
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
http
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.

main86805 LOC (74%) 1,195 files
test10686 LOC (9%) 113 files
generated0 LOC (0%) 0 files
build and deployment2360 LOC (2%) 28 files
other15902 LOC (13%) 197 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 ".*".
  • 1195 files match defined criteria (86,805 LOC, 100.0% vs. main code):
    • 1,130 *.java files (83,301 LOC)
    • 59 *.py files (3,172 LOC)
    • 5 *.xml files (330 LOC)
    • 1 *.sql files (2 LOC)
  • " *.java" is biggest, containing 95.96% of LOC.
  • " *.sql" is smallest, containing 0% of LOC.


*.java83301 LOC (95%) 1,130 files
*.py3172 LOC (3%) 59 files
*.xml330 LOC (<1%) 5 files
*.sql2 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
http
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
  • 113 files match defined criteria (10,686 LOC, 12.3% vs. main code):
    • 66 *.java files (9,381 LOC)
    • 45 *.py files (1,266 LOC)
    • 1 *.http files (24 LOC)
    • 1 *.xml files (15 LOC)
  • " *.java" is biggest, containing 87.79% of LOC.
  • " *.xml" is smallest, containing 0.14% of LOC.


*.java9381 LOC (87%) 66 files
*.py1266 LOC (11%) 45 files
*.http24 LOC (<1%) 1 file
*.xml15 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".
  • 28 files match defined criteria (2,360 LOC, 2.7% vs. main code):
    • 22 *.xml files (2,218 LOC)
    • 6 *.sh files (142 LOC)
  • " *.xml" is biggest, containing 93.98% of LOC.
  • " *.sh" is smallest, containing 6.02% of LOC.


*.xml2218 LOC (93%) 22 files
*.sh142 LOC (6%) 6 files
Other Code
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 ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
  • 197 files match defined criteria (15,902 LOC, 18.3% vs. main code):
    • 166 *.json files (13,639 LOC)
    • 24 *.yaml files (1,532 LOC)
    • 5 *.md files (708 LOC)
    • 1 *.py files (20 LOC)
    • 1 *.sh files (3 LOC)
  • " *.json" is biggest, containing 85.77% of LOC.
  • " *.sh" is smallest, containing 0.02% of LOC.


*.json13639 LOC (85%) 166 files
*.yaml1532 LOC (9%) 24 files
*.md708 LOC (4%) 5 files
*.py20 LOC (<1%) 1 file
*.sh3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:21