apache / brooklyn-ui
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
babelrc
cfg
properties
gitattributes
txt
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.

main35992 LOC (70%) 500 files
test2670 LOC (5%) 58 files
generated3585 LOC (7%) 1 file
build and deployment2743 LOC (5%) 34 files
other5874 LOC (11%) 34 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 500 files match defined criteria (35,992 LOC, 100.0% vs. main code):
    • 196 *.js files (19,810 LOC)
    • 120 *.less files (7,779 LOC)
    • 123 *.html files (5,978 LOC)
    • 19 *.java files (1,352 LOC)
    • 15 *.xml files (611 LOC)
    • 19 *.yaml files (438 LOC)
    • 8 *.cfg files (24 LOC)
  • " *.js" is biggest, containing 55.04% of LOC.
  • " *.cfg" is smallest, containing 0.07% of LOC.


*.js19810 LOC (55%) 196 files
*.less7779 LOC (21%) 120 files
*.html5978 LOC (16%) 123 files
*.java1352 LOC (3%) 19 files
*.xml611 LOC (1%) 15 files
*.yaml438 LOC (1%) 19 files
*.cfg24 LOC (<1%) 8 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/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/test[.].*".
  • 58 files match defined criteria (2,670 LOC, 7.4% vs. main code):
    • 54 *.js files (2,494 LOC)
    • 3 *.java files (168 LOC)
    • 1 *.yaml files (8 LOC)
  • " *.js" is biggest, containing 93.41% of LOC.
  • " *.yaml" is smallest, containing 0.3% of LOC.


*.js2494 LOC (93%) 54 files
*.java168 LOC (6%) 3 files
*.yaml8 LOC (<1%) 1 file
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 ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (3,585 LOC, 10.0% vs. main code). All matches are in *.json files.


*.json3585 LOC (100%) 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 34 files match defined criteria (2,743 LOC, 7.6% vs. main code):
    • 22 *.xml files (2,510 LOC)
    • 12 *.js files (233 LOC)
  • " *.xml" is biggest, containing 91.51% of LOC.
  • " *.js" is smallest, containing 8.49% of LOC.


*.xml2510 LOC (91%) 22 files
*.js233 LOC (8%) 12 files
Other Code
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
  • 34 files match defined criteria (5,874 LOC, 16.3% vs. main code):
    • 21 *.json files (5,238 LOC)
    • 8 *.md files (496 LOC)
    • 3 *.properties files (83 LOC)
    • 2 *.svg files (57 LOC)
  • " *.json" is biggest, containing 89.17% of LOC.
  • " *.svg" is smallest, containing 0.97% of LOC.


*.json5238 LOC (89%) 21 files
*.md496 LOC (8%) 8 files
*.properties83 LOC (1%) 3 files
*.svg57 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:56