apache / plc4x
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
mspec
txt
xsl
csproj
properties
mod
hbs
xsd
pb
htaccess
patch
editorconfig
clang-format
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.

main1128359 LOC (60%) 6,056 files
test169715 LOC (9%) 937 files
generated538960 LOC (28%) 3,753 files
build and deployment10951 LOC (<1%) 101 files
other25119 LOC (1%) 183 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mspec
xsl
hbs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 6056 files match defined criteria (1,128,359 LOC, 100.0% vs. main code):
    • 4,234 *.go files (921,530 LOC)
    • 1,059 *.java files (92,115 LOC)
    • 247 *.cs files (28,936 LOC)
    • 45 *.mspec files (26,308 LOC)
    • 119 *.c files (21,011 LOC)
    • 30 *.xml files (15,696 LOC)
    • 176 *.py files (13,337 LOC)
    • 113 *.h files (3,930 LOC)
    • 12 *.xsl files (2,372 LOC)
    • 3 *.css files (1,055 LOC)
    • 10 *.groovy files (973 LOC)
    • 2 *.g4 files (391 LOC)
    • 1 *.html files (367 LOC)
    • 2 *.rdf files (229 LOC)
    • 1 *.toml files (87 LOC)
    • 2 *.hbs files (22 LOC)
  • " *.go" is biggest, containing 81.67% of LOC.
  • " *.hbs" is smallest, containing 0% of LOC.


*.go921530 LOC (81%) 4,234 files
*.java92115 LOC (8%) 1,059 files
*.cs28936 LOC (2%) 247 files
*.mspec26308 LOC (2%) 45 files
*.c21011 LOC (1%) 119 files
*.xml15696 LOC (1%) 30 files
*.py13337 LOC (1%) 176 files
*.h3930 LOC (<1%) 113 files
*.xsl2372 LOC (<1%) 12 files
*.css1055 LOC (<1%) 3 files
*.groovy973 LOC (<1%) 10 files
*.g4391 LOC (<1%) 2 files
*.html367 LOC (<1%) 1 file
*.rdf229 LOC (<1%) 2 files
*.toml87 LOC (<1%) 1 file
*.hbs22 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
mspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/tests_.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/testing[.].*".
  • 937 files match defined criteria (169,715 LOC, 15.0% vs. main code):
    • 467 *.go files (108,482 LOC)
    • 89 *.xml files (30,389 LOC)
    • 335 *.java files (27,005 LOC)
    • 9 *.c files (1,927 LOC)
    • 31 *.py files (1,093 LOC)
    • 1 *.mspec files (501 LOC)
    • 3 *.groovy files (271 LOC)
    • 1 *.cs files (34 LOC)
    • 1 *.h files (13 LOC)
  • " *.go" is biggest, containing 63.92% of LOC.
  • " *.h" is smallest, containing 0.01% of LOC.


*.go108482 LOC (63%) 467 files
*.xml30389 LOC (17%) 89 files
*.java27005 LOC (15%) 335 files
*.c1927 LOC (1%) 9 files
*.py1093 LOC (<1%) 31 files
*.mspec501 LOC (<1%) 1 file
*.groovy271 LOC (<1%) 3 files
*.cs34 LOC (<1%) 1 file
*.h13 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
mspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
    • files with paths like ".*/package[-]lock[.]json".
  • 3753 files match defined criteria (538,960 LOC, 47.8% vs. main code):
    • 3,740 *.java files (526,295 LOC)
    • 9 *.mspec files (10,094 LOC)
    • 1 *.json files (2,027 LOC)
    • 3 *.py files (544 LOC)
  • " *.java" is biggest, containing 97.65% of LOC.
  • " *.py" is smallest, containing 0.1% of LOC.


*.java526295 LOC (97%) 3,740 files
*.mspec10094 LOC (1%) 9 files
*.json2027 LOC (<1%) 1 file
*.py544 LOC (<1%) 3 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
csproj
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 101 files match defined criteria (10,951 LOC, 1.0% vs. main code):
    • 87 *.xml files (10,531 LOC)
    • 8 *.sh files (315 LOC)
    • 4 *.csproj files (83 LOC)
    • 2 *.yaml files (22 LOC)
  • " *.xml" is biggest, containing 96.16% of LOC.
  • " *.yaml" is smallest, containing 0.2% of LOC.


*.xml10531 LOC (96%) 87 files
*.sh315 LOC (2%) 8 files
*.csproj83 LOC (<1%) 4 files
*.yaml22 LOC (<1%) 2 files
Other Code
txt
xsd
mod
patch
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 ".*/go[.]mod".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/asciidoc/.*".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]pb".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/[Ee]xamples/.*".
  • 183 files match defined criteria (25,119 LOC, 2.2% vs. main code):
    • 137 *.adoc files (11,481 LOC)
    • 18 *.txt files (4,816 LOC)
    • 12 *.md files (4,093 LOC)
    • 3 *.json files (2,055 LOC)
    • 5 *.svg files (1,953 LOC)
    • 2 *.java files (304 LOC)
    • 2 *.xsd files (170 LOC)
    • 2 *.mod files (118 LOC)
    • 1 *.patch files (74 LOC)
    • 1 *.properties files (55 LOC)
  • " *.adoc" is biggest, containing 45.71% of LOC.
  • " *.properties" is smallest, containing 0.22% of LOC.


*.adoc11481 LOC (45%) 137 files
*.txt4816 LOC (19%) 18 files
*.md4093 LOC (16%) 12 files
*.json2055 LOC (8%) 3 files
*.svg1953 LOC (7%) 5 files
*.java304 LOC (1%) 2 files
*.xsd170 LOC (<1%) 2 files
*.mod118 LOC (<1%) 2 files
*.patch74 LOC (<1%) 1 file
*.properties55 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:35