apache / camel-k-runtime
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
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.

main4934 LOC (29%) 103 files
test1712 LOC (10%) 71 files
generated246 LOC (1%) 4 files
build and deployment5762 LOC (34%) 68 files
other4014 LOC (24%) 87 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 ".*".
  • 103 files match defined criteria (4,934 LOC, 100.0% vs. main code):
    • 91 *.java files (4,368 LOC)
    • 5 *.xml files (195 LOC)
    • 5 *.groovy files (151 LOC)
    • 1 *.yaml files (111 LOC)
    • 1 *.adoc files (109 LOC)
  • " *.java" is biggest, containing 88.53% of LOC.
  • " *.adoc" is smallest, containing 2.21% of LOC.


*.java4368 LOC (88%) 91 files
*.xml195 LOC (3%) 5 files
*.groovy151 LOC (3%) 5 files
*.yaml111 LOC (2%) 1 file
*.adoc109 LOC (2%) 1 file
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 ".*/[Tt]est/.*".
  • 71 files match defined criteria (1,712 LOC, 34.7% vs. main code):
    • 52 *.java files (1,539 LOC)
    • 9 *.yaml files (87 LOC)
    • 7 *.xml files (77 LOC)
    • 1 *.groovy files (3 LOC)
    • 1 *.js files (3 LOC)
    • 1 *.kts files (3 LOC)
  • " *.java" is biggest, containing 89.89% of LOC.
  • " *.kts" is smallest, containing 0.18% of LOC.


*.java1539 LOC (89%) 52 files
*.yaml87 LOC (5%) 9 files
*.xml77 LOC (4%) 7 files
*.groovy3 LOC (<1%) 1 file
*.js3 LOC (<1%) 1 file
*.kts3 LOC (<1%) 1 file
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/.*".
  • 4 files match defined criteria (246 LOC, 5.0% vs. main code). All matches are in *.java files.


*.java246 LOC (100%) 4 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 ".*/package[.]json".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*[.]sh".
  • 68 files match defined criteria (5,762 LOC, 116.8% vs. main code):
    • 63 *.xml files (5,563 LOC)
    • 5 *.sh files (199 LOC)
  • " *.xml" is biggest, containing 96.55% of LOC.
  • " *.sh" is smallest, containing 3.45% of LOC.


*.xml5563 LOC (96%) 63 files
*.sh199 LOC (3%) 5 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
  • 87 files match defined criteria (4,014 LOC, 81.4% vs. main code):
    • 13 *.xml files (1,313 LOC)
    • 4 *.md files (1,280 LOC)
    • 51 *.properties files (1,217 LOC)
    • 7 *.yaml files (85 LOC)
    • 2 *.json files (64 LOC)
    • 4 *.txt files (19 LOC)
    • 2 *.java files (17 LOC)
    • 1 *.adoc files (12 LOC)
    • 1 *.kts files (3 LOC)
    • 1 *.groovy files (2 LOC)
    • 1 *.js files (2 LOC)
  • " *.xml" is biggest, containing 32.71% of LOC.
  • " *.js" is smallest, containing 0.05% of LOC.


*.xml1313 LOC (32%) 13 files
*.md1280 LOC (31%) 4 files
*.properties1217 LOC (30%) 51 files
*.yaml85 LOC (2%) 7 files
*.json64 LOC (1%) 2 files
*.txt19 LOC (<1%) 4 files
*.java17 LOC (<1%) 2 files
*.adoc12 LOC (<1%) 1 file
*.kts3 LOC (<1%) 1 file
*.groovy2 LOC (<1%) 1 file
*.js2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:08