apache / brooklyn-docs
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
gitattributes
asc
properties
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.

main5222 LOC (19%) 108 files
test220 LOC (<1%) 13 files
generated0 LOC (0%) 0 files
build and deployment392 LOC (1%) 7 files
other21271 LOC (78%) 275 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
asc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 108 files match defined criteria (5,222 LOC, 100.0% vs. main code):
    • 43 *.yaml files (1,181 LOC)
    • 12 *.rb files (978 LOC)
    • 3 *.js files (920 LOC)
    • 15 *.scss files (867 LOC)
    • 21 *.html files (797 LOC)
    • 4 *.css files (256 LOC)
    • 8 *.java files (197 LOC)
    • 1 *.asc files (20 LOC)
    • 1 *.xml files (6 LOC)
  • " *.yaml" is biggest, containing 22.62% of LOC.
  • " *.xml" is smallest, containing 0.11% of LOC.


*.yaml1181 LOC (22%) 43 files
*.rb978 LOC (18%) 12 files
*.js920 LOC (17%) 3 files
*.scss867 LOC (16%) 15 files
*.html797 LOC (15%) 21 files
*.css256 LOC (4%) 4 files
*.java197 LOC (3%) 8 files
*.asc20 LOC (<1%) 1 file
*.xml6 LOC (<1%) 1 file
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]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 13 files match defined criteria (220 LOC, 4.2% vs. main code):
    • 12 *.yaml files (219 LOC)
    • 1 *.sh files (1 LOC)
  • " *.yaml" is biggest, containing 99.55% of LOC.
  • " *.sh" is smallest, containing 0.45% of LOC.


*.yaml219 LOC (99%) 12 files
*.sh1 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 7 files match defined criteria (392 LOC, 7.5% vs. main code). All matches are in *.sh files.


*.sh392 LOC (100%) 7 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • 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 ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]ocumentation/.*".
  • 275 files match defined criteria (21,271 LOC, 407.3% vs. main code):
    • 264 *.md files (20,835 LOC)
    • 1 *.properties files (256 LOC)
    • 3 *.yaml files (115 LOC)
    • 5 *.json files (43 LOC)
    • 2 *.txt files (22 LOC)
  • " *.md" is biggest, containing 97.95% of LOC.
  • " *.txt" is smallest, containing 0.1% of LOC.


*.md20835 LOC (97%) 264 files
*.properties256 LOC (1%) 1 file
*.yaml115 LOC (<1%) 3 files
*.json43 LOC (<1%) 5 files
*.txt22 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:56