apache / openserverless-runtimes
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
ini
mod
gitattributes
tpl
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.

main4422 LOC (22%) 71 files
test1983 LOC (9%) 36 files
generated6372 LOC (32%) 4 files
build and deployment77 LOC (<1%) 14 files
other7034 LOC (35%) 31 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 71 files match defined criteria (4,422 LOC, 100.0% vs. main code):
    • 26 *.go files (2,080 LOC)
    • 4 *.java files (618 LOC)
    • 19 *.py files (588 LOC)
    • 11 *.php files (488 LOC)
    • 1 *.tpl files (422 LOC)
    • 8 *.js files (206 LOC)
    • 1 *.twig files (17 LOC)
    • 1 *.toml files (3 LOC)
  • " *.go" is biggest, containing 47.04% of LOC.
  • " *.toml" is smallest, containing 0.07% of LOC.


*.go2080 LOC (47%) 26 files
*.java618 LOC (13%) 4 files
*.py588 LOC (13%) 19 files
*.php488 LOC (11%) 11 files
*.tpl422 LOC (9%) 1 file
*.js206 LOC (4%) 8 files
*.twig17 LOC (<1%) 1 file
*.toml3 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 ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
  • 36 files match defined criteria (1,983 LOC, 44.8% vs. main code):
    • 19 *.go files (1,348 LOC)
    • 13 *.scala files (581 LOC)
    • 1 *.gradle files (32 LOC)
    • 1 *.java files (14 LOC)
    • 2 *.sh files (8 LOC)
  • " *.go" is biggest, containing 67.98% of LOC.
  • " *.sh" is smallest, containing 0.4% of LOC.


*.go1348 LOC (67%) 19 files
*.scala581 LOC (29%) 13 files
*.gradle32 LOC (1%) 1 file
*.java14 LOC (<1%) 1 file
*.sh8 LOC (<1%) 2 files
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".
  • 4 files match defined criteria (6,372 LOC, 144.1% vs. main code). All matches are in *.json files.


*.json6372 LOC (100%) 4 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 ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 14 files match defined criteria (77 LOC, 1.7% vs. main code):
    • 12 *.sh files (73 LOC)
    • 2 *.gradle files (4 LOC)
  • " *.sh" is biggest, containing 94.81% of LOC.
  • " *.gradle" is smallest, containing 5.19% of LOC.


*.sh73 LOC (94%) 12 files
*.gradle4 LOC (5%) 2 files
Other Code
ini
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 31 files match defined criteria (7,034 LOC, 159.1% vs. main code):
    • 13 *.json files (6,512 LOC)
    • 5 *.md files (227 LOC)
    • 4 *.ini files (140 LOC)
    • 7 *.txt files (138 LOC)
    • 2 *.mod files (17 LOC)
  • " *.json" is biggest, containing 92.58% of LOC.
  • " *.mod" is smallest, containing 0.24% of LOC.


*.json6512 LOC (92%) 13 files
*.md227 LOC (3%) 5 files
*.ini140 LOC (1%) 4 files
*.txt138 LOC (1%) 7 files
*.mod17 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 21:01