apache / tez
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
hbs
properties
proto
jshintrc
eps
txt
watchmanconfig
editorconfig
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.

main123890 LOC (53%) 1,228 files
test92910 LOC (40%) 495 files
generated0 LOC (0%) 0 files
build and deployment5383 LOC (2%) 32 files
other7369 LOC (3%) 61 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
hbs
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1228 files match defined criteria (123,890 LOC, 100.0% vs. main code):
    • 863 *.java files (107,413 LOC)
    • 217 *.js files (8,762 LOC)
    • 74 *.hbs files (3,375 LOC)
    • 32 *.less files (1,781 LOC)
    • 10 *.proto files (868 LOC)
    • 26 *.xml files (850 LOC)
    • 4 *.py files (617 LOC)
    • 1 *.rdf files (202 LOC)
    • 1 *.html files (22 LOC)
  • " *.java" is biggest, containing 86.7% of LOC.
  • " *.html" is smallest, containing 0.02% of LOC.


*.java107413 LOC (86%) 863 files
*.js8762 LOC (7%) 217 files
*.hbs3375 LOC (2%) 74 files
*.less1781 LOC (1%) 32 files
*.proto868 LOC (<1%) 10 files
*.xml850 LOC (<1%) 26 files
*.py617 LOC (<1%) 4 files
*.rdf202 LOC (<1%) 1 file
*.html22 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 495 files match defined criteria (92,910 LOC, 75.0% vs. main code):
    • 274 *.java files (84,225 LOC)
    • 213 *.js files (8,171 LOC)
    • 6 *.xml files (413 LOC)
    • 1 *.proto files (72 LOC)
    • 1 *.html files (29 LOC)
  • " *.java" is biggest, containing 90.65% of LOC.
  • " *.html" is smallest, containing 0.03% of LOC.


*.java84225 LOC (90%) 274 files
*.js8171 LOC (8%) 213 files
*.xml413 LOC (<1%) 6 files
*.proto72 LOC (<1%) 1 file
*.html29 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
  • 32 files match defined criteria (5,383 LOC, 4.3% vs. main code):
    • 28 *.xml files (4,589 LOC)
    • 4 *.sh files (794 LOC)
  • " *.xml" is biggest, containing 85.25% of LOC.
  • " *.sh" is smallest, containing 14.75% of LOC.


*.xml4589 LOC (85%) 28 files
*.sh794 LOC (14%) 4 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
  • 61 files match defined criteria (7,369 LOC, 5.9% vs. main code):
    • 31 *.java files (6,135 LOC)
    • 7 *.md files (516 LOC)
    • 15 *.properties files (294 LOC)
    • 4 *.json files (189 LOC)
    • 2 *.txt files (151 LOC)
    • 2 *.xml files (84 LOC)
  • " *.java" is biggest, containing 83.25% of LOC.
  • " *.xml" is smallest, containing 1.14% of LOC.


*.java6135 LOC (83%) 31 files
*.md516 LOC (7%) 7 files
*.properties294 LOC (3%) 15 files
*.json189 LOC (2%) 4 files
*.txt151 LOC (2%) 2 files
*.xml84 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:31