aws / aws-for-fluent-bit
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
mod
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.

main5462 LOC (46%) 37 files
test563 LOC (4%) 12 files
generated0 LOC (0%) 0 files
build and deployment2061 LOC (17%) 30 files
other3572 LOC (30%) 61 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,462 LOC, 100.0% vs. main code):
    • 8 *.yaml files (1,365 LOC)
    • 6 *.ps1 files (1,361 LOC)
    • 1 *.h files (1,279 LOC)
    • 3 *.go files (717 LOC)
    • 13 *.py files (470 LOC)
    • 2 *.java files (163 LOC)
    • 1 *.c files (48 LOC)
    • 2 *.xml files (38 LOC)
    • 1 *.toml files (21 LOC)
  • " *.yaml" is biggest, containing 24.99% of LOC.
  • " *.toml" is smallest, containing 0.38% of LOC.


*.yaml1365 LOC (24%) 8 files
*.ps11361 LOC (24%) 6 files
*.h1279 LOC (23%) 1 file
*.go717 LOC (13%) 3 files
*.py470 LOC (8%) 13 files
*.java163 LOC (2%) 2 files
*.c48 LOC (<1%) 1 file
*.xml38 LOC (<1%) 2 files
*.toml21 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[.].*".
  • 12 files match defined criteria (563 LOC, 10.3% vs. main code):
    • 7 *.py files (520 LOC)
    • 2 *.java files (22 LOC)
    • 1 *.bat files (11 LOC)
    • 2 *.sh files (10 LOC)
  • " *.py" is biggest, containing 92.36% of LOC.
  • " *.sh" is smallest, containing 1.78% of LOC.


*.py520 LOC (92%) 7 files
*.java22 LOC (3%) 2 files
*.bat11 LOC (1%) 1 file
*.sh10 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 ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pom[.]xml".
  • 30 files match defined criteria (2,061 LOC, 37.7% vs. main code):
    • 28 *.sh files (1,903 LOC)
    • 2 *.xml files (158 LOC)
  • " *.sh" is biggest, containing 92.33% of LOC.
  • " *.xml" is smallest, containing 7.67% of LOC.


*.sh1903 LOC (92%) 28 files
*.xml158 LOC (7%) 2 files
Other Code
txt
properties
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 ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]properties".
  • 61 files match defined criteria (3,572 LOC, 65.4% vs. main code):
    • 22 *.md files (2,649 LOC)
    • 23 *.json files (788 LOC)
    • 11 *.txt files (58 LOC)
    • 1 *.yaml files (51 LOC)
    • 2 *.properties files (14 LOC)
    • 2 *.mod files (12 LOC)
  • " *.md" is biggest, containing 74.16% of LOC.
  • " *.mod" is smallest, containing 0.34% of LOC.


*.md2649 LOC (74%) 22 files
*.json788 LOC (22%) 23 files
*.txt58 LOC (1%) 11 files
*.yaml51 LOC (1%) 1 file
*.properties14 LOC (<1%) 2 files
*.mod12 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:08