aws / aws-network-policy-agent
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
mod
txt
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.

main5159 LOC (50%) 37 files
test4315 LOC (42%) 27 files
generated0 LOC (0%) 0 files
build and deployment406 LOC (3%) 11 files
other341 LOC (3%) 8 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 ".*".
  • 37 files match defined criteria (5,159 LOC, 100.0% vs. main code):
    • 29 *.go files (3,981 LOC)
    • 6 *.c files (1,082 LOC)
    • 1 *.py files (78 LOC)
    • 1 *.h files (18 LOC)
  • " *.go" is biggest, containing 77.17% of LOC.
  • " *.h" is smallest, containing 0.35% of LOC.


*.go3981 LOC (77%) 29 files
*.c1082 LOC (20%) 6 files
*.py78 LOC (1%) 1 file
*.h18 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 ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
  • 27 files match defined criteria (4,315 LOC, 83.6% vs. main code):
    • 26 *.go files (4,296 LOC)
    • 1 *.yaml files (19 LOC)
  • " *.go" is biggest, containing 99.56% of LOC.
  • " *.yaml" is smallest, containing 0.44% of LOC.


*.go4296 LOC (99%) 26 files
*.yaml19 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 11 files match defined criteria (406 LOC, 7.9% vs. main code). All matches are in *.sh files.


*.sh406 LOC (100%) 11 files
Other Code
mod
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
  • 8 files match defined criteria (341 LOC, 6.6% vs. main code):
    • 5 *.md files (241 LOC)
    • 2 *.mod files (88 LOC)
    • 1 *.txt files (12 LOC)
  • " *.md" is biggest, containing 70.67% of LOC.
  • " *.txt" is smallest, containing 3.52% of LOC.


*.md241 LOC (70%) 5 files
*.mod88 LOC (25%) 2 files
*.txt12 LOC (3%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:48