alibaba / canal
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
proto
tpl
editorconfig
eslintignore
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.

main67024 LOC (69%) 703 files
test15925 LOC (16%) 402 files
generated4983 LOC (5%) 1 file
build and deployment5025 LOC (5%) 51 files
other2939 LOC (3%) 28 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 703 files match defined criteria (67,024 LOC, 100.0% vs. main code):
    • 567 *.java files (59,154 LOC)
    • 25 *.vue files (2,659 LOC)
    • 26 *.xml files (2,307 LOC)
    • 35 *.js files (1,203 LOC)
    • 15 *.yaml files (489 LOC)
    • 3 *.proto files (382 LOC)
    • 6 *.scss files (337 LOC)
    • 9 *.sql files (308 LOC)
    • 2 *.tpl files (114 LOC)
    • 1 *.py files (42 LOC)
    • 1 *.html files (16 LOC)
    • 13 *.css files (13 LOC)
  • " *.java" is biggest, containing 88.26% of LOC.
  • " *.css" is smallest, containing 0.02% of LOC.


*.java59154 LOC (88%) 567 files
*.vue2659 LOC (3%) 25 files
*.xml2307 LOC (3%) 26 files
*.js1203 LOC (1%) 35 files
*.yaml489 LOC (<1%) 15 files
*.proto382 LOC (<1%) 3 files
*.scss337 LOC (<1%) 6 files
*.sql308 LOC (<1%) 9 files
*.tpl114 LOC (<1%) 2 files
*.py42 LOC (<1%) 1 file
*.html16 LOC (<1%) 1 file
*.css13 LOC (<1%) 13 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.]spec[.]js".
  • 402 files match defined criteria (15,925 LOC, 23.8% vs. main code):
    • 127 *.java files (9,451 LOC)
    • 247 *.sql files (5,324 LOC)
    • 16 *.xml files (865 LOC)
    • 7 *.js files (207 LOC)
    • 4 *.yaml files (76 LOC)
    • 1 *.sh files (2 LOC)
  • " *.java" is biggest, containing 59.35% of LOC.
  • " *.sh" is smallest, containing 0.01% of LOC.


*.java9451 LOC (59%) 127 files
*.sql5324 LOC (33%) 247 files
*.xml865 LOC (5%) 16 files
*.js207 LOC (1%) 7 files
*.yaml76 LOC (<1%) 4 files
*.sh2 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 1 file matches defined criteria (4,983 LOC, 7.4% vs. main code). All matches are in *.java files.


*.java4983 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]bat".
  • 51 files match defined criteria (5,025 LOC, 7.5% vs. main code):
    • 43 *.xml files (4,489 LOC)
    • 8 *.sh files (536 LOC)
  • " *.xml" is biggest, containing 89.33% of LOC.
  • " *.sh" is smallest, containing 10.67% of LOC.


*.xml4489 LOC (89%) 43 files
*.sh536 LOC (10%) 8 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 28 files match defined criteria (2,939 LOC, 4.4% vs. main code):
    • 3 *.json files (1,461 LOC)
    • 4 *.md files (720 LOC)
    • 8 *.properties files (534 LOC)
    • 6 *.txt files (217 LOC)
    • 7 *.svg files (7 LOC)
  • " *.json" is biggest, containing 49.71% of LOC.
  • " *.svg" is smallest, containing 0.24% of LOC.


*.json1461 LOC (49%) 3 files
*.md720 LOC (24%) 4 files
*.properties534 LOC (18%) 8 files
*.txt217 LOC (7%) 6 files
*.svg7 LOC (<1%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:51