apache / sdap-in-situ-data-services
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
tpl
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.

main6672 LOC (75%) 112 files
test1440 LOC (16%) 34 files
generated0 LOC (0%) 0 files
build and deployment52 LOC (<1%) 4 files
other691 LOC (7%) 15 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 112 files match defined criteria (6,672 LOC, 100.0% vs. main code):
    • 90 *.py files (4,568 LOC)
    • 1 *.ipynb files (1,089 LOC)
    • 9 *.yaml files (604 LOC)
    • 9 *.tf files (270 LOC)
    • 1 *.tpl files (71 LOC)
    • 1 *.html files (55 LOC)
    • 1 *.bash files (15 LOC)
  • " *.py" is biggest, containing 68.47% of LOC.
  • " *.bash" is smallest, containing 0.22% of LOC.


*.py4568 LOC (68%) 90 files
*.ipynb1089 LOC (16%) 1 file
*.yaml604 LOC (9%) 9 files
*.tf270 LOC (4%) 9 files
*.tpl71 LOC (1%) 1 file
*.html55 LOC (<1%) 1 file
*.bash15 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
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 ".*/test_.*".
  • 34 files match defined criteria (1,440 LOC, 21.6% vs. main code):
    • 33 *.py files (1,411 LOC)
    • 1 *.yaml files (29 LOC)
  • " *.py" is biggest, containing 97.99% of LOC.
  • " *.yaml" is smallest, containing 2.01% of LOC.


*.py1411 LOC (97%) 33 files
*.yaml29 LOC (2%) 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 4 files match defined criteria (52 LOC, 0.8% vs. main code). All matches are in *.sh files.


*.sh52 LOC (100%) 4 files
Other Code
txt
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 ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
  • 15 files match defined criteria (691 LOC, 10.4% vs. main code):
    • 9 *.md files (553 LOC)
    • 3 *.json files (91 LOC)
    • 3 *.txt files (47 LOC)
  • " *.md" is biggest, containing 80.03% of LOC.
  • " *.txt" is smallest, containing 6.8% of LOC.


*.md553 LOC (80%) 9 files
*.json91 LOC (13%) 3 files
*.txt47 LOC (6%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:33