apache / couchdb-rebar
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
proto
spec
txt
cmd
asn1
yrl
xrl
fish
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.

main17636 LOC (90%) 211 files
test1462 LOC (7%) 23 files
generated0 LOC (0%) 0 files
build and deployment2 LOC (<1%) 1 file
other408 LOC (2%) 5 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
fish
cmd
yrl
xrl
spec
asn1
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 211 files match defined criteria (17,636 LOC, 100.0% vs. main code):
    • 152 *.erl files (16,581 LOC)
    • 22 *.hrl files (267 LOC)
    • 17 *.proto files (250 LOC)
    • 1 *.fish files (155 LOC)
    • 2 *.cmd files (124 LOC)
    • 1 *.py files (103 LOC)
    • 5 *.c files (57 LOC)
    • 1 *.escript files (50 LOC)
    • 1 *.yml files (17 LOC)
    • 1 *.yrl files (9 LOC)
    • 1 *.xrl files (8 LOC)
    • 2 *.spec files (6 LOC)
    • 1 *.asn1 files (5 LOC)
    • 4 *.h files (4 LOC)
  • " *.erl" is biggest, containing 94.02% of LOC.
  • " *.h" is smallest, containing 0.02% of LOC.


*.erl16581 LOC (94%) 152 files
*.hrl267 LOC (1%) 22 files
*.proto250 LOC (1%) 17 files
*.fish155 LOC (<1%) 1 file
*.cmd124 LOC (<1%) 2 files
*.py103 LOC (<1%) 1 file
*.c57 LOC (<1%) 5 files
*.escript50 LOC (<1%) 1 file
*.yml17 LOC (<1%) 1 file
*.yrl9 LOC (<1%) 1 file
*.xrl8 LOC (<1%) 1 file
*.spec6 LOC (<1%) 2 files
*.asn15 LOC (<1%) 1 file
*.h4 LOC (<1%) 4 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
spec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 23 files match defined criteria (1,462 LOC, 8.3% vs. main code):
    • 20 *.erl files (1,459 LOC)
    • 3 *.spec files (3 LOC)
  • " *.erl" is biggest, containing 99.79% of LOC.
  • " *.spec" is smallest, containing 0.21% of LOC.


*.erl1459 LOC (99%) 20 files
*.spec3 LOC (<1%) 3 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
  • 1 file matches defined criteria (2 LOC, 0.0% vs. main code). All matches are in *.bat files.


*.bat2 LOC (100%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 5 files match defined criteria (408 LOC, 2.3% vs. main code):
    • 4 *.md files (407 LOC)
    • 1 *.txt files (1 LOC)
  • " *.md" is biggest, containing 99.75% of LOC.
  • " *.txt" is smallest, containing 0.25% of LOC.


*.md407 LOC (99%) 4 files
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:56