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.

main187733 LOC (52%) 1,647 files
test158610 LOC (44%) 1,316 files
generated0 LOC (0%) 0 files
build and deployment5518 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 ".*".
  • 1647 files match defined criteria (187,733 LOC, 100.0% vs. main code):
    • 1,607 *.java files (186,263 LOC)
    • 25 *.xml files (646 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.22% of LOC.
  • " *.xslt" is smallest, containing 0.01% of LOC.


*.java186263 LOC (99%) 1,607 files
*.xml646 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[-].*".
  • 1316 files match defined criteria (158,610 LOC, 84.5% vs. main code):
    • 1,188 *.java files (156,052 LOC)
    • 91 *.yaml files (1,618 LOC)
    • 3 *.yml files (250 LOC)
    • 4 *.groovy files (222 LOC)
    • 3 *.xml files (164 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.39% of LOC.
  • " *.pub" is smallest, containing 0% of LOC.


*.java156052 LOC (98%) 1,188 files
*.yaml1618 LOC (1%) 91 files
*.yml250 LOC (<1%) 3 files
*.groovy222 LOC (<1%) 4 files
*.xml164 LOC (<1%) 3 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,518 LOC, 2.9% vs. main code):
    • 37 *.xml files (5,451 LOC)
    • 3 *.sh files (67 LOC)
  • " *.xml" is biggest, containing 98.79% of LOC.
  • " *.sh" is smallest, containing 1.21% of LOC.


*.xml5451 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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
  • 73 files match defined criteria (3,910 LOC, 2.1% 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.


2023-08-10 16:09