GoogleCloudPlatform / docker-clamav-malware-scanner
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
hcl
txt
mjs
prettierignore
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.

main1937 LOC (13%) 30 files
test681 LOC (4%) 2 files
generated5453 LOC (37%) 1 file
build and deployment158 LOC (1%) 2 files
other6476 LOC (44%) 13 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 30 files match defined criteria (1,937 LOC, 100.0% vs. main code):
    • 6 *.ts files (1,117 LOC)
    • 20 *.tf files (714 LOC)
    • 1 *.json5 files (54 LOC)
    • 2 *.yaml files (27 LOC)
    • 1 *.mjs files (25 LOC)
  • " *.ts" is biggest, containing 57.67% of LOC.
  • " *.mjs" is smallest, containing 1.29% of LOC.


*.ts1117 LOC (57%) 6 files
*.tf714 LOC (36%) 20 files
*.json554 LOC (2%) 1 file
*.yaml27 LOC (1%) 2 files
*.mjs25 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 ".*[.]spec[.]ts".
  • 2 files match defined criteria (681 LOC, 35.2% vs. main code). All matches are in *.ts files.


*.ts681 LOC (100%) 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".
  • 1 file matches defined criteria (5,453 LOC, 281.5% vs. main code). All matches are in *.json files.


*.json5453 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[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 2 files match defined criteria (158 LOC, 8.2% vs. main code). All matches are in *.sh files.


*.sh158 LOC (100%) 2 files
Other Code
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 ".*/[.]prettierignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 13 files match defined criteria (6,476 LOC, 334.3% vs. main code):
    • 6 *.json files (5,575 LOC)
    • 7 *.md files (901 LOC)
  • " *.json" is biggest, containing 86.09% of LOC.
  • " *.md" is smallest, containing 13.91% of LOC.


*.json5575 LOC (86%) 6 files
*.md901 LOC (13%) 7 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 15:15