apache / servicemix4-features
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
wsdl
properties
cfg
xsd
xslt
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.

main4807 LOC (17%) 83 files
test5739 LOC (20%) 86 files
generated0 LOC (0%) 0 files
build and deployment3675 LOC (13%) 29 files
other13809 LOC (49%) 278 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
wsdl
xsd
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 83 files match defined criteria (4,807 LOC, 100.0% vs. main code):
    • 35 *.xml files (2,224 LOC)
    • 28 *.java files (1,820 LOC)
    • 7 *.wsdl files (447 LOC)
    • 1 *.xsd files (255 LOC)
    • 12 *.cfg files (61 LOC)
  • " *.xml" is biggest, containing 46.27% of LOC.
  • " *.cfg" is smallest, containing 1.27% of LOC.


*.xml2224 LOC (46%) 35 files
*.java1820 LOC (37%) 28 files
*.wsdl447 LOC (9%) 7 files
*.xsd255 LOC (5%) 1 file
*.cfg61 LOC (1%) 12 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
wsdl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
  • 86 files match defined criteria (5,739 LOC, 119.4% vs. main code):
    • 49 *.java files (3,197 LOC)
    • 32 *.xml files (1,560 LOC)
    • 5 *.wsdl files (982 LOC)
  • " *.java" is biggest, containing 55.71% of LOC.
  • " *.wsdl" is smallest, containing 17.11% of LOC.


*.java3197 LOC (55%) 49 files
*.xml1560 LOC (27%) 32 files
*.wsdl982 LOC (17%) 5 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/assembly/src[.]xml".
  • 29 files match defined criteria (3,675 LOC, 76.5% vs. main code). All matches are in *.xml files.


*.xml3675 LOC (100%) 29 files
Other Code
txt
properties
wsdl
xsd
xslt
cfg
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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/resources/.*[.]xsd".
  • 278 files match defined criteria (13,809 LOC, 287.3% vs. main code):
    • 37 *.txt files (4,913 LOC)
    • 116 *.xml files (3,655 LOC)
    • 78 *.java files (2,441 LOC)
    • 10 *.html files (1,160 LOC)
    • 17 *.properties files (885 LOC)
    • 6 *.wsdl files (490 LOC)
    • 6 *.scala files (212 LOC)
    • 1 *.xsd files (24 LOC)
    • 2 *.xslt files (18 LOC)
    • 1 *.rb files (7 LOC)
    • 4 *.cfg files (4 LOC)
  • " *.txt" is biggest, containing 35.58% of LOC.
  • " *.cfg" is smallest, containing 0.03% of LOC.


*.txt4913 LOC (35%) 37 files
*.xml3655 LOC (26%) 116 files
*.java2441 LOC (17%) 78 files
*.html1160 LOC (8%) 10 files
*.properties885 LOC (6%) 17 files
*.wsdl490 LOC (3%) 6 files
*.scala212 LOC (1%) 6 files
*.xsd24 LOC (<1%) 1 file
*.xslt18 LOC (<1%) 2 files
*.rb7 LOC (<1%) 1 file
*.cfg4 LOC (<1%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 13:25