apache / openwhisk-runtime-swift
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
gitattributes
properties
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.

main1436 LOC (31%) 20 files
test2093 LOC (45%) 70 files
generated0 LOC (0%) 0 files
build and deployment197 LOC (4%) 13 files
other869 LOC (18%) 16 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 ".*".
  • 20 files match defined criteria (1,436 LOC, 100.0% vs. main code):
    • 16 *.swift files (1,124 LOC)
    • 4 *.py files (312 LOC)
  • " *.swift" is biggest, containing 78.27% of LOC.
  • " *.py" is smallest, containing 21.73% of LOC.


*.swift1124 LOC (78%) 16 files
*.py312 LOC (21%) 4 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 ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
  • 70 files match defined criteria (2,093 LOC, 145.8% vs. main code):
    • 15 *.scala files (1,026 LOC)
    • 52 *.swift files (990 LOC)
    • 1 *.gradle files (41 LOC)
    • 2 *.sh files (36 LOC)
  • " *.scala" is biggest, containing 49.02% of LOC.
  • " *.sh" is smallest, containing 1.72% of LOC.


*.scala1026 LOC (49%) 15 files
*.swift990 LOC (47%) 52 files
*.gradle41 LOC (1%) 1 file
*.sh36 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 ".*[.]gradle".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 13 files match defined criteria (197 LOC, 13.7% vs. main code):
    • 7 *.gradle files (109 LOC)
    • 1 *.bat files (76 LOC)
    • 5 *.sh files (12 LOC)
  • " *.gradle" is biggest, containing 55.33% of LOC.
  • " *.sh" is smallest, containing 6.09% of LOC.


*.gradle109 LOC (55%) 7 files
*.bat76 LOC (38%) 1 file
*.sh12 LOC (6%) 5 files
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 ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 16 files match defined criteria (869 LOC, 60.5% vs. main code):
    • 7 *.md files (445 LOC)
    • 2 *.txt files (179 LOC)
    • 6 *.swift files (147 LOC)
    • 1 *.json files (98 LOC)
  • " *.md" is biggest, containing 51.21% of LOC.
  • " *.json" is smallest, containing 11.28% of LOC.


*.md445 LOC (51%) 7 files
*.txt179 LOC (20%) 2 files
*.swift147 LOC (16%) 6 files
*.json98 LOC (11%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 20:56