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
xsd
properties
txt
gitattributes
xsl
xq
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.

main15388 LOC (23%) 196 files
test15611 LOC (23%) 380 files
generated353 LOC (<1%) 10 files
build and deployment29112 LOC (43%) 432 files
other5905 LOC (8%) 57 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 ".*".
  • 196 files match defined criteria (15,388 LOC, 100.0% vs. main code):
    • 182 *.java files (13,457 LOC)
    • 12 *.xml files (1,885 LOC)
    • 2 *.groovy files (46 LOC)
  • " *.java" is biggest, containing 87.45% of LOC.
  • " *.groovy" is smallest, containing 0.3% of LOC.


*.java13457 LOC (87%) 182 files
*.xml1885 LOC (12%) 12 files
*.groovy46 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
xsl
xq
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 380 files match defined criteria (15,611 LOC, 101.4% vs. main code):
    • 188 *.java files (8,657 LOC)
    • 176 *.xml files (4,532 LOC)
    • 11 *.js files (2,292 LOC)
    • 3 *.html files (93 LOC)
    • 1 *.xsl files (19 LOC)
    • 1 *.xq files (18 LOC)
  • " *.java" is biggest, containing 55.45% of LOC.
  • " *.xq" is smallest, containing 0.12% of LOC.


*.java8657 LOC (55%) 188 files
*.xml4532 LOC (29%) 176 files
*.js2292 LOC (14%) 11 files
*.html93 LOC (<1%) 3 files
*.xsl19 LOC (<1%) 1 file
*.xq18 LOC (<1%) 1 file
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/.*".
  • 10 files match defined criteria (353 LOC, 2.3% vs. main code):
    • 6 *.java files (311 LOC)
    • 2 *.json files (28 LOC)
    • 2 *.properties files (14 LOC)
  • " *.java" is biggest, containing 88.1% of LOC.
  • " *.properties" is smallest, containing 3.97% of LOC.


*.java311 LOC (88%) 6 files
*.json28 LOC (7%) 2 files
*.properties14 LOC (3%) 2 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 ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
  • 432 files match defined criteria (29,112 LOC, 189.2% vs. main code). All matches are in *.xml files.


*.xml29112 LOC (100%) 432 files
Other Code
xsd
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]adoc".
  • 57 files match defined criteria (5,905 LOC, 38.4% vs. main code):
    • 26 *.xsd files (4,754 LOC)
    • 7 *.xml files (349 LOC)
    • 7 *.java files (281 LOC)
    • 3 *.txt files (228 LOC)
    • 9 *.properties files (158 LOC)
    • 3 *.md files (107 LOC)
    • 2 *.json files (28 LOC)
  • " *.xsd" is biggest, containing 80.51% of LOC.
  • " *.json" is smallest, containing 0.47% of LOC.


*.xsd4754 LOC (80%) 26 files
*.xml349 LOC (5%) 7 files
*.java281 LOC (4%) 7 files
*.txt228 LOC (3%) 3 files
*.properties158 LOC (2%) 9 files
*.md107 LOC (1%) 3 files
*.json28 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:08