apache / brooklyn-library
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
zone
ini
gitattributes
org
cfg
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.

main40873 LOC (66%) 379 files
test15369 LOC (25%) 225 files
generated0 LOC (0%) 0 files
build and deployment2108 LOC (3%) 31 files
other2674 LOC (4%) 64 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
zone
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 379 files match defined criteria (40,873 LOC, 100.0% vs. main code):
    • 332 *.java files (26,564 LOC)
    • 14 *.xml files (12,975 LOC)
    • 11 *.yaml files (355 LOC)
    • 4 *.html files (336 LOC)
    • 4 *.js files (222 LOC)
    • 7 *.ps1 files (190 LOC)
    • 3 *.zone files (127 LOC)
    • 2 *.css files (61 LOC)
    • 1 *.php files (33 LOC)
    • 1 *.cfg files (10 LOC)
  • " *.java" is biggest, containing 64.99% of LOC.
  • " *.cfg" is smallest, containing 0.02% of LOC.


*.java26564 LOC (64%) 332 files
*.xml12975 LOC (31%) 14 files
*.yaml355 LOC (<1%) 11 files
*.html336 LOC (<1%) 4 files
*.js222 LOC (<1%) 4 files
*.ps1190 LOC (<1%) 7 files
*.zone127 LOC (<1%) 3 files
*.css61 LOC (<1%) 2 files
*.php33 LOC (<1%) 1 file
*.cfg10 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
org
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
  • 225 files match defined criteria (15,369 LOC, 37.6% vs. main code):
    • 208 *.java files (14,535 LOC)
    • 4 *.xml files (568 LOC)
    • 10 *.yaml files (198 LOC)
    • 1 *.php files (43 LOC)
    • 1 *.org files (17 LOC)
    • 1 *.rb files (8 LOC)
  • " *.java" is biggest, containing 94.57% of LOC.
  • " *.rb" is smallest, containing 0.05% of LOC.


*.java14535 LOC (94%) 208 files
*.xml568 LOC (3%) 4 files
*.yaml198 LOC (1%) 10 files
*.php43 LOC (<1%) 1 file
*.org17 LOC (<1%) 1 file
*.rb8 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 ".*/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 ".*/assembly[.]xml".
    • files with paths like ".*/[.]gitattributes".
  • 31 files match defined criteria (2,108 LOC, 5.2% vs. main code):
    • 23 *.xml files (1,964 LOC)
    • 5 *.sh files (78 LOC)
    • 3 *.bat files (66 LOC)
  • " *.xml" is biggest, containing 93.17% of LOC.
  • " *.bat" is smallest, containing 3.13% of LOC.


*.xml1964 LOC (93%) 23 files
*.sh78 LOC (3%) 5 files
*.bat66 LOC (3%) 3 files
Other Code
txt
ini
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
  • 64 files match defined criteria (2,674 LOC, 6.5% vs. main code):
    • 12 *.jsp files (910 LOC)
    • 6 *.java files (462 LOC)
    • 9 *.xml files (356 LOC)
    • 10 *.txt files (201 LOC)
    • 7 *.md files (173 LOC)
    • 2 *.ini files (142 LOC)
    • 4 *.properties files (118 LOC)
    • 2 *.css files (106 LOC)
    • 2 *.yaml files (65 LOC)
    • 6 *.json files (57 LOC)
    • 2 *.html files (44 LOC)
    • 1 *.sql files (20 LOC)
    • 1 *.sh files (20 LOC)
  • " *.jsp" is biggest, containing 34.03% of LOC.
  • " *.sh" is smallest, containing 0.75% of LOC.


*.jsp910 LOC (34%) 12 files
*.java462 LOC (17%) 6 files
*.xml356 LOC (13%) 9 files
*.txt201 LOC (7%) 10 files
*.md173 LOC (6%) 7 files
*.ini142 LOC (5%) 2 files
*.properties118 LOC (4%) 4 files
*.css106 LOC (3%) 2 files
*.yaml65 LOC (2%) 2 files
*.json57 LOC (2%) 6 files
*.html44 LOC (1%) 2 files
*.sql20 LOC (<1%) 1 file
*.sh20 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 16:09