aliyun / alibabacloud-microservice-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
mod
proto
http
txt
gitattributes
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.

main18854 LOC (55%) 432 files
test4064 LOC (11%) 98 files
generated3 LOC (<1%) 1 file
build and deployment5540 LOC (16%) 136 files
other5781 LOC (16%) 196 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 432 files match defined criteria (18,854 LOC, 100.0% vs. main code):
    • 137 *.yaml files (7,111 LOC)
    • 174 *.java files (4,849 LOC)
    • 59 *.go files (4,128 LOC)
    • 21 *.html files (1,590 LOC)
    • 16 *.xml files (402 LOC)
    • 6 *.js files (378 LOC)
    • 9 *.proto files (243 LOC)
    • 6 *.css files (72 LOC)
    • 1 *.py files (50 LOC)
    • 3 *.sql files (31 LOC)
  • " *.yaml" is biggest, containing 37.72% of LOC.
  • " *.sql" is smallest, containing 0.16% of LOC.


*.yaml7111 LOC (37%) 137 files
*.java4849 LOC (25%) 174 files
*.go4128 LOC (21%) 59 files
*.html1590 LOC (8%) 21 files
*.xml402 LOC (2%) 16 files
*.js378 LOC (2%) 6 files
*.proto243 LOC (1%) 9 files
*.css72 LOC (<1%) 6 files
*.py50 LOC (<1%) 1 file
*.sql31 LOC (<1%) 3 files
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 ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/mockapi/.*".
  • 98 files match defined criteria (4,064 LOC, 21.6% vs. main code):
    • 79 *.java files (2,755 LOC)
    • 10 *.xml files (915 LOC)
    • 6 *.http files (255 LOC)
    • 3 *.html files (139 LOC)
  • " *.java" is biggest, containing 67.79% of LOC.
  • " *.html" is smallest, containing 3.42% of LOC.


*.java2755 LOC (67%) 79 files
*.xml915 LOC (22%) 10 files
*.http255 LOC (6%) 6 files
*.html139 LOC (3%) 3 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (3 LOC, 0.0% vs. main code). All matches are in *.json files.


*.json3 LOC (100%) 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/assembly[.]xml".
  • 136 files match defined criteria (5,540 LOC, 29.4% vs. main code):
    • 83 *.xml files (5,156 LOC)
    • 53 *.sh files (384 LOC)
  • " *.xml" is biggest, containing 93.07% of LOC.
  • " *.sh" is smallest, containing 6.93% of LOC.


*.xml5156 LOC (93%) 83 files
*.sh384 LOC (6%) 53 files
Other Code
properties
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • 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 ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/go[.]mod".
  • 196 files match defined criteria (5,781 LOC, 30.7% vs. main code):
    • 93 *.java files (4,424 LOC)
    • 75 *.properties files (724 LOC)
    • 13 *.mod files (341 LOC)
    • 11 *.md files (252 LOC)
    • 2 *.txt files (33 LOC)
    • 2 *.json files (7 LOC)
  • " *.java" is biggest, containing 76.53% of LOC.
  • " *.json" is smallest, containing 0.12% of LOC.


*.java4424 LOC (76%) 93 files
*.properties724 LOC (12%) 75 files
*.mod341 LOC (5%) 13 files
*.md252 LOC (4%) 11 files
*.txt33 LOC (<1%) 2 files
*.json7 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 04:59