apache / camel-kamelets
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
mod
feature
txt
proto
gitmodules
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.

main17230 LOC (49%) 381 files
test4034 LOC (11%) 92 files
generated0 LOC (0%) 0 files
build and deployment891 LOC (2%) 10 files
other12753 LOC (36%) 34 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 ".*".
  • 381 files match defined criteria (17,230 LOC, 100.0% vs. main code):
    • 364 *.yaml files (10,352 LOC)
    • 2 *.xml files (5,148 LOC)
    • 8 *.go files (1,226 LOC)
    • 6 *.java files (463 LOC)
    • 1 *.groovy files (41 LOC)
  • " *.yaml" is biggest, containing 60.08% of LOC.
  • " *.groovy" is smallest, containing 0.24% of LOC.


*.yaml10352 LOC (60%) 364 files
*.xml5148 LOC (29%) 2 files
*.go1226 LOC (7%) 8 files
*.java463 LOC (2%) 6 files
*.groovy41 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*_test[.].*".
  • 92 files match defined criteria (4,034 LOC, 23.4% vs. main code):
    • 71 *.yaml files (3,098 LOC)
    • 3 *.java files (402 LOC)
    • 2 *.xml files (172 LOC)
    • 3 *.feature files (162 LOC)
    • 8 *.groovy files (124 LOC)
    • 1 *.go files (42 LOC)
    • 1 *.avsc files (23 LOC)
    • 1 *.proto files (8 LOC)
    • 2 *.sh files (3 LOC)
  • " *.yaml" is biggest, containing 76.8% of LOC.
  • " *.sh" is smallest, containing 0.07% of LOC.


*.yaml3098 LOC (76%) 71 files
*.java402 LOC (9%) 3 files
*.xml172 LOC (4%) 2 files
*.feature162 LOC (4%) 3 files
*.groovy124 LOC (3%) 8 files
*.go42 LOC (1%) 1 file
*.avsc23 LOC (<1%) 1 file
*.proto8 LOC (<1%) 1 file
*.sh3 LOC (<1%) 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 ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
  • 10 files match defined criteria (891 LOC, 5.2% vs. main code):
    • 6 *.xml files (840 LOC)
    • 4 *.sh files (51 LOC)
  • " *.xml" is biggest, containing 94.28% of LOC.
  • " *.sh" is smallest, containing 5.72% of LOC.


*.xml840 LOC (94%) 6 files
*.sh51 LOC (5%) 4 files
Other Code
properties
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
  • 34 files match defined criteria (12,753 LOC, 74.0% vs. main code):
    • 6 *.json files (9,531 LOC)
    • 13 *.md files (2,797 LOC)
    • 11 *.properties files (249 LOC)
    • 3 *.mod files (160 LOC)
    • 1 *.txt files (16 LOC)
  • " *.json" is biggest, containing 74.74% of LOC.
  • " *.txt" is smallest, containing 0.13% of LOC.


*.json9531 LOC (74%) 6 files
*.md2797 LOC (21%) 13 files
*.properties249 LOC (1%) 11 files
*.mod160 LOC (1%) 3 files
*.txt16 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:22