apache / whimsy
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
cgi
txt
ru
plist
htaccess
gitattributes
lua
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.

main62353 LOC (81%) 591 files
test1024 LOC (1%) 36 files
generated0 LOC (0%) 0 files
build and deployment51 LOC (<1%) 4 files
other12898 LOC (16%) 42 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cgi
ru
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 591 files match defined criteria (62,353 LOC, 100.0% vs. main code):
    • 437 *.rb files (43,914 LOC)
    • 94 *.cgi files (12,513 LOC)
    • 9 *.js files (3,161 LOC)
    • 7 *.css files (1,113 LOC)
    • 9 *.html files (979 LOC)
    • 24 *.erb files (372 LOC)
    • 1 *.py files (122 LOC)
    • 5 *.ru files (68 LOC)
    • 1 *.rdf files (35 LOC)
    • 1 *.gemspec files (35 LOC)
    • 2 *.yaml files (29 LOC)
    • 1 *.lua files (12 LOC)
  • " *.rb" is biggest, containing 70.43% of LOC.
  • " *.lua" is smallest, containing 0.02% of LOC.


*.rb43914 LOC (70%) 437 files
*.cgi12513 LOC (20%) 94 files
*.js3161 LOC (5%) 9 files
*.css1113 LOC (1%) 7 files
*.html979 LOC (1%) 9 files
*.erb372 LOC (<1%) 24 files
*.py122 LOC (<1%) 1 file
*.ru68 LOC (<1%) 5 files
*.rdf35 LOC (<1%) 1 file
*.gemspec35 LOC (<1%) 1 file
*.yaml29 LOC (<1%) 2 files
*.lua12 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cgi
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[.].*".
  • 36 files match defined criteria (1,024 LOC, 1.6% vs. main code):
    • 22 *.cgi files (859 LOC)
    • 5 *.rb files (133 LOC)
    • 1 *.yaml files (24 LOC)
    • 8 *.html files (8 LOC)
  • " *.cgi" is biggest, containing 83.89% of LOC.
  • " *.html" is smallest, containing 0.78% of LOC.


*.cgi859 LOC (83%) 22 files
*.rb133 LOC (12%) 5 files
*.yaml24 LOC (2%) 1 file
*.html8 LOC (<1%) 8 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/package[.]json".
  • 4 files match defined criteria (51 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh51 LOC (100%) 4 files
Other Code
txt
plist
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*/[.]dockerignore".
  • 42 files match defined criteria (12,898 LOC, 20.7% vs. main code):
    • 15 *.txt files (10,349 LOC)
    • 18 *.md files (2,104 LOC)
    • 4 *.json files (345 LOC)
    • 1 *.html files (35 LOC)
    • 2 *.plist files (34 LOC)
    • 1 *.rb files (19 LOC)
    • 1 *.svg files (12 LOC)
  • " *.txt" is biggest, containing 80.24% of LOC.
  • " *.svg" is smallest, containing 0.09% of LOC.


*.txt10349 LOC (80%) 15 files
*.md2104 LOC (16%) 18 files
*.json345 LOC (2%) 4 files
*.html35 LOC (<1%) 1 file
*.plist34 LOC (<1%) 2 files
*.rb19 LOC (<1%) 1 file
*.svg12 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:56