apache / storm
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
fy
gitattributes
ini
cfg
xslt
po
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.

main129301 LOC (50%) 1,425 files
test37371 LOC (14%) 282 files
generated66877 LOC (26%) 108 files
build and deployment5673 LOC (2%) 48 files
other16981 LOC (6%) 236 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 ".*".
  • 1425 files match defined criteria (129,301 LOC, 100.0% vs. main code):
    • 1,306 *.java files (106,452 LOC)
    • 25 *.html files (8,642 LOC)
    • 12 *.c files (6,680 LOC)
    • 24 *.py files (2,498 LOC)
    • 7 *.js files (1,299 LOC)
    • 14 *.xml files (822 LOC)
    • 1 *.thrift files (744 LOC)
    • 11 *.yaml files (646 LOC)
    • 5 *.clj files (523 LOC)
    • 12 *.h files (370 LOC)
    • 3 *.rb files (233 LOC)
    • 1 *.css files (206 LOC)
    • 2 *.ftl files (125 LOC)
    • 1 *.rdf files (41 LOC)
    • 1 *.ps1 files (20 LOC)
  • " *.java" is biggest, containing 82.33% of LOC.
  • " *.ps1" is smallest, containing 0.02% of LOC.


*.java106452 LOC (82%) 1,306 files
*.html8642 LOC (6%) 25 files
*.c6680 LOC (5%) 12 files
*.py2498 LOC (1%) 24 files
*.js1299 LOC (1%) 7 files
*.xml822 LOC (<1%) 14 files
*.thrift744 LOC (<1%) 1 file
*.yaml646 LOC (<1%) 11 files
*.clj523 LOC (<1%) 5 files
*.h370 LOC (<1%) 12 files
*.rb233 LOC (<1%) 3 files
*.css206 LOC (<1%) 1 file
*.ftl125 LOC (<1%) 2 files
*.rdf41 LOC (<1%) 1 file
*.ps120 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
fy
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
  • 282 files match defined criteria (37,371 LOC, 28.9% vs. main code):
    • 234 *.java files (31,088 LOC)
    • 17 *.clj files (4,679 LOC)
    • 20 *.yaml files (609 LOC)
    • 2 *.py files (459 LOC)
    • 1 *.c files (275 LOC)
    • 3 *.fy files (183 LOC)
    • 5 *.xml files (78 LOC)
  • " *.java" is biggest, containing 83.19% of LOC.
  • " *.xml" is smallest, containing 0.21% of LOC.


*.java31088 LOC (83%) 234 files
*.clj4679 LOC (12%) 17 files
*.yaml609 LOC (1%) 20 files
*.py459 LOC (1%) 2 files
*.c275 LOC (<1%) 1 file
*.fy183 LOC (<1%) 3 files
*.xml78 LOC (<1%) 5 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/.*".
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 108 files match defined criteria (66,877 LOC, 51.7% vs. main code):
    • 107 *.java files (66,739 LOC)
    • 1 *.html files (138 LOC)
  • " *.java" is biggest, containing 99.79% of LOC.
  • " *.html" is smallest, containing 0.21% of LOC.


*.java66739 LOC (99%) 107 files
*.html138 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 48 files match defined criteria (5,673 LOC, 4.4% vs. main code):
    • 36 *.xml files (5,427 LOC)
    • 12 *.sh files (246 LOC)
  • " *.xml" is biggest, containing 95.66% of LOC.
  • " *.sh" is smallest, containing 4.34% of LOC.


*.xml5427 LOC (95%) 36 files
*.sh246 LOC (4%) 12 files
Other Code
txt
properties
ini
xslt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]markdown".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
  • 236 files match defined criteria (16,981 LOC, 13.1% vs. main code):
    • 168 *.java files (12,551 LOC)
    • 11 *.md files (1,880 LOC)
    • 17 *.txt files (882 LOC)
    • 9 *.xml files (852 LOC)
    • 5 *.clj files (263 LOC)
    • 8 *.properties files (182 LOC)
    • 5 *.markdown files (176 LOC)
    • 3 *.js files (98 LOC)
    • 6 *.yaml files (34 LOC)
    • 1 *.ini files (25 LOC)
    • 1 *.xslt files (22 LOC)
    • 1 *.rb files (9 LOC)
    • 1 *.py files (7 LOC)
  • " *.java" is biggest, containing 73.91% of LOC.
  • " *.py" is smallest, containing 0.04% of LOC.


*.java12551 LOC (73%) 168 files
*.md1880 LOC (11%) 11 files
*.txt882 LOC (5%) 17 files
*.xml852 LOC (5%) 9 files
*.clj263 LOC (1%) 5 files
*.properties182 LOC (1%) 8 files
*.markdown176 LOC (1%) 5 files
*.js98 LOC (<1%) 3 files
*.yaml34 LOC (<1%) 6 files
*.ini25 LOC (<1%) 1 file
*.xslt22 LOC (<1%) 1 file
*.rb9 LOC (<1%) 1 file
*.py7 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:37