apache / servicecomb-java-chassis
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
xsd
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.

main73382 LOC (46%) 1,506 files
test49911 LOC (31%) 761 files
generated0 LOC (0%) 0 files
build and deployment4920 LOC (3%) 95 files
other29495 LOC (18%) 731 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 ".*".
  • 1506 files match defined criteria (73,382 LOC, 100.0% vs. main code):
    • 1,490 *.java files (71,826 LOC)
    • 5 *.xml files (1,223 LOC)
    • 6 *.proto files (298 LOC)
    • 5 *.yaml files (35 LOC)
  • " *.java" is biggest, containing 97.88% of LOC.
  • " *.yaml" is smallest, containing 0.05% of LOC.


*.java71826 LOC (97%) 1,490 files
*.xml1223 LOC (1%) 5 files
*.proto298 LOC (<1%) 6 files
*.yaml35 LOC (<1%) 5 files
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[-].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
  • 761 files match defined criteria (49,911 LOC, 68.0% vs. main code):
    • 617 *.java files (41,679 LOC)
    • 122 *.yaml files (7,309 LOC)
    • 6 *.proto files (689 LOC)
    • 15 *.xml files (233 LOC)
    • 1 *.html files (1 LOC)
  • " *.java" is biggest, containing 83.51% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.java41679 LOC (83%) 617 files
*.yaml7309 LOC (14%) 122 files
*.proto689 LOC (1%) 6 files
*.xml233 LOC (<1%) 15 files
*.html1 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 ".*/assembly/src[.]xml".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 95 files match defined criteria (4,920 LOC, 6.7% vs. main code). All matches are in *.xml files.


*.xml4920 LOC (100%) 95 files
Other Code
properties
xsd
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 ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/resources/.*[.]xsd".
  • 731 files match defined criteria (29,495 LOC, 40.2% vs. main code):
    • 497 *.java files (18,964 LOC)
    • 158 *.xml files (8,169 LOC)
    • 46 *.yaml files (1,536 LOC)
    • 22 *.md files (650 LOC)
    • 5 *.properties files (137 LOC)
    • 2 *.xsd files (26 LOC)
    • 1 *.txt files (13 LOC)
  • " *.java" is biggest, containing 64.3% of LOC.
  • " *.txt" is smallest, containing 0.04% of LOC.


*.java18964 LOC (64%) 497 files
*.xml8169 LOC (27%) 158 files
*.yaml1536 LOC (5%) 46 files
*.md650 LOC (2%) 22 files
*.properties137 LOC (<1%) 5 files
*.xsd26 LOC (<1%) 2 files
*.txt13 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:56