apache / hop
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
xsd
snippet
xsl
cmd
rest
tpl
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.

main626075 LOC (60%) 3,515 files
test99779 LOC (9%) 1,061 files
generated0 LOC (0%) 0 files
build and deployment23184 LOC (2%) 600 files
other288357 LOC (27%) 7,344 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 3515 files match defined criteria (626,075 LOC, 100.0% vs. main code):
    • 3,189 *.java files (613,714 LOC)
    • 303 *.xml files (7,246 LOC)
    • 3 *.css files (4,237 LOC)
    • 3 *.js files (368 LOC)
    • 9 *.yaml files (321 LOC)
    • 1 *.tpl files (142 LOC)
    • 6 *.html files (46 LOC)
    • 1 *.jsp files (1 LOC)
  • " *.java" is biggest, containing 98.03% of LOC.
  • " *.jsp" is smallest, containing 0% of LOC.


*.java613714 LOC (98%) 3,189 files
*.xml7246 LOC (1%) 303 files
*.css4237 LOC (<1%) 3 files
*.js368 LOC (<1%) 3 files
*.yaml321 LOC (<1%) 9 files
*.tpl142 LOC (<1%) 1 file
*.html46 LOC (<1%) 6 files
*.jsp1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snippet
xsl
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 1061 files match defined criteria (99,779 LOC, 15.9% vs. main code):
    • 894 *.java files (94,363 LOC)
    • 123 *.xml files (4,183 LOC)
    • 21 *.yaml files (670 LOC)
    • 10 *.sh files (299 LOC)
    • 4 *.snippet files (142 LOC)
    • 5 *.sql files (68 LOC)
    • 2 *.xsl files (29 LOC)
    • 1 *.xsd files (15 LOC)
    • 1 *.html files (10 LOC)
  • " *.java" is biggest, containing 94.57% of LOC.
  • " *.html" is smallest, containing 0.01% of LOC.


*.java94363 LOC (94%) 894 files
*.xml4183 LOC (4%) 123 files
*.yaml670 LOC (<1%) 21 files
*.sh299 LOC (<1%) 10 files
*.snippet142 LOC (<1%) 4 files
*.sql68 LOC (<1%) 5 files
*.xsl29 LOC (<1%) 2 files
*.xsd15 LOC (<1%) 1 file
*.html10 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 ".*[.]sh".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]bat".
  • 600 files match defined criteria (23,184 LOC, 3.7% vs. main code):
    • 578 *.xml files (21,822 LOC)
    • 15 *.sh files (746 LOC)
    • 7 *.bat files (616 LOC)
  • " *.xml" is biggest, containing 94.13% of LOC.
  • " *.bat" is smallest, containing 2.66% of LOC.


*.xml21822 LOC (94%) 578 files
*.sh746 LOC (3%) 15 files
*.bat616 LOC (2%) 7 files
Other Code
properties
xsd
txt
rest
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/[.]dockerignore".
  • 7344 files match defined criteria (288,357 LOC, 46.1% vs. main code):
    • 6,095 *.properties files (226,887 LOC)
    • 645 *.json files (35,832 LOC)
    • 542 *.svg files (15,777 LOC)
    • 6 *.xsd files (6,572 LOC)
    • 49 *.txt files (2,918 LOC)
    • 5 *.md files (304 LOC)
    • 1 *.rest files (56 LOC)
    • 1 *.xml files (11 LOC)
  • " *.properties" is biggest, containing 78.68% of LOC.
  • " *.xml" is smallest, containing 0% of LOC.


*.properties226887 LOC (78%) 6,095 files
*.json35832 LOC (12%) 645 files
*.svg15777 LOC (5%) 542 files
*.xsd6572 LOC (2%) 6 files
*.txt2918 LOC (1%) 49 files
*.md304 LOC (<1%) 5 files
*.rest56 LOC (<1%) 1 file
*.xml11 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:00