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

main1125 LOC (25%) 75 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment382 LOC (8%) 9 files
other2834 LOC (65%) 60 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 ".*".
  • 75 files match defined criteria (1,125 LOC, 100.0% vs. main code):
    • 35 *.yaml files (460 LOC)
    • 21 *.java files (277 LOC)
    • 3 *.tf files (225 LOC)
    • 9 *.xml files (135 LOC)
    • 2 *.groovy files (9 LOC)
    • 3 *.sql files (9 LOC)
    • 1 *.js files (5 LOC)
    • 1 *.kts files (5 LOC)
  • " *.yaml" is biggest, containing 40.89% of LOC.
  • " *.kts" is smallest, containing 0.44% of LOC.


*.yaml460 LOC (40%) 35 files
*.java277 LOC (24%) 21 files
*.tf225 LOC (20%) 3 files
*.xml135 LOC (12%) 9 files
*.groovy9 LOC (<1%) 2 files
*.sql9 LOC (<1%) 3 files
*.js5 LOC (<1%) 1 file
*.kts5 LOC (<1%) 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 ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pom[.]xml".
  • 9 files match defined criteria (382 LOC, 34.0% vs. main code):
    • 5 *.xml files (337 LOC)
    • 2 *.yml files (35 LOC)
    • 2 *.sh files (10 LOC)
  • " *.xml" is biggest, containing 88.22% of LOC.
  • " *.sh" is smallest, containing 2.62% of LOC.


*.xml337 LOC (88%) 5 files
*.yml35 LOC (9%) 2 files
*.sh10 LOC (2%) 2 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
  • 60 files match defined criteria (2,834 LOC, 251.9% vs. main code):
    • 37 *.adoc files (2,613 LOC)
    • 13 *.properties files (127 LOC)
    • 6 *.json files (63 LOC)
    • 2 *.md files (25 LOC)
    • 2 *.txt files (6 LOC)
  • " *.adoc" is biggest, containing 92.2% of LOC.
  • " *.txt" is smallest, containing 0.21% of LOC.


*.adoc2613 LOC (92%) 37 files
*.properties127 LOC (4%) 13 files
*.json63 LOC (2%) 6 files
*.md25 LOC (<1%) 2 files
*.txt6 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:23