apache / openwhisk-vscode-extension
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
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.

main2721 LOC (13%) 43 files
test551 LOC (2%) 9 files
generated6655 LOC (34%) 1 file
build and deployment50 LOC (<1%) 2 files
other9474 LOC (48%) 26 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 ".*".
  • 43 files match defined criteria (2,721 LOC, 100.0% vs. main code):
    • 27 *.ts files (2,194 LOC)
    • 4 *.html files (341 LOC)
    • 1 *.css files (63 LOC)
    • 3 *.yaml files (57 LOC)
    • 1 *.cs files (18 LOC)
    • 1 *.go files (12 LOC)
    • 2 *.js files (10 LOC)
    • 1 *.php files (8 LOC)
    • 1 *.swift files (7 LOC)
    • 1 *.rb files (6 LOC)
    • 1 *.py files (5 LOC)
  • " *.ts" is biggest, containing 80.63% of LOC.
  • " *.py" is smallest, containing 0.18% of LOC.


*.ts2194 LOC (80%) 27 files
*.html341 LOC (12%) 4 files
*.css63 LOC (2%) 1 file
*.yaml57 LOC (2%) 3 files
*.cs18 LOC (<1%) 1 file
*.go12 LOC (<1%) 1 file
*.js10 LOC (<1%) 2 files
*.php8 LOC (<1%) 1 file
*.swift7 LOC (<1%) 1 file
*.rb6 LOC (<1%) 1 file
*.py5 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]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 9 files match defined criteria (551 LOC, 20.2% vs. main code):
    • 8 *.ts files (540 LOC)
    • 1 *.js files (11 LOC)
  • " *.ts" is biggest, containing 98% of LOC.
  • " *.js" is smallest, containing 2% of LOC.


*.ts540 LOC (98%) 8 files
*.js11 LOC (1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 1 file matches defined criteria (6,655 LOC, 244.6% vs. main code). All matches are in *.json files.


*.json6655 LOC (100%) 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 ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
  • 2 files match defined criteria (50 LOC, 1.8% vs. main code):
    • 1 *.js files (36 LOC)
    • 1 *.sh files (14 LOC)
  • " *.js" is biggest, containing 72% of LOC.
  • " *.sh" is smallest, containing 28% of LOC.


*.js36 LOC (72%) 1 file
*.sh14 LOC (28%) 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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
  • 26 files match defined criteria (9,474 LOC, 348.2% vs. main code):
    • 4 *.json files (7,101 LOC)
    • 16 *.svg files (1,899 LOC)
    • 2 *.txt files (251 LOC)
    • 4 *.md files (223 LOC)
  • " *.json" is biggest, containing 74.95% of LOC.
  • " *.md" is smallest, containing 2.35% of LOC.


*.json7101 LOC (74%) 4 files
*.svg1899 LOC (20%) 16 files
*.txt251 LOC (2%) 2 files
*.md223 LOC (2%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:06