apache / usergrid
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
t
plist
hbs
cql
storyboard
rdoc
nu
editorconfig
gitattributes
feature
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.

main187840 LOC (65%) 2,046 files
test59977 LOC (20%) 651 files
generated0 LOC (0%) 0 files
build and deployment7345 LOC (2%) 53 files
other31647 LOC (11%) 251 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
t
cql
rdoc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2046 files match defined criteria (187,840 LOC, 100.0% vs. main code):
    • 1,577 *.java files (122,511 LOC)
    • 21 *.css files (20,434 LOC)
    • 66 *.js files (10,424 LOC)
    • 60 *.php files (7,887 LOC)
    • 45 *.py files (6,315 LOC)
    • 70 *.html files (6,071 LOC)
    • 28 *.m files (4,224 LOC)
    • 54 *.rb files (3,041 LOC)
    • 7 *.yaml files (2,331 LOC)
    • 20 *.xml files (866 LOC)
    • 29 *.h files (642 LOC)
    • 13 *.groovy files (628 LOC)
    • 29 *.jsp files (621 LOC)
    • 4 *.erb files (545 LOC)
    • 10 *.t files (510 LOC)
    • 4 *.pm files (391 LOC)
    • 1 *.g files (254 LOC)
    • 3 *.gemspec files (67 LOC)
    • 1 *.sql files (40 LOC)
    • 3 *.cql files (34 LOC)
    • 1 *.rdoc files (4 LOC)
  • " *.java" is biggest, containing 65.22% of LOC.
  • " *.rdoc" is smallest, containing 0% of LOC.


*.java122511 LOC (65%) 1,577 files
*.css20434 LOC (10%) 21 files
*.js10424 LOC (5%) 66 files
*.php7887 LOC (4%) 60 files
*.py6315 LOC (3%) 45 files
*.html6071 LOC (3%) 70 files
*.m4224 LOC (2%) 28 files
*.rb3041 LOC (1%) 54 files
*.yaml2331 LOC (1%) 7 files
*.xml866 LOC (<1%) 20 files
*.h642 LOC (<1%) 29 files
*.groovy628 LOC (<1%) 13 files
*.jsp621 LOC (<1%) 29 files
*.erb545 LOC (<1%) 4 files
*.t510 LOC (<1%) 10 files
*.pm391 LOC (<1%) 4 files
*.g254 LOC (<1%) 1 file
*.gemspec67 LOC (<1%) 3 files
*.sql40 LOC (<1%) 1 file
*.cql34 LOC (<1%) 3 files
*.rdoc4 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
nu
feature
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*UnitTests[.][a-zA-Z0-9_]+".
  • 651 files match defined criteria (59,977 LOC, 31.9% vs. main code):
    • 495 *.java files (52,635 LOC)
    • 43 *.scala files (2,680 LOC)
    • 42 *.js files (1,789 LOC)
    • 27 *.sh files (953 LOC)
    • 17 *.xml files (683 LOC)
    • 2 *.py files (475 LOC)
    • 15 *.php files (353 LOC)
    • 3 *.yaml files (200 LOC)
    • 2 *.nu files (152 LOC)
    • 1 *.bat files (23 LOC)
    • 1 *.jsp files (14 LOC)
    • 2 *.rb files (13 LOC)
    • 1 *.feature files (7 LOC)
  • " *.java" is biggest, containing 87.76% of LOC.
  • " *.feature" is smallest, containing 0.01% of LOC.


*.java52635 LOC (87%) 495 files
*.scala2680 LOC (4%) 43 files
*.js1789 LOC (2%) 42 files
*.sh953 LOC (1%) 27 files
*.xml683 LOC (1%) 17 files
*.py475 LOC (<1%) 2 files
*.php353 LOC (<1%) 15 files
*.yaml200 LOC (<1%) 3 files
*.nu152 LOC (<1%) 2 files
*.bat23 LOC (<1%) 1 file
*.jsp14 LOC (<1%) 1 file
*.rb13 LOC (<1%) 2 files
*.feature7 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/assembly[.]xml".
  • 53 files match defined criteria (7,345 LOC, 3.9% vs. main code):
    • 38 *.xml files (6,742 LOC)
    • 14 *.sh files (580 LOC)
    • 1 *.bat files (23 LOC)
  • " *.xml" is biggest, containing 91.79% of LOC.
  • " *.bat" is smallest, containing 0.31% of LOC.


*.xml6742 LOC (91%) 38 files
*.sh580 LOC (7%) 14 files
*.bat23 LOC (<1%) 1 file
Other Code
txt
properties
plist
storyboard
rdoc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]storyboard".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]svg".
  • 251 files match defined criteria (31,647 LOC, 16.8% vs. main code):
    • 19 *.txt files (11,656 LOC)
    • 40 *.json files (11,306 LOC)
    • 76 *.properties files (3,087 LOC)
    • 50 *.md files (2,876 LOC)
    • 16 *.m files (1,157 LOC)
    • 22 *.php files (870 LOC)
    • 3 *.py files (231 LOC)
    • 5 *.plist files (206 LOC)
    • 1 *.xml files (111 LOC)
    • 2 *.storyboard files (54 LOC)
    • 13 *.h files (46 LOC)
    • 2 *.svg files (26 LOC)
    • 1 *.pl files (18 LOC)
    • 1 *.rdoc files (3 LOC)
  • " *.txt" is biggest, containing 36.83% of LOC.
  • " *.rdoc" is smallest, containing 0.01% of LOC.


*.txt11656 LOC (36%) 19 files
*.json11306 LOC (35%) 40 files
*.properties3087 LOC (9%) 76 files
*.md2876 LOC (9%) 50 files
*.m1157 LOC (3%) 16 files
*.php870 LOC (2%) 22 files
*.py231 LOC (<1%) 3 files
*.plist206 LOC (<1%) 5 files
*.xml111 LOC (<1%) 1 file
*.storyboard54 LOC (<1%) 2 files
*.h46 LOC (<1%) 13 files
*.svg26 LOC (<1%) 2 files
*.pl18 LOC (<1%) 1 file
*.rdoc3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:38