apache / ambari-infra
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
gitattributes
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.

main9864 LOC (60%) 160 files
test2236 LOC (13%) 32 files
generated0 LOC (0%) 0 files
build and deployment2983 LOC (18%) 21 files
other1275 LOC (7%) 10 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 ".*".
  • 160 files match defined criteria (9,864 LOC, 100.0% vs. main code):
    • 152 *.java files (6,672 LOC)
    • 3 *.py files (3,003 LOC)
    • 3 *.xml files (127 LOC)
    • 2 *.html files (62 LOC)
  • " *.java" is biggest, containing 67.64% of LOC.
  • " *.html" is smallest, containing 0.63% of LOC.


*.java6672 LOC (67%) 152 files
*.py3003 LOC (30%) 3 files
*.xml127 LOC (1%) 3 files
*.html62 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
  • 32 files match defined criteria (2,236 LOC, 22.7% vs. main code):
    • 30 *.java files (2,205 LOC)
    • 2 *.xml files (31 LOC)
  • " *.java" is biggest, containing 98.61% of LOC.
  • " *.xml" is smallest, containing 1.39% of LOC.


*.java2205 LOC (98%) 30 files
*.xml31 LOC (1%) 2 files
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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*/[.]gitattributes".
  • 21 files match defined criteria (2,983 LOC, 30.2% vs. main code):
    • 9 *.xml files (1,996 LOC)
    • 12 *.sh files (987 LOC)
  • " *.xml" is biggest, containing 66.91% of LOC.
  • " *.sh" is smallest, containing 33.09% of LOC.


*.xml1996 LOC (66%) 9 files
*.sh987 LOC (33%) 12 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 ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
  • 10 files match defined criteria (1,275 LOC, 12.9% vs. main code):
    • 3 *.md files (940 LOC)
    • 4 *.properties files (200 LOC)
    • 2 *.json files (132 LOC)
    • 1 *.txt files (3 LOC)
  • " *.md" is biggest, containing 73.73% of LOC.
  • " *.txt" is smallest, containing 0.24% of LOC.


*.md940 LOC (73%) 3 files
*.properties200 LOC (15%) 4 files
*.json132 LOC (10%) 2 files
*.txt3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:40