apache / incubator-sdap-ingester
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
nc
txt
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.

main3071 LOC (55%) 80 files
test2013 LOC (36%) 49 files
generated0 LOC (0%) 0 files
build and deployment45 LOC (<1%) 3 files
other420 LOC (7%) 12 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 80 files match defined criteria (3,071 LOC, 100.0% vs. main code):
    • 78 *.py files (2,990 LOC)
    • 2 *.yml files (81 LOC)
  • " *.py" is biggest, containing 97.36% of LOC.
  • " *.yml" is smallest, containing 2.64% of LOC.


*.py2990 LOC (97%) 78 files
*.yml81 LOC (2%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
nc
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
  • 49 files match defined criteria (2,013 LOC, 65.5% vs. main code):
    • 38 *.py files (1,839 LOC)
    • 8 *.yml files (151 LOC)
    • 1 *.yaml files (17 LOC)
    • 2 *.nc files (6 LOC)
  • " *.py" is biggest, containing 91.36% of LOC.
  • " *.nc" is smallest, containing 0.3% of LOC.


*.py1839 LOC (91%) 38 files
*.yml151 LOC (7%) 8 files
*.yaml17 LOC (<1%) 1 file
*.nc6 LOC (<1%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 3 files match defined criteria (45 LOC, 1.5% vs. main code). All matches are in *.sh files.


*.sh45 LOC (100%) 3 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 12 files match defined criteria (420 LOC, 13.7% vs. main code):
    • 6 *.txt files (238 LOC)
    • 6 *.md files (182 LOC)
  • " *.txt" is biggest, containing 56.67% of LOC.
  • " *.md" is smallest, containing 43.33% of LOC.


*.txt238 LOC (56%) 6 files
*.md182 LOC (43%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 01:46