apache / brooklyn-dist
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
cfg
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.

main603 LOC (12%) 17 files
test643 LOC (12%) 14 files
generated0 LOC (0%) 0 files
build and deployment3207 LOC (63%) 32 files
other560 LOC (11%) 16 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 ".*".
  • 17 files match defined criteria (603 LOC, 100.0% vs. main code):
    • 6 *.xml files (361 LOC)
    • 7 *.cfg files (102 LOC)
    • 2 *.java files (70 LOC)
    • 1 *.yaml files (62 LOC)
    • 1 *.rb files (8 LOC)
  • " *.xml" is biggest, containing 59.87% of LOC.
  • " *.rb" is smallest, containing 1.33% of LOC.


*.xml361 LOC (59%) 6 files
*.cfg102 LOC (16%) 7 files
*.java70 LOC (11%) 2 files
*.yaml62 LOC (10%) 1 file
*.rb8 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]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 14 files match defined criteria (643 LOC, 106.6% vs. main code):
    • 11 *.java files (549 LOC)
    • 2 *.yaml files (75 LOC)
    • 1 *.xml files (19 LOC)
  • " *.java" is biggest, containing 85.38% of LOC.
  • " *.xml" is smallest, containing 2.95% of LOC.


*.java549 LOC (85%) 11 files
*.yaml75 LOC (11%) 2 files
*.xml19 LOC (2%) 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 ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/[.]gitignore".
  • 32 files match defined criteria (3,207 LOC, 531.8% vs. main code):
    • 14 *.xml files (2,228 LOC)
    • 18 *.sh files (979 LOC)
  • " *.xml" is biggest, containing 69.47% of LOC.
  • " *.sh" is smallest, containing 30.53% of LOC.


*.xml2228 LOC (69%) 14 files
*.sh979 LOC (30%) 18 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 ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
  • 16 files match defined criteria (560 LOC, 92.9% vs. main code):
    • 6 *.properties files (333 LOC)
    • 8 *.md files (171 LOC)
    • 2 *.txt files (56 LOC)
  • " *.properties" is biggest, containing 59.46% of LOC.
  • " *.txt" is smallest, containing 10% of LOC.


*.properties333 LOC (59%) 6 files
*.md171 LOC (30%) 8 files
*.txt56 LOC (10%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 16:09