apache / camel-karaf
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
xsd
gitattributes
cmd
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.

main11588 LOC (26%) 157 files
test14592 LOC (32%) 503 files
generated671 LOC (1%) 34 files
build and deployment3785 LOC (8%) 31 files
other13790 LOC (31%) 296 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 157 files match defined criteria (11,588 LOC, 100.0% vs. main code):
    • 150 *.java files (11,410 LOC)
    • 6 *.xml files (171 LOC)
    • 1 *.html files (7 LOC)
  • " *.java" is biggest, containing 98.46% of LOC.
  • " *.html" is smallest, containing 0.06% of LOC.


*.java11410 LOC (98%) 150 files
*.xml171 LOC (1%) 6 files
*.html7 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
  • 503 files match defined criteria (14,592 LOC, 125.9% vs. main code):
    • 292 *.java files (9,408 LOC)
    • 198 *.xml files (5,104 LOC)
    • 2 *.sh files (49 LOC)
    • 11 *.cfg files (31 LOC)
  • " *.java" is biggest, containing 64.47% of LOC.
  • " *.cfg" is smallest, containing 0.21% of LOC.


*.java9408 LOC (64%) 292 files
*.xml5104 LOC (34%) 198 files
*.sh49 LOC (<1%) 2 files
*.cfg31 LOC (<1%) 11 files
Generated Code
Automatically generated files, not manually changed after generation.
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
  • 34 files match defined criteria (671 LOC, 5.8% vs. main code):
    • 6 *.java files (323 LOC)
    • 14 *.json files (250 LOC)
    • 14 *.properties files (98 LOC)
  • " *.java" is biggest, containing 48.14% of LOC.
  • " *.properties" is smallest, containing 14.61% of LOC.


*.java323 LOC (48%) 6 files
*.json250 LOC (37%) 14 files
*.properties98 LOC (14%) 14 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 31 files match defined criteria (3,785 LOC, 32.7% vs. main code). All matches are in *.xml files.


*.xml3785 LOC (100%) 31 files
Other Code
txt
properties
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 ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/[.]gitignore".
  • 296 files match defined criteria (13,790 LOC, 119.0% vs. main code):
    • 231 *.json files (11,028 LOC)
    • 21 *.txt files (1,610 LOC)
    • 40 *.properties files (942 LOC)
    • 2 *.xsd files (183 LOC)
    • 1 *.adoc files (17 LOC)
    • 1 *.md files (10 LOC)
  • " *.json" is biggest, containing 79.97% of LOC.
  • " *.md" is smallest, containing 0.07% of LOC.


*.json11028 LOC (79%) 231 files
*.txt1610 LOC (11%) 21 files
*.properties942 LOC (6%) 40 files
*.xsd183 LOC (1%) 2 files
*.adoc17 LOC (<1%) 1 file
*.md10 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 23:38