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.

main69451 LOC (46%) 1,473 files
test49869 LOC (33%) 788 files
generated0 LOC (0%) 0 files
build and deployment4980 LOC (3%) 92 files
other23800 LOC (16%) 614 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 ".*".
  • 1473 files match defined criteria (69,451 LOC, 100.0% vs. main code):
    • 1,445 *.java files (67,533 LOC)
    • 8 *.xml files (1,218 LOC)
    • 4 *.html files (179 LOC)
    • 3 *.js files (175 LOC)
    • 3 *.css files (167 LOC)
    • 4 *.proto files (95 LOC)
    • 5 *.yaml files (43 LOC)
    • 1 *.rdf files (41 LOC)
  • " *.java" is biggest, containing 97.24% of LOC.
  • " *.rdf" is smallest, containing 0.06% of LOC.


*.java67533 LOC (97%) 1,445 files
*.xml1218 LOC (1%) 8 files
*.html179 LOC (<1%) 4 files
*.js175 LOC (<1%) 3 files
*.css167 LOC (<1%) 3 files
*.proto95 LOC (<1%) 4 files
*.yaml43 LOC (<1%) 5 files
*.rdf41 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 ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
  • 788 files match defined criteria (49,869 LOC, 71.8% vs. main code):
    • 644 *.java files (42,397 LOC)
    • 122 *.yaml files (6,557 LOC)
    • 6 *.proto files (679 LOC)
    • 15 *.xml files (235 LOC)
    • 1 *.html files (1 LOC)
  • " *.java" is biggest, containing 85.02% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.java42397 LOC (85%) 644 files
*.yaml6557 LOC (13%) 122 files
*.proto679 LOC (1%) 6 files
*.xml235 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[.]xml".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 92 files match defined criteria (4,980 LOC, 7.2% vs. main code). All matches are in *.xml files.


*.xml4980 LOC (100%) 92 files
Other Code
properties
xsd
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 614 files match defined criteria (23,800 LOC, 34.3% vs. main code):
    • 382 *.java files (14,618 LOC)
    • 126 *.xml files (5,380 LOC)
    • 54 *.yaml files (2,466 LOC)
    • 18 *.md files (619 LOC)
    • 26 *.yml files (542 LOC)
    • 5 *.properties files (136 LOC)
    • 2 *.xsd files (26 LOC)
    • 1 *.txt files (13 LOC)
  • " *.java" is biggest, containing 61.42% of LOC.
  • " *.txt" is smallest, containing 0.05% of LOC.


*.java14618 LOC (61%) 382 files
*.xml5380 LOC (22%) 126 files
*.yaml2466 LOC (10%) 54 files
*.md619 LOC (2%) 18 files
*.yml542 LOC (2%) 26 files
*.properties136 LOC (<1%) 5 files
*.xsd26 LOC (<1%) 2 files
*.txt13 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 18:21