alibaba / fast-modeling-language
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
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.

main129108 LOC (74%) 1,310 files
test36257 LOC (20%) 402 files
generated0 LOC (0%) 0 files
build and deployment3076 LOC (1%) 52 files
other4870 LOC (2%) 106 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 ".*".
  • 1310 files match defined criteria (129,108 LOC, 100.0% vs. main code):
    • 65 *.g4 files (65,363 LOC)
    • 1,195 *.java files (61,971 LOC)
    • 22 *.sql files (692 LOC)
    • 15 *.ts files (663 LOC)
    • 4 *.tsx files (322 LOC)
    • 4 *.xml files (49 LOC)
    • 2 *.html files (28 LOC)
    • 3 *.ftl files (20 LOC)
  • " *.g4" is biggest, containing 50.63% of LOC.
  • " *.ftl" is smallest, containing 0.02% of LOC.


*.g465363 LOC (50%) 65 files
*.java61971 LOC (47%) 1,195 files
*.sql692 LOC (<1%) 22 files
*.ts663 LOC (<1%) 15 files
*.tsx322 LOC (<1%) 4 files
*.xml49 LOC (<1%) 4 files
*.html28 LOC (<1%) 2 files
*.ftl20 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 ".*/test[.].*".
  • 402 files match defined criteria (36,257 LOC, 28.1% vs. main code):
    • 395 *.java files (31,513 LOC)
    • 4 *.g4 files (4,547 LOC)
    • 2 *.sql files (192 LOC)
    • 1 *.http files (5 LOC)
  • " *.java" is biggest, containing 86.92% of LOC.
  • " *.http" is smallest, containing 0.01% of LOC.


*.java31513 LOC (86%) 395 files
*.g44547 LOC (12%) 4 files
*.sql192 LOC (<1%) 2 files
*.http5 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 ".*/assembly[.]xml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 52 files match defined criteria (3,076 LOC, 2.4% vs. main code):
    • 48 *.xml files (3,023 LOC)
    • 1 *.js files (50 LOC)
    • 3 *.sh files (3 LOC)
  • " *.xml" is biggest, containing 98.28% of LOC.
  • " *.sh" is smallest, containing 0.1% of LOC.


*.xml3023 LOC (98%) 48 files
*.js50 LOC (1%) 1 file
*.sh3 LOC (<1%) 3 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 ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
  • 106 files match defined criteria (4,870 LOC, 3.8% vs. main code):
    • 76 *.txt files (4,151 LOC)
    • 20 *.json files (397 LOC)
    • 4 *.md files (165 LOC)
    • 5 *.properties files (114 LOC)
    • 1 *.java files (43 LOC)
  • " *.txt" is biggest, containing 85.24% of LOC.
  • " *.java" is smallest, containing 0.88% of LOC.


*.txt4151 LOC (85%) 76 files
*.json397 LOC (8%) 20 files
*.md165 LOC (3%) 4 files
*.properties114 LOC (2%) 5 files
*.java43 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:55