alibaba / SmartEngine
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
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.

main12692 LOC (46%) 397 files
test13427 LOC (49%) 260 files
generated0 LOC (0%) 0 files
build and deployment762 LOC (2%) 9 files
other202 LOC (<1%) 13 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 ".*".
  • 397 files match defined criteria (12,692 LOC, 100.0% vs. main code):
    • 383 *.java files (11,970 LOC)
    • 10 *.xml files (492 LOC)
    • 4 *.sql files (230 LOC)
  • " *.java" is biggest, containing 94.31% of LOC.
  • " *.sql" is smallest, containing 1.81% of LOC.


*.java11970 LOC (94%) 383 files
*.xml492 LOC (3%) 10 files
*.sql230 LOC (1%) 4 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 ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test[.].*".
  • 260 files match defined criteria (13,427 LOC, 105.8% vs. main code):
    • 167 *.java files (7,825 LOC)
    • 93 *.xml files (5,602 LOC)
  • " *.java" is biggest, containing 58.28% of LOC.
  • " *.xml" is smallest, containing 41.72% of LOC.


*.java7825 LOC (58%) 167 files
*.xml5602 LOC (41%) 93 files
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".
  • 9 files match defined criteria (762 LOC, 6.0% vs. main code). All matches are in *.xml files.


*.xml762 LOC (100%) 9 files
Other Code
properties
txt
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 ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]txt".
  • 13 files match defined criteria (202 LOC, 1.6% vs. main code):
    • 5 *.md files (159 LOC)
    • 6 *.properties files (35 LOC)
    • 1 *.java files (7 LOC)
    • 1 *.txt files (1 LOC)
  • " *.md" is biggest, containing 78.71% of LOC.
  • " *.txt" is smallest, containing 0.5% of LOC.


*.md159 LOC (78%) 5 files
*.properties35 LOC (17%) 6 files
*.java7 LOC (3%) 1 file
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:52