aws / graph-notebook
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
in
ini
eslintignore
prettierignore
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.

main23549 LOC (50%) 190 files
test11698 LOC (25%) 102 files
generated0 LOC (0%) 0 files
build and deployment343 LOC (<1%) 5 files
other10915 LOC (23%) 52 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 190 files match defined criteria (23,549 LOC, 100.0% vs. main code):
    • 129 *.py files (10,906 LOC)
    • 24 *.ipynb files (10,077 LOC)
    • 7 *.ts files (1,010 LOC)
    • 11 *.html files (490 LOC)
    • 8 *.js files (368 LOC)
    • 7 *.yaml files (307 LOC)
    • 2 *.css files (260 LOC)
    • 1 *.toml files (118 LOC)
    • 1 *.in files (13 LOC)
  • " *.py" is biggest, containing 46.31% of LOC.
  • " *.in" is smallest, containing 0.06% of LOC.


*.py10906 LOC (46%) 129 files
*.ipynb10077 LOC (42%) 24 files
*.ts1010 LOC (4%) 7 files
*.html490 LOC (2%) 11 files
*.js368 LOC (1%) 8 files
*.yaml307 LOC (1%) 7 files
*.css260 LOC (1%) 2 files
*.toml118 LOC (<1%) 1 file
*.in13 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 ".*/karma[.]conf[.]js".
    • files with paths like ".*[.]spec[.]ts".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
  • 102 files match defined criteria (11,698 LOC, 49.7% vs. main code):
    • 100 *.py files (11,634 LOC)
    • 1 *.js files (41 LOC)
    • 1 *.ts files (23 LOC)
  • " *.py" is biggest, containing 99.45% of LOC.
  • " *.ts" is smallest, containing 0.2% of LOC.


*.py11634 LOC (99%) 100 files
*.js41 LOC (<1%) 1 file
*.ts23 LOC (<1%) 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 ".*/package[.]json".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 5 files match defined criteria (343 LOC, 1.5% vs. main code):
    • 3 *.sh files (184 LOC)
    • 2 *.js files (159 LOC)
  • " *.sh" is biggest, containing 53.64% of LOC.
  • " *.js" is smallest, containing 46.36% of LOC.


*.sh184 LOC (53%) 3 files
*.js159 LOC (46%) 2 files
Other Code
txt
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[.]dockerignore".
  • 52 files match defined criteria (10,915 LOC, 46.4% vs. main code):
    • 14 *.txt files (5,210 LOC)
    • 16 *.json files (4,495 LOC)
    • 21 *.md files (1,201 LOC)
    • 1 *.ini files (9 LOC)
  • " *.txt" is biggest, containing 47.73% of LOC.
  • " *.ini" is smallest, containing 0.08% of LOC.


*.txt5210 LOC (47%) 14 files
*.json4495 LOC (41%) 16 files
*.md1201 LOC (11%) 21 files
*.ini9 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:13