apache / plc4x-extras
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
mod
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.

main9775 LOC (44%) 120 files
test2117 LOC (9%) 24 files
generated128 LOC (<1%) 1 file
build and deployment2368 LOC (10%) 17 files
other7660 LOC (34%) 126 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 ".*".
  • 120 files match defined criteria (9,775 LOC, 100.0% vs. main code):
    • 65 *.java files (5,076 LOC)
    • 34 *.go files (3,871 LOC)
    • 11 *.tsx files (610 LOC)
    • 4 *.ts files (89 LOC)
    • 2 *.css files (69 LOC)
    • 2 *.html files (31 LOC)
    • 2 *.xml files (29 LOC)
  • " *.java" is biggest, containing 51.93% of LOC.
  • " *.xml" is smallest, containing 0.3% of LOC.


*.java5076 LOC (51%) 65 files
*.go3871 LOC (39%) 34 files
*.tsx610 LOC (6%) 11 files
*.ts89 LOC (<1%) 4 files
*.css69 LOC (<1%) 2 files
*.html31 LOC (<1%) 2 files
*.xml29 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 ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 24 files match defined criteria (2,117 LOC, 21.7% vs. main code):
    • 19 *.java files (1,508 LOC)
    • 1 *.go files (549 LOC)
    • 4 *.xml files (60 LOC)
  • " *.java" is biggest, containing 71.23% of LOC.
  • " *.xml" is smallest, containing 2.83% of LOC.


*.java1508 LOC (71%) 19 files
*.go549 LOC (25%) 1 file
*.xml60 LOC (2%) 4 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/.*".
  • 1 file matches defined criteria (128 LOC, 1.3% vs. main code). All matches are in *.ts files.


*.ts128 LOC (100%) 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 ".*/package[.]json".
  • 17 files match defined criteria (2,368 LOC, 24.2% vs. main code). All matches are in *.xml files.


*.xml2368 LOC (100%) 17 files
Other Code
properties
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*[.]json".
  • 126 files match defined criteria (7,660 LOC, 78.4% vs. main code):
    • 48 *.java files (3,475 LOC)
    • 31 *.xml files (1,128 LOC)
    • 4 *.c files (972 LOC)
    • 11 *.go files (642 LOC)
    • 12 *.properties files (478 LOC)
    • 5 *.md files (420 LOC)
    • 7 *.txt files (265 LOC)
    • 4 *.json files (108 LOC)
    • 1 *.mod files (87 LOC)
    • 2 *.adoc files (46 LOC)
    • 1 *.kt files (39 LOC)
  • " *.java" is biggest, containing 45.37% of LOC.
  • " *.kt" is smallest, containing 0.51% of LOC.


*.java3475 LOC (45%) 48 files
*.xml1128 LOC (14%) 31 files
*.c972 LOC (12%) 4 files
*.go642 LOC (8%) 11 files
*.properties478 LOC (6%) 12 files
*.md420 LOC (5%) 5 files
*.txt265 LOC (3%) 7 files
*.json108 LOC (1%) 4 files
*.mod87 LOC (1%) 1 file
*.adoc46 LOC (<1%) 2 files
*.kt39 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:58