apache / couchdb
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
cfg
ini
txt
in
cmd
patch
mk
http
gitattributes
properties
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.

main154228 LOC (65%) 629 files
test74861 LOC (31%) 382 files
generated0 LOC (0%) 0 files
build and deployment300 LOC (<1%) 8 files
other4746 LOC (2%) 56 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
in
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 629 files match defined criteria (154,228 LOC, 100.0% vs. main code):
    • 453 *.erl files (119,296 LOC)
    • 16 *.c files (14,559 LOC)
    • 23 *.h files (10,461 LOC)
    • 49 *.java files (2,864 LOC)
    • 8 *.cpp files (2,150 LOC)
    • 29 *.hrl files (1,372 LOC)
    • 14 *.js files (1,175 LOC)
    • 15 *.cfg files (947 LOC)
    • 6 *.exs files (373 LOC)
    • 1 *.ps1 files (344 LOC)
    • 5 *.py files (282 LOC)
    • 3 *.escript files (199 LOC)
    • 3 *.in files (158 LOC)
    • 2 *.yaml files (33 LOC)
    • 2 *.cmd files (15 LOC)
  • " *.erl" is biggest, containing 77.35% of LOC.
  • " *.cmd" is smallest, containing 0.01% of LOC.


*.erl119296 LOC (77%) 453 files
*.c14559 LOC (9%) 16 files
*.h10461 LOC (6%) 23 files
*.java2864 LOC (1%) 49 files
*.cpp2150 LOC (1%) 8 files
*.hrl1372 LOC (<1%) 29 files
*.js1175 LOC (<1%) 14 files
*.cfg947 LOC (<1%) 15 files
*.exs373 LOC (<1%) 6 files
*.ps1344 LOC (<1%) 1 file
*.py282 LOC (<1%) 5 files
*.escript199 LOC (<1%) 3 files
*.in158 LOC (<1%) 3 files
*.yaml33 LOC (<1%) 2 files
*.cmd15 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cfg
http
cmd
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 ".*_tests[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test[.].*".
  • 382 files match defined criteria (74,861 LOC, 48.5% vs. main code):
    • 209 *.erl files (47,776 LOC)
    • 95 *.exs files (18,099 LOC)
    • 32 *.py files (5,228 LOC)
    • 14 *.ex files (1,417 LOC)
    • 1 *.rb files (810 LOC)
    • 8 *.java files (766 LOC)
    • 12 *.sh files (391 LOC)
    • 3 *.escript files (232 LOC)
    • 1 *.es files (49 LOC)
    • 2 *.hrl files (48 LOC)
    • 3 *.cfg files (30 LOC)
    • 1 *.http files (9 LOC)
    • 1 *.cmd files (6 LOC)
  • " *.erl" is biggest, containing 63.82% of LOC.
  • " *.cmd" is smallest, containing 0.01% of LOC.


*.erl47776 LOC (63%) 209 files
*.exs18099 LOC (24%) 95 files
*.py5228 LOC (6%) 32 files
*.ex1417 LOC (1%) 14 files
*.rb810 LOC (1%) 1 file
*.java766 LOC (1%) 8 files
*.sh391 LOC (<1%) 12 files
*.escript232 LOC (<1%) 3 files
*.es49 LOC (<1%) 1 file
*.hrl48 LOC (<1%) 2 files
*.cfg30 LOC (<1%) 3 files
*.http9 LOC (<1%) 1 file
*.cmd6 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]mk".
  • 8 files match defined criteria (300 LOC, 0.2% vs. main code):
    • 4 *.sh files (145 LOC)
    • 2 *.gradle files (81 LOC)
    • 1 *.bat files (71 LOC)
    • 1 *.mk files (3 LOC)
  • " *.sh" is biggest, containing 48.33% of LOC.
  • " *.mk" is smallest, containing 1% of LOC.


*.sh145 LOC (48%) 4 files
*.gradle81 LOC (27%) 2 files
*.bat71 LOC (23%) 1 file
*.mk3 LOC (1%) 1 file
Other Code
ini
txt
patch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
  • 56 files match defined criteria (4,746 LOC, 3.1% vs. main code):
    • 32 *.md files (2,590 LOC)
    • 12 *.ini files (1,196 LOC)
    • 6 *.txt files (417 LOC)
    • 2 *.rst files (374 LOC)
    • 2 *.patch files (129 LOC)
    • 2 *.json files (40 LOC)
  • " *.md" is biggest, containing 54.57% of LOC.
  • " *.json" is smallest, containing 0.84% of LOC.


*.md2590 LOC (54%) 32 files
*.ini1196 LOC (25%) 12 files
*.txt417 LOC (8%) 6 files
*.rst374 LOC (7%) 2 files
*.patch129 LOC (2%) 2 files
*.json40 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:18