apache / brooklyn-server
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
properties
xslt
pub
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.

main192203 LOC (52%) 1,663 files
test161200 LOC (44%) 1,323 files
generated0 LOC (0%) 0 files
build and deployment5521 LOC (1%) 40 files
other3910 LOC (1%) 73 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xslt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1663 files match defined criteria (192,203 LOC, 100.0% vs. main code):
    • 1,623 *.java files (190,728 LOC)
    • 25 *.xml files (651 LOC)
    • 3 *.ps1 files (316 LOC)
    • 5 *.html files (279 LOC)
    • 1 *.css files (126 LOC)
    • 1 *.js files (70 LOC)
    • 4 *.yaml files (23 LOC)
    • 1 *.xslt files (10 LOC)
  • " *.java" is biggest, containing 99.23% of LOC.
  • " *.xslt" is smallest, containing 0.01% of LOC.


*.java190728 LOC (99%) 1,623 files
*.xml651 LOC (<1%) 25 files
*.ps1316 LOC (<1%) 3 files
*.html279 LOC (<1%) 5 files
*.css126 LOC (<1%) 1 file
*.js70 LOC (<1%) 1 file
*.yaml23 LOC (<1%) 4 files
*.xslt10 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
xslt
pub
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
  • 1323 files match defined criteria (161,200 LOC, 83.9% vs. main code):
    • 1,196 *.java files (158,231 LOC)
    • 92 *.yaml files (1,620 LOC)
    • 4 *.xml files (823 LOC)
    • 4 *.groovy files (222 LOC)
    • 5 *.ps1 files (95 LOC)
    • 4 *.bat files (69 LOC)
    • 3 *.xslt files (42 LOC)
    • 2 *.sql files (40 LOC)
    • 2 *.ts files (23 LOC)
    • 3 *.sh files (13 LOC)
    • 3 *.js files (10 LOC)
    • 1 *.rb files (8 LOC)
    • 4 *.pub files (4 LOC)
  • " *.java" is biggest, containing 98.16% of LOC.
  • " *.pub" is smallest, containing 0% of LOC.


*.java158231 LOC (98%) 1,196 files
*.yaml1620 LOC (1%) 92 files
*.xml823 LOC (<1%) 4 files
*.groovy222 LOC (<1%) 4 files
*.ps195 LOC (<1%) 5 files
*.bat69 LOC (<1%) 4 files
*.xslt42 LOC (<1%) 3 files
*.sql40 LOC (<1%) 2 files
*.ts23 LOC (<1%) 2 files
*.sh13 LOC (<1%) 3 files
*.js10 LOC (<1%) 3 files
*.rb8 LOC (<1%) 1 file
*.pub4 LOC (<1%) 4 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 40 files match defined criteria (5,521 LOC, 2.9% vs. main code):
    • 37 *.xml files (5,454 LOC)
    • 3 *.sh files (67 LOC)
  • " *.xml" is biggest, containing 98.79% of LOC.
  • " *.sh" is smallest, containing 1.21% of LOC.


*.xml5454 LOC (98%) 37 files
*.sh67 LOC (1%) 3 files
Other Code
properties
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]adoc".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
  • 73 files match defined criteria (3,910 LOC, 2.0% vs. main code):
    • 9 *.properties files (1,774 LOC)
    • 2 *.svg files (934 LOC)
    • 31 *.json files (493 LOC)
    • 21 *.txt files (384 LOC)
    • 9 *.md files (247 LOC)
    • 1 *.adoc files (78 LOC)
  • " *.properties" is biggest, containing 45.37% of LOC.
  • " *.adoc" is smallest, containing 1.99% of LOC.


*.properties1774 LOC (45%) 9 files
*.svg934 LOC (23%) 2 files
*.json493 LOC (12%) 31 files
*.txt384 LOC (9%) 21 files
*.md247 LOC (6%) 9 files
*.adoc78 LOC (1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:57