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
npmrc
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.

main35413 LOC (82%) 498 files
test2662 LOC (6%) 58 files
generated0 LOC (0%) 0 files
build and deployment2741 LOC (6%) 34 files
other2288 LOC (5%) 33 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 ".*".
  • 498 files match defined criteria (35,413 LOC, 100.0% vs. main code):
    • 195 *.js files (19,456 LOC)
    • 120 *.less files (7,703 LOC)
    • 122 *.html files (5,889 LOC)
    • 19 *.java files (1,292 LOC)
    • 15 *.xml files (611 LOC)
    • 19 *.yaml files (438 LOC)
    • 8 *.cfg files (24 LOC)
  • " *.js" is biggest, containing 54.94% of LOC.
  • " *.cfg" is smallest, containing 0.07% of LOC.


*.js19456 LOC (54%) 195 files
*.less7703 LOC (21%) 120 files
*.html5889 LOC (16%) 122 files
*.java1292 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 ".*[.]spec[.]js".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 58 files match defined criteria (2,662 LOC, 7.5% vs. main code):
    • 54 *.js files (2,486 LOC)
    • 3 *.java files (168 LOC)
    • 1 *.yaml files (8 LOC)
  • " *.js" is biggest, containing 93.39% of LOC.
  • " *.yaml" is smallest, containing 0.3% of LOC.


*.js2486 LOC (93%) 54 files
*.java168 LOC (6%) 3 files
*.yaml8 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 ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 34 files match defined criteria (2,741 LOC, 7.7% vs. main code):
    • 22 *.xml files (2,510 LOC)
    • 12 *.js files (231 LOC)
  • " *.xml" is biggest, containing 91.57% of LOC.
  • " *.js" is smallest, containing 8.43% of LOC.


*.xml2510 LOC (91%) 22 files
*.js231 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 ".*[.]npmrc".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
  • 33 files match defined criteria (2,288 LOC, 6.5% vs. main code):
    • 20 *.json files (1,653 LOC)
    • 8 *.md files (496 LOC)
    • 3 *.properties files (82 LOC)
    • 2 *.svg files (57 LOC)
  • " *.json" is biggest, containing 72.25% of LOC.
  • " *.svg" is smallest, containing 2.49% of LOC.


*.json1653 LOC (72%) 20 files
*.md496 LOC (21%) 8 files
*.properties82 LOC (3%) 3 files
*.svg57 LOC (2%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 16:09