apache / servicemix3
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
txt
properties
wsdl
xsd
xsl
xslt
prefs
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.

main45876 LOC (56%) 641 files
test15658 LOC (19%) 302 files
generated0 LOC (0%) 0 files
build and deployment5938 LOC (7%) 33 files
other13131 LOC (16%) 277 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
prefs
wsdl
xsl
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 641 files match defined criteria (45,876 LOC, 100.0% vs. main code):
    • 487 *.java files (36,767 LOC)
    • 61 *.xml files (3,944 LOC)
    • 11 *.js files (2,369 LOC)
    • 34 *.jsp files (1,293 LOC)
    • 4 *.css files (646 LOC)
    • 37 *.html files (362 LOC)
    • 1 *.prefs files (260 LOC)
    • 3 *.wsdl files (182 LOC)
    • 2 *.xsl files (37 LOC)
    • 1 *.xsd files (16 LOC)
  • " *.java" is biggest, containing 80.14% of LOC.
  • " *.xsd" is smallest, containing 0.03% of LOC.


*.java36767 LOC (80%) 487 files
*.xml3944 LOC (8%) 61 files
*.js2369 LOC (5%) 11 files
*.jsp1293 LOC (2%) 34 files
*.css646 LOC (1%) 4 files
*.html362 LOC (<1%) 37 files
*.prefs260 LOC (<1%) 1 file
*.wsdl182 LOC (<1%) 3 files
*.xsl37 LOC (<1%) 2 files
*.xsd16 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
wsdl
xsl
xslt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 302 files match defined criteria (15,658 LOC, 34.1% vs. main code):
    • 184 *.java files (11,118 LOC)
    • 106 *.xml files (4,174 LOC)
    • 3 *.wsdl files (169 LOC)
    • 6 *.xsl files (162 LOC)
    • 2 *.xslt files (21 LOC)
    • 1 *.groovy files (14 LOC)
  • " *.java" is biggest, containing 71.01% of LOC.
  • " *.groovy" is smallest, containing 0.09% of LOC.


*.java11118 LOC (71%) 184 files
*.xml4174 LOC (26%) 106 files
*.wsdl169 LOC (1%) 3 files
*.xsl162 LOC (1%) 6 files
*.xslt21 LOC (<1%) 2 files
*.groovy14 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 ".*/build[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
  • 33 files match defined criteria (5,938 LOC, 12.9% vs. main code). All matches are in *.xml files.


*.xml5938 LOC (100%) 33 files
Other Code
txt
xsd
properties
wsdl
xslt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 277 files match defined criteria (13,131 LOC, 28.6% vs. main code):
    • 111 *.xml files (4,287 LOC)
    • 45 *.txt files (1,928 LOC)
    • 40 *.java files (1,816 LOC)
    • 10 *.xsd files (1,321 LOC)
    • 42 *.properties files (1,216 LOC)
    • 11 *.wsdl files (1,100 LOC)
    • 12 *.html files (1,064 LOC)
    • 1 *.css files (330 LOC)
    • 2 *.jsp files (36 LOC)
    • 2 *.xslt files (18 LOC)
    • 1 *.svg files (15 LOC)
  • " *.xml" is biggest, containing 32.65% of LOC.
  • " *.svg" is smallest, containing 0.11% of LOC.


*.xml4287 LOC (32%) 111 files
*.txt1928 LOC (14%) 45 files
*.java1816 LOC (13%) 40 files
*.xsd1321 LOC (10%) 10 files
*.properties1216 LOC (9%) 42 files
*.wsdl1100 LOC (8%) 11 files
*.html1064 LOC (8%) 12 files
*.css330 LOC (2%) 1 file
*.jsp36 LOC (<1%) 2 files
*.xslt18 LOC (<1%) 2 files
*.svg15 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 13:25