apache / servicemix4-kernel
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
cfg
vbs
xsd
xsl
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.

main14444 LOC (61%) 210 files
test1510 LOC (6%) 22 files
generated0 LOC (0%) 0 files
build and deployment3541 LOC (15%) 27 files
other3956 LOC (16%) 86 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
cfg
vbs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 210 files match defined criteria (14,444 LOC, 100.0% vs. main code):
    • 174 *.java files (12,430 LOC)
    • 24 *.xml files (1,900 LOC)
    • 1 *.xsl files (48 LOC)
    • 8 *.cfg files (36 LOC)
    • 3 *.vbs files (30 LOC)
  • " *.java" is biggest, containing 86.06% of LOC.
  • " *.vbs" is smallest, containing 0.21% of LOC.


*.java12430 LOC (86%) 174 files
*.xml1900 LOC (13%) 24 files
*.xsl48 LOC (<1%) 1 file
*.cfg36 LOC (<1%) 8 files
*.vbs30 LOC (<1%) 3 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[-].*".
  • 22 files match defined criteria (1,510 LOC, 10.5% vs. main code):
    • 15 *.java files (1,255 LOC)
    • 7 *.xml files (255 LOC)
  • " *.java" is biggest, containing 83.11% of LOC.
  • " *.xml" is smallest, containing 16.89% of LOC.


*.java1255 LOC (83%) 15 files
*.xml255 LOC (16%) 7 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 ".*[.]bat".
    • files with paths like ".*[.]sh".
  • 27 files match defined criteria (3,541 LOC, 24.5% vs. main code):
    • 25 *.xml files (3,493 LOC)
    • 1 *.bat files (41 LOC)
    • 1 *.sh files (7 LOC)
  • " *.xml" is biggest, containing 98.64% of LOC.
  • " *.sh" is smallest, containing 0.2% of LOC.


*.xml3493 LOC (98%) 25 files
*.bat41 LOC (1%) 1 file
*.sh7 LOC (<1%) 1 file
Other Code
properties
txt
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/[Dd]emos?/.*".
  • 86 files match defined criteria (3,956 LOC, 27.4% vs. main code):
    • 70 *.properties files (2,529 LOC)
    • 9 *.txt files (815 LOC)
    • 3 *.xml files (289 LOC)
    • 2 *.xsd files (275 LOC)
    • 1 *.java files (34 LOC)
    • 1 *.jsp files (14 LOC)
  • " *.properties" is biggest, containing 63.93% of LOC.
  • " *.jsp" is smallest, containing 0.35% of LOC.


*.properties2529 LOC (63%) 70 files
*.txt815 LOC (20%) 9 files
*.xml289 LOC (7%) 3 files
*.xsd275 LOC (6%) 2 files
*.java34 LOC (<1%) 1 file
*.jsp14 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 13:25