apache / openserverless-cli
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
bats
txt
mod
gitattributes
gitmodules
nix
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.

main4185 LOC (47%) 42 files
test3549 LOC (40%) 53 files
generated0 LOC (0%) 0 files
build and deployment222 LOC (2%) 7 files
other806 LOC (9%) 35 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
nix
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 42 files match defined criteria (4,185 LOC, 100.0% vs. main code):
    • 39 *.go files (4,017 LOC)
    • 1 *.ps1 files (85 LOC)
    • 1 *.py files (43 LOC)
    • 1 *.nix files (40 LOC)
  • " *.go" is biggest, containing 95.99% of LOC.
  • " *.nix" is smallest, containing 0.96% of LOC.


*.go4017 LOC (95%) 39 files
*.ps185 LOC (2%) 1 file
*.py43 LOC (1%) 1 file
*.nix40 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
bats
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 ".*/test_.*".
  • 53 files match defined criteria (3,549 LOC, 84.8% vs. main code):
    • 18 *.go files (2,091 LOC)
    • 33 *.bats files (1,438 LOC)
    • 1 *.html files (12 LOC)
    • 1 *.sh files (8 LOC)
  • " *.go" is biggest, containing 58.92% of LOC.
  • " *.sh" is smallest, containing 0.23% of LOC.


*.go2091 LOC (58%) 18 files
*.bats1438 LOC (40%) 33 files
*.html12 LOC (<1%) 1 file
*.sh8 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 ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitattributes".
  • 7 files match defined criteria (222 LOC, 5.3% vs. main code). All matches are in *.sh files.


*.sh222 LOC (100%) 7 files
Other Code
mod
txt
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 ".*/[.]gitignore".
    • files with paths like ".*/go[.]mod".
  • 35 files match defined criteria (806 LOC, 19.3% vs. main code):
    • 23 *.md files (562 LOC)
    • 4 *.json files (115 LOC)
    • 1 *.mod files (107 LOC)
    • 7 *.txt files (22 LOC)
  • " *.md" is biggest, containing 69.73% of LOC.
  • " *.txt" is smallest, containing 2.73% of LOC.


*.md562 LOC (69%) 23 files
*.json115 LOC (14%) 4 files
*.mod107 LOC (13%) 1 file
*.txt22 LOC (2%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 21:00