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

main1357 LOC (23%) 81 files
test347 LOC (6%) 36 files
generated787 LOC (13%) 35 files
build and deployment3159 LOC (55%) 78 files
other81 LOC (1%) 3 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
wsdl
xq
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 81 files match defined criteria (1,357 LOC, 100.0% vs. main code):
    • 26 *.java files (585 LOC)
    • 44 *.xml files (522 LOC)
    • 7 *.wsdl files (197 LOC)
    • 1 *.rb files (18 LOC)
    • 1 *.groovy files (13 LOC)
    • 1 *.js files (12 LOC)
    • 1 *.xq files (10 LOC)
  • " *.java" is biggest, containing 43.11% of LOC.
  • " *.xq" is smallest, containing 0.74% of LOC.


*.java585 LOC (43%) 26 files
*.xml522 LOC (38%) 44 files
*.wsdl197 LOC (14%) 7 files
*.rb18 LOC (1%) 1 file
*.groovy13 LOC (<1%) 1 file
*.js12 LOC (<1%) 1 file
*.xq10 LOC (<1%) 1 file
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/.*".
  • 36 files match defined criteria (347 LOC, 25.6% vs. main code):
    • 35 *.java files (338 LOC)
    • 1 *.xml files (9 LOC)
  • " *.java" is biggest, containing 97.41% of LOC.
  • " *.xml" is smallest, containing 2.59% of LOC.


*.java338 LOC (97%) 35 files
*.xml9 LOC (2%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
xsd
xsl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 35 files match defined criteria (787 LOC, 58.0% vs. main code):
    • 32 *.xml files (707 LOC)
    • 2 *.xsd files (61 LOC)
    • 1 *.xsl files (19 LOC)
  • " *.xml" is biggest, containing 89.83% of LOC.
  • " *.xsl" is smallest, containing 2.41% of LOC.


*.xml707 LOC (89%) 32 files
*.xsd61 LOC (7%) 2 files
*.xsl19 LOC (2%) 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".
  • 78 files match defined criteria (3,159 LOC, 232.8% vs. main code). All matches are in *.xml files.


*.xml3159 LOC (100%) 78 files
Other Code
xsd
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/resources/.*[.]xsd".
  • 3 files match defined criteria (81 LOC, 6.0% vs. main code):
    • 2 *.xsd files (61 LOC)
    • 1 *.properties files (20 LOC)
  • " *.xsd" is biggest, containing 75.31% of LOC.
  • " *.properties" is smallest, containing 24.69% of LOC.


*.xsd61 LOC (75%) 2 files
*.properties20 LOC (24%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 13:25