apache / camel-k
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
tpl
properties
mod
editorconfig
gitmodules
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.

main105285 LOC (67%) 769 files
test46791 LOC (29%) 407 files
generated202 LOC (<1%) 13 files
build and deployment1234 LOC (<1%) 30 files
other3082 LOC (1%) 46 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 769 files match defined criteria (105,285 LOC, 100.0% vs. main code):
    • 592 *.go files (53,646 LOC)
    • 171 *.yaml files (51,422 LOC)
    • 4 *.tpl files (134 LOC)
    • 2 *.xml files (83 LOC)
  • " *.go" is biggest, containing 50.95% of LOC.
  • " *.xml" is smallest, containing 0.08% of LOC.


*.go53646 LOC (50%) 592 files
*.yaml51422 LOC (48%) 171 files
*.tpl134 LOC (<1%) 4 files
*.xml83 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
  • 407 files match defined criteria (46,791 LOC, 44.4% vs. main code):
    • 275 *.go files (44,856 LOC)
    • 90 *.yaml files (1,367 LOC)
    • 36 *.java files (362 LOC)
    • 2 *.sh files (162 LOC)
    • 2 *.xml files (34 LOC)
    • 2 *.groovy files (10 LOC)
  • " *.go" is biggest, containing 95.86% of LOC.
  • " *.groovy" is smallest, containing 0.02% of LOC.


*.go44856 LOC (95%) 275 files
*.yaml1367 LOC (2%) 90 files
*.java362 LOC (<1%) 36 files
*.sh162 LOC (<1%) 2 files
*.xml34 LOC (<1%) 2 files
*.groovy10 LOC (<1%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_generated[.][a-z]+".
  • 13 files match defined criteria (202 LOC, 0.2% vs. main code). All matches are in *.go files.


*.go202 LOC (100%) 13 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".
  • 30 files match defined criteria (1,234 LOC, 1.2% vs. main code):
    • 29 *.sh files (1,172 LOC)
    • 1 *.xml files (62 LOC)
  • " *.sh" is biggest, containing 94.98% of LOC.
  • " *.xml" is smallest, containing 5.02% of LOC.


*.sh1172 LOC (94%) 29 files
*.xml62 LOC (5%) 1 file
Other Code
mod
txt
properties
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 ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]dockerignore".
  • 46 files match defined criteria (3,082 LOC, 2.9% vs. main code):
    • 3 *.svg files (1,827 LOC)
    • 5 *.adoc files (494 LOC)
    • 20 *.yaml files (244 LOC)
    • 3 *.md files (186 LOC)
    • 1 *.mod files (160 LOC)
    • 9 *.txt files (116 LOC)
    • 2 *.json files (48 LOC)
    • 3 *.properties files (7 LOC)
  • " *.svg" is biggest, containing 59.28% of LOC.
  • " *.properties" is smallest, containing 0.23% of LOC.


*.svg1827 LOC (59%) 3 files
*.adoc494 LOC (16%) 5 files
*.yaml244 LOC (7%) 20 files
*.md186 LOC (6%) 3 files
*.mod160 LOC (5%) 1 file
*.txt116 LOC (3%) 9 files
*.json48 LOC (1%) 2 files
*.properties7 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:40