apache / camel-examples
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
xquery
xsd
gitattributes
cmd
cql
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.

main5347 LOC (21%) 253 files
test2157 LOC (8%) 59 files
generated116 LOC (<1%) 5 files
build and deployment7161 LOC (28%) 91 files
other10059 LOC (40%) 250 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xquery
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 253 files match defined criteria (5,347 LOC, 100.0% vs. main code):
    • 194 *.java files (4,097 LOC)
    • 37 *.xml files (665 LOC)
    • 17 *.yaml files (489 LOC)
    • 4 *.sql files (78 LOC)
    • 1 *.xquery files (18 LOC)
  • " *.java" is biggest, containing 76.62% of LOC.
  • " *.xquery" is smallest, containing 0.34% of LOC.


*.java4097 LOC (76%) 194 files
*.xml665 LOC (12%) 37 files
*.yaml489 LOC (9%) 17 files
*.sql78 LOC (1%) 4 files
*.xquery18 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cql
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 59 files match defined criteria (2,157 LOC, 40.3% vs. main code):
    • 56 *.java files (2,116 LOC)
    • 2 *.xml files (33 LOC)
    • 1 *.cql files (8 LOC)
  • " *.java" is biggest, containing 98.1% of LOC.
  • " *.cql" is smallest, containing 0.37% of LOC.


*.java2116 LOC (98%) 56 files
*.xml33 LOC (1%) 2 files
*.cql8 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/.*".
  • 5 files match defined criteria (116 LOC, 2.2% vs. main code):
    • 4 *.java files (112 LOC)
    • 1 *.properties files (4 LOC)
  • " *.java" is biggest, containing 96.55% of LOC.
  • " *.properties" is smallest, containing 3.45% of LOC.


*.java112 LOC (96%) 4 files
*.properties4 LOC (3%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 91 files match defined criteria (7,161 LOC, 133.9% vs. main code):
    • 82 *.xml files (6,909 LOC)
    • 9 *.sh files (252 LOC)
  • " *.xml" is biggest, containing 96.48% of LOC.
  • " *.sh" is smallest, containing 3.52% of LOC.


*.xml6909 LOC (96%) 82 files
*.sh252 LOC (3%) 9 files
Other Code
txt
properties
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
  • 250 files match defined criteria (10,059 LOC, 188.1% vs. main code):
    • 40 *.txt files (3,384 LOC)
    • 120 *.properties files (3,042 LOC)
    • 71 *.adoc files (2,999 LOC)
    • 8 *.java files (302 LOC)
    • 7 *.md files (261 LOC)
    • 3 *.json files (54 LOC)
    • 1 *.xsd files (17 LOC)
  • " *.txt" is biggest, containing 33.64% of LOC.
  • " *.xsd" is smallest, containing 0.17% of LOC.


*.txt3384 LOC (33%) 40 files
*.properties3042 LOC (30%) 120 files
*.adoc2999 LOC (29%) 71 files
*.java302 LOC (3%) 8 files
*.md261 LOC (2%) 7 files
*.json54 LOC (<1%) 3 files
*.xsd17 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:06