aliyun / alibabacloud-edas-demo
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
properties
txt
mod
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.

main8139 LOC (57%) 269 files
test211 LOC (1%) 4 files
generated0 LOC (0%) 0 files
build and deployment4404 LOC (30%) 84 files
other1498 LOC (10%) 74 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 ".*".
  • 269 files match defined criteria (8,139 LOC, 100.0% vs. main code):
    • 196 *.java files (5,679 LOC)
    • 36 *.xml files (934 LOC)
    • 8 *.js files (449 LOC)
    • 8 *.html files (433 LOC)
    • 4 *.htm files (249 LOC)
    • 1 *.py files (118 LOC)
    • 4 *.yaml files (117 LOC)
    • 7 *.css files (84 LOC)
    • 2 *.go files (47 LOC)
    • 2 *.sql files (17 LOC)
    • 1 *.jsp files (12 LOC)
  • " *.java" is biggest, containing 69.78% of LOC.
  • " *.jsp" is smallest, containing 0.15% of LOC.


*.java5679 LOC (69%) 196 files
*.xml934 LOC (11%) 36 files
*.js449 LOC (5%) 8 files
*.html433 LOC (5%) 8 files
*.htm249 LOC (3%) 4 files
*.py118 LOC (1%) 1 file
*.yaml117 LOC (1%) 4 files
*.css84 LOC (1%) 7 files
*.go47 LOC (<1%) 2 files
*.sql17 LOC (<1%) 2 files
*.jsp12 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 ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
  • 4 files match defined criteria (211 LOC, 2.6% vs. main code):
    • 3 *.go files (178 LOC)
    • 1 *.java files (33 LOC)
  • " *.go" is biggest, containing 84.36% of LOC.
  • " *.java" is smallest, containing 15.64% of LOC.


*.go178 LOC (84%) 3 files
*.java33 LOC (15%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/package[.]json".
  • 84 files match defined criteria (4,404 LOC, 54.1% vs. main code):
    • 64 *.xml files (4,028 LOC)
    • 9 *.sh files (190 LOC)
    • 11 *.gradle files (186 LOC)
  • " *.xml" is biggest, containing 91.46% of LOC.
  • " *.gradle" is smallest, containing 4.22% of LOC.


*.xml4028 LOC (91%) 64 files
*.sh190 LOC (4%) 9 files
*.gradle186 LOC (4%) 11 files
Other Code
txt
properties
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 ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]json".
  • 74 files match defined criteria (1,498 LOC, 18.4% vs. main code):
    • 21 *.java files (510 LOC)
    • 2 *.txt files (389 LOC)
    • 14 *.md files (242 LOC)
    • 35 *.properties files (235 LOC)
    • 1 *.json files (74 LOC)
    • 1 *.mod files (48 LOC)
  • " *.java" is biggest, containing 34.05% of LOC.
  • " *.mod" is smallest, containing 3.2% of LOC.


*.java510 LOC (34%) 21 files
*.txt389 LOC (25%) 2 files
*.md242 LOC (16%) 14 files
*.properties235 LOC (15%) 35 files
*.json74 LOC (4%) 1 file
*.mod48 LOC (3%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 05:14