apache / incubator-brooklyn
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
gitattributes
xslt
pub
zone
ini
cfg
sed
org
asc
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.

main184285 LOC (58%) 1,817 files
test104106 LOC (32%) 1,139 files
generated0 LOC (0%) 0 files
build and deployment8788 LOC (2%) 80 files
other19552 LOC (6%) 334 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
sed
zone
cfg
asc
xslt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1817 files match defined criteria (184,285 LOC, 100.0% vs. main code):
    • 1,521 *.java files (147,904 LOC)
    • 59 *.js files (13,721 LOC)
    • 38 *.xml files (9,373 LOC)
    • 15 *.css files (6,159 LOC)
    • 86 *.html files (3,048 LOC)
    • 1 *.sed files (1,394 LOC)
    • 44 *.yaml files (876 LOC)
    • 15 *.scss files (865 LOC)
    • 9 *.rb files (476 LOC)
    • 7 *.ps1 files (186 LOC)
    • 3 *.zone files (127 LOC)
    • 13 *.yml files (48 LOC)
    • 1 *.php files (33 LOC)
    • 2 *.cfg files (30 LOC)
    • 1 *.asc files (20 LOC)
    • 1 *.sql files (15 LOC)
    • 1 *.xslt files (10 LOC)
  • " *.java" is biggest, containing 80.26% of LOC.
  • " *.xslt" is smallest, containing 0.01% of LOC.


*.java147904 LOC (80%) 1,521 files
*.js13721 LOC (7%) 59 files
*.xml9373 LOC (5%) 38 files
*.css6159 LOC (3%) 15 files
*.html3048 LOC (1%) 86 files
*.sed1394 LOC (<1%) 1 file
*.yaml876 LOC (<1%) 44 files
*.scss865 LOC (<1%) 15 files
*.rb476 LOC (<1%) 9 files
*.ps1186 LOC (<1%) 7 files
*.zone127 LOC (<1%) 3 files
*.yml48 LOC (<1%) 13 files
*.php33 LOC (<1%) 1 file
*.cfg30 LOC (<1%) 2 files
*.asc20 LOC (<1%) 1 file
*.sql15 LOC (<1%) 1 file
*.xslt10 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
xslt
org
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 ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Ss]pecs/.*".
  • 1139 files match defined criteria (104,106 LOC, 56.5% vs. main code):
    • 979 *.java files (99,763 LOC)
    • 90 *.yaml files (1,594 LOC)
    • 25 *.js files (913 LOC)
    • 12 *.xml files (757 LOC)
    • 6 *.groovy files (489 LOC)
    • 3 *.yml files (250 LOC)
    • 5 *.ps1 files (101 LOC)
    • 4 *.bat files (69 LOC)
    • 1 *.php files (43 LOC)
    • 3 *.xslt files (42 LOC)
    • 2 *.sql files (32 LOC)
    • 2 *.ts files (23 LOC)
    • 1 *.org files (17 LOC)
    • 1 *.rb files (8 LOC)
    • 4 *.pub files (4 LOC)
    • 1 *.sh files (1 LOC)
  • " *.java" is biggest, containing 95.83% of LOC.
  • " *.sh" is smallest, containing 0% of LOC.


*.java99763 LOC (95%) 979 files
*.yaml1594 LOC (1%) 90 files
*.js913 LOC (<1%) 25 files
*.xml757 LOC (<1%) 12 files
*.groovy489 LOC (<1%) 6 files
*.yml250 LOC (<1%) 3 files
*.ps1101 LOC (<1%) 5 files
*.bat69 LOC (<1%) 4 files
*.php43 LOC (<1%) 1 file
*.xslt42 LOC (<1%) 3 files
*.sql32 LOC (<1%) 2 files
*.ts23 LOC (<1%) 2 files
*.org17 LOC (<1%) 1 file
*.rb8 LOC (<1%) 1 file
*.pub4 LOC (<1%) 4 files
*.sh1 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/assembly[.]xml".
  • 80 files match defined criteria (8,788 LOC, 4.8% vs. main code):
    • 60 *.xml files (7,964 LOC)
    • 17 *.sh files (758 LOC)
    • 3 *.bat files (66 LOC)
  • " *.xml" is biggest, containing 90.62% of LOC.
  • " *.bat" is smallest, containing 0.75% of LOC.


*.xml7964 LOC (90%) 60 files
*.sh758 LOC (8%) 17 files
*.bat66 LOC (<1%) 3 files
Other Code
properties
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
  • 334 files match defined criteria (19,552 LOC, 10.6% vs. main code):
    • 181 *.md files (11,765 LOC)
    • 18 *.properties files (2,403 LOC)
    • 22 *.java files (1,198 LOC)
    • 11 *.jsp files (853 LOC)
    • 2 *.svg files (814 LOC)
    • 31 *.txt files (797 LOC)
    • 15 *.xml files (723 LOC)
    • 38 *.json files (520 LOC)
    • 2 *.ini files (142 LOC)
    • 6 *.yaml files (123 LOC)
    • 2 *.css files (106 LOC)
    • 3 *.sh files (48 LOC)
    • 2 *.html files (44 LOC)
    • 1 *.sql files (16 LOC)
  • " *.md" is biggest, containing 60.17% of LOC.
  • " *.sql" is smallest, containing 0.08% of LOC.


*.md11765 LOC (60%) 181 files
*.properties2403 LOC (12%) 18 files
*.java1198 LOC (6%) 22 files
*.jsp853 LOC (4%) 11 files
*.svg814 LOC (4%) 2 files
*.txt797 LOC (4%) 31 files
*.xml723 LOC (3%) 15 files
*.json520 LOC (2%) 38 files
*.ini142 LOC (<1%) 2 files
*.yaml123 LOC (<1%) 6 files
*.css106 LOC (<1%) 2 files
*.sh48 LOC (<1%) 3 files
*.html44 LOC (<1%) 2 files
*.sql16 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:03