alibaba / arthas
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
proto
properties
txt
ui
as
cmd
prettierignore
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.

main61990 LOC (76%) 780 files
test4015 LOC (4%) 70 files
generated5252 LOC (6%) 1 file
build and deployment2963 LOC (3%) 29 files
other6793 LOC (8%) 38 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
as
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 780 files match defined criteria (61,990 LOC, 100.0% vs. main code):
    • 658 *.java files (49,444 LOC)
    • 60 *.vue files (6,531 LOC)
    • 11 *.js files (3,315 LOC)
    • 18 *.ts files (1,724 LOC)
    • 7 *.proto files (489 LOC)
    • 14 *.html files (202 LOC)
    • 1 *.cpp files (174 LOC)
    • 3 *.xml files (91 LOC)
    • 5 *.css files (13 LOC)
    • 2 *.groovy files (4 LOC)
    • 1 *.as files (3 LOC)
  • " *.java" is biggest, containing 79.76% of LOC.
  • " *.as" is smallest, containing 0% of LOC.


*.java49444 LOC (79%) 658 files
*.vue6531 LOC (10%) 60 files
*.js3315 LOC (5%) 11 files
*.ts1724 LOC (2%) 18 files
*.proto489 LOC (<1%) 7 files
*.html202 LOC (<1%) 14 files
*.cpp174 LOC (<1%) 1 file
*.xml91 LOC (<1%) 3 files
*.css13 LOC (<1%) 5 files
*.groovy4 LOC (<1%) 2 files
*.as3 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
  • 70 files match defined criteria (4,015 LOC, 6.5% vs. main code):
    • 65 *.java files (3,818 LOC)
    • 3 *.proto files (150 LOC)
    • 2 *.xml files (47 LOC)
  • " *.java" is biggest, containing 95.09% of LOC.
  • " *.xml" is smallest, containing 1.17% of LOC.


*.java3818 LOC (95%) 65 files
*.proto150 LOC (3%) 3 files
*.xml47 LOC (1%) 2 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 (5,252 LOC, 8.5% vs. main code). All matches are in *.json files.


*.json5252 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/assembly[.]xml".
  • 29 files match defined criteria (2,963 LOC, 4.8% vs. main code):
    • 28 *.xml files (2,938 LOC)
    • 1 *.sh files (25 LOC)
  • " *.xml" is biggest, containing 99.16% of LOC.
  • " *.sh" is smallest, containing 0.84% of LOC.


*.xml2938 LOC (99%) 28 files
*.sh25 LOC (<1%) 1 file
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]json".
  • 38 files match defined criteria (6,793 LOC, 11.0% vs. main code):
    • 7 *.json files (5,427 LOC)
    • 17 *.md files (1,198 LOC)
    • 9 *.properties files (61 LOC)
    • 4 *.txt files (54 LOC)
    • 1 *.java files (53 LOC)
  • " *.json" is biggest, containing 79.89% of LOC.
  • " *.java" is smallest, containing 0.78% of LOC.


*.json5427 LOC (79%) 7 files
*.md1198 LOC (17%) 17 files
*.properties61 LOC (<1%) 9 files
*.txt54 LOC (<1%) 4 files
*.java53 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:51