apache / servicemix-components
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
wsdl
properties
xsd
xsl
txt
xq
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.

main57591 LOC (45%) 696 files
test52046 LOC (40%) 775 files
generated0 LOC (0%) 0 files
build and deployment7017 LOC (5%) 36 files
other10498 LOC (8%) 121 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
wsdl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 696 files match defined criteria (57,591 LOC, 100.0% vs. main code):
    • 621 *.java files (54,588 LOC)
    • 50 *.xml files (1,501 LOC)
    • 7 *.wsdl files (1,366 LOC)
    • 18 *.html files (136 LOC)
  • " *.java" is biggest, containing 94.79% of LOC.
  • " *.html" is smallest, containing 0.24% of LOC.


*.java54588 LOC (94%) 621 files
*.xml1501 LOC (2%) 50 files
*.wsdl1366 LOC (2%) 7 files
*.html136 LOC (<1%) 18 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
wsdl
xsl
xq
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 ".*/[Tt]ests/.*".
  • 775 files match defined criteria (52,046 LOC, 90.4% vs. main code):
    • 450 *.java files (36,101 LOC)
    • 248 *.xml files (8,223 LOC)
    • 63 *.wsdl files (6,789 LOC)
    • 6 *.xsl files (759 LOC)
    • 3 *.groovy files (81 LOC)
    • 2 *.xq files (43 LOC)
    • 2 *.rb files (42 LOC)
    • 1 *.js files (8 LOC)
  • " *.java" is biggest, containing 69.36% of LOC.
  • " *.js" is smallest, containing 0.02% of LOC.


*.java36101 LOC (69%) 450 files
*.xml8223 LOC (15%) 248 files
*.wsdl6789 LOC (13%) 63 files
*.xsl759 LOC (1%) 6 files
*.groovy81 LOC (<1%) 3 files
*.xq43 LOC (<1%) 2 files
*.rb42 LOC (<1%) 2 files
*.js8 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 36 files match defined criteria (7,017 LOC, 12.2% vs. main code). All matches are in *.xml files.


*.xml7017 LOC (100%) 36 files
Other Code
xsd
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 121 files match defined criteria (10,498 LOC, 18.2% vs. main code):
    • 51 *.xsd files (8,220 LOC)
    • 68 *.properties files (2,271 LOC)
    • 2 *.txt files (7 LOC)
  • " *.xsd" is biggest, containing 78.3% of LOC.
  • " *.txt" is smallest, containing 0.07% of LOC.


*.xsd8220 LOC (78%) 51 files
*.properties2271 LOC (21%) 68 files
*.txt7 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:02