apache / nifi
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
properties
asn
xsd
xsl
mjs
proto
cmd
editorconfig
eslintignore
jsonc
prettierignore
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.

main640980 LOC (62%) 7,501 files
test300667 LOC (29%) 2,483 files
generated12 LOC (<1%) 1 file
build and deployment38395 LOC (3%) 667 files
other48510 LOC (4%) 723 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 7501 files match defined criteria (640,980 LOC, 100.0% vs. main code):
    • 6,121 *.java files (531,395 LOC)
    • 703 *.ts files (71,824 LOC)
    • 250 *.html files (18,398 LOC)
    • 42 *.js files (6,926 LOC)
    • 269 *.scss files (5,620 LOC)
    • 43 *.xml files (2,167 LOC)
    • 16 *.py files (1,454 LOC)
    • 6 *.g files (898 LOC)
    • 21 *.sql files (535 LOC)
    • 10 *.xsd files (477 LOC)
    • 3 *.css files (416 LOC)
    • 2 *.mustache files (226 LOC)
    • 4 *.mjs files (180 LOC)
    • 4 *.avsc files (174 LOC)
    • 1 *.xlf files (121 LOC)
    • 2 *.jsp files (82 LOC)
    • 1 *.toml files (34 LOC)
    • 1 *.rdf files (31 LOC)
    • 2 *.yaml files (22 LOC)
  • " *.java" is biggest, containing 82.9% of LOC.
  • " *.yaml" is smallest, containing 0% of LOC.


*.java531395 LOC (82%) 6,121 files
*.ts71824 LOC (11%) 703 files
*.html18398 LOC (2%) 250 files
*.js6926 LOC (1%) 42 files
*.scss5620 LOC (<1%) 269 files
*.xml2167 LOC (<1%) 43 files
*.py1454 LOC (<1%) 16 files
*.g898 LOC (<1%) 6 files
*.sql535 LOC (<1%) 21 files
*.xsd477 LOC (<1%) 10 files
*.css416 LOC (<1%) 3 files
*.mustache226 LOC (<1%) 2 files
*.mjs180 LOC (<1%) 4 files
*.avsc174 LOC (<1%) 4 files
*.xlf121 LOC (<1%) 1 file
*.jsp82 LOC (<1%) 2 files
*.toml34 LOC (<1%) 1 file
*.rdf31 LOC (<1%) 1 file
*.yaml22 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
asn
xsl
proto
jsonc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/[Tt]ests/.*".
  • 2483 files match defined criteria (300,667 LOC, 46.9% vs. main code):
    • 1,813 *.java files (259,113 LOC)
    • 261 *.ts files (16,305 LOC)
    • 158 *.xml files (12,083 LOC)
    • 25 *.js files (8,056 LOC)
    • 85 *.avsc files (2,184 LOC)
    • 48 *.groovy files (944 LOC)
    • 32 *.py files (706 LOC)
    • 16 *.asn files (282 LOC)
    • 5 *.sql files (277 LOC)
    • 20 *.yaml files (227 LOC)
    • 7 *.xsl files (187 LOC)
    • 4 *.proto files (150 LOC)
    • 3 *.clj files (48 LOC)
    • 2 *.html files (45 LOC)
    • 1 *.jsonc files (24 LOC)
    • 1 *.cpp files (15 LOC)
    • 1 *.sh files (11 LOC)
    • 1 *.xhtml files (10 LOC)
  • " *.java" is biggest, containing 86.18% of LOC.
  • " *.xhtml" is smallest, containing 0% of LOC.


*.java259113 LOC (86%) 1,813 files
*.ts16305 LOC (5%) 261 files
*.xml12083 LOC (4%) 158 files
*.js8056 LOC (2%) 25 files
*.avsc2184 LOC (<1%) 85 files
*.groovy944 LOC (<1%) 48 files
*.py706 LOC (<1%) 32 files
*.asn282 LOC (<1%) 16 files
*.sql277 LOC (<1%) 5 files
*.yaml227 LOC (<1%) 20 files
*.xsl187 LOC (<1%) 7 files
*.proto150 LOC (<1%) 4 files
*.clj48 LOC (<1%) 3 files
*.html45 LOC (<1%) 2 files
*.jsonc24 LOC (<1%) 1 file
*.cpp15 LOC (<1%) 1 file
*.sh11 LOC (<1%) 1 file
*.xhtml10 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 ".*[.]h" AND any line of content like ".* DO NOT EDIT THIS FILE [-] it is machine generated .*".
  • 1 file matches defined criteria (12 LOC, 0.0% vs. main code). All matches are in *.h files.


*.h12 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 ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 667 files match defined criteria (38,395 LOC, 6.0% vs. main code):
    • 633 *.xml files (37,364 LOC)
    • 28 *.sh files (623 LOC)
    • 6 *.js files (408 LOC)
  • " *.xml" is biggest, containing 97.31% of LOC.
  • " *.js" is smallest, containing 1.06% of LOC.


*.xml37364 LOC (97%) 633 files
*.sh623 LOC (1%) 28 files
*.js408 LOC (1%) 6 files
Other Code
txt
properties
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/asciidoc/.*".
    • files with paths like ".*/[.]eslintignore".
  • 723 files match defined criteria (48,510 LOC, 7.6% vs. main code):
    • 363 *.json files (16,760 LOC)
    • 12 *.adoc files (12,671 LOC)
    • 104 *.txt files (6,838 LOC)
    • 83 *.properties files (5,072 LOC)
    • 83 *.ts files (2,777 LOC)
    • 25 *.md files (2,360 LOC)
    • 20 *.html files (968 LOC)
    • 2 *.css files (794 LOC)
    • 21 *.scss files (101 LOC)
    • 2 *.xml files (84 LOC)
    • 5 *.java files (47 LOC)
    • 2 *.xsd files (23 LOC)
    • 1 *.svg files (15 LOC)
  • " *.json" is biggest, containing 34.55% of LOC.
  • " *.svg" is smallest, containing 0.03% of LOC.


*.json16760 LOC (34%) 363 files
*.adoc12671 LOC (26%) 12 files
*.txt6838 LOC (14%) 104 files
*.properties5072 LOC (10%) 83 files
*.ts2777 LOC (5%) 83 files
*.md2360 LOC (4%) 25 files
*.html968 LOC (1%) 20 files
*.css794 LOC (1%) 2 files
*.scss101 LOC (<1%) 21 files
*.xml84 LOC (<1%) 2 files
*.java47 LOC (<1%) 5 files
*.xsd23 LOC (<1%) 2 files
*.svg15 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:47