apache / openwhisk-wskdeploy
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
properties
mod
gitattributes
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.

main7751 LOC (35%) 38 files
test9602 LOC (43%) 295 files
generated0 LOC (0%) 0 files
build and deployment483 LOC (2%) 10 files
other4186 LOC (19%) 69 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 ".*".
  • 38 files match defined criteria (7,751 LOC, 100.0% vs. main code). All matches are in *.go files.


*.go7751 LOC (100%) 38 files
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/.*".
  • 295 files match defined criteria (9,602 LOC, 123.9% vs. main code):
    • 51 *.go files (4,299 LOC)
    • 144 *.yaml files (3,818 LOC)
    • 64 *.js files (875 LOC)
    • 20 *.yml files (441 LOC)
    • 4 *.java files (49 LOC)
    • 1 *.rs files (38 LOC)
    • 3 *.swift files (28 LOC)
    • 4 *.py files (23 LOC)
    • 2 *.php files (19 LOC)
    • 2 *.rb files (12 LOC)
  • " *.go" is biggest, containing 44.77% of LOC.
  • " *.rb" is smallest, containing 0.12% of LOC.


*.go4299 LOC (44%) 51 files
*.yaml3818 LOC (39%) 144 files
*.js875 LOC (9%) 64 files
*.yml441 LOC (4%) 20 files
*.java49 LOC (<1%) 4 files
*.rs38 LOC (<1%) 1 file
*.swift28 LOC (<1%) 3 files
*.py23 LOC (<1%) 4 files
*.php19 LOC (<1%) 2 files
*.rb12 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 ".*/package[.]json".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 10 files match defined criteria (483 LOC, 6.2% vs. main code):
    • 2 *.gradle files (234 LOC)
    • 7 *.sh files (181 LOC)
    • 1 *.bat files (68 LOC)
  • " *.gradle" is biggest, containing 48.45% of LOC.
  • " *.bat" is smallest, containing 14.08% of LOC.


*.gradle234 LOC (48%) 2 files
*.sh181 LOC (37%) 7 files
*.bat68 LOC (14%) 1 file
Other Code
txt
mod
properties
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 ".*/go[.]mod".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 69 files match defined criteria (4,186 LOC, 54.0% vs. main code):
    • 39 *.md files (3,243 LOC)
    • 26 *.json files (721 LOC)
    • 2 *.txt files (179 LOC)
    • 1 *.mod files (26 LOC)
    • 1 *.properties files (17 LOC)
  • " *.md" is biggest, containing 77.47% of LOC.
  • " *.properties" is smallest, containing 0.41% of LOC.


*.md3243 LOC (77%) 39 files
*.json721 LOC (17%) 26 files
*.txt179 LOC (4%) 2 files
*.mod26 LOC (<1%) 1 file
*.properties17 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 17:29