apache / sdap-nexus
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
ini
properties
tpl
cql
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.

main22220 LOC (56%) 164 files
test3610 LOC (9%) 29 files
generated0 LOC (0%) 0 files
build and deployment157 LOC (<1%) 4 files
other13462 LOC (34%) 121 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
cql
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 164 files match defined criteria (22,220 LOC, 100.0% vs. main code):
    • 146 *.py files (20,447 LOC)
    • 8 *.xml files (1,112 LOC)
    • 1 *.ipynb files (200 LOC)
    • 3 *.yaml files (156 LOC)
    • 1 *.js files (90 LOC)
    • 1 *.toml files (80 LOC)
    • 1 *.tpl files (71 LOC)
    • 2 *.html files (59 LOC)
    • 1 *.cql files (5 LOC)
  • " *.py" is biggest, containing 92.02% of LOC.
  • " *.cql" is smallest, containing 0.02% of LOC.


*.py20447 LOC (92%) 146 files
*.xml1112 LOC (5%) 8 files
*.ipynb200 LOC (<1%) 1 file
*.yaml156 LOC (<1%) 3 files
*.js90 LOC (<1%) 1 file
*.toml80 LOC (<1%) 1 file
*.tpl71 LOC (<1%) 1 file
*.html59 LOC (<1%) 2 files
*.cql5 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 ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 29 files match defined criteria (3,610 LOC, 16.2% vs. main code):
    • 26 *.py files (3,212 LOC)
    • 1 *.sh files (305 LOC)
    • 2 *.yaml files (93 LOC)
  • " *.py" is biggest, containing 88.98% of LOC.
  • " *.yaml" is smallest, containing 2.58% of LOC.


*.py3212 LOC (88%) 26 files
*.sh305 LOC (8%) 1 file
*.yaml93 LOC (2%) 2 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 ".*[.]sh".
    • files with paths like ".*[.]bat".
  • 4 files match defined criteria (157 LOC, 0.7% vs. main code). All matches are in *.sh files.


*.sh157 LOC (100%) 4 files
Other Code
txt
ini
properties
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 ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
  • 121 files match defined criteria (13,462 LOC, 60.6% vs. main code):
    • 93 *.txt files (12,089 LOC)
    • 16 *.md files (1,110 LOC)
    • 4 *.ini files (86 LOC)
    • 4 *.json files (79 LOC)
    • 2 *.rst files (70 LOC)
    • 2 *.properties files (28 LOC)
  • " *.txt" is biggest, containing 89.8% of LOC.
  • " *.properties" is smallest, containing 0.21% of LOC.


*.txt12089 LOC (89%) 93 files
*.md1110 LOC (8%) 16 files
*.ini86 LOC (<1%) 4 files
*.json79 LOC (<1%) 4 files
*.rst70 LOC (<1%) 2 files
*.properties28 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:19