aws / res
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
jinja2
txt
in
mod
gitattributes
editorconfig
ini
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.

main131582 LOC (80%) 1,035 files
test25085 LOC (15%) 185 files
generated0 LOC (0%) 0 files
build and deployment2937 LOC (1%) 70 files
other3150 LOC (1%) 55 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
jinja2
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1035 files match defined criteria (131,582 LOC, 100.0% vs. main code):
    • 745 *.py files (80,266 LOC)
    • 112 *.tsx files (34,571 LOC)
    • 63 *.ts files (8,032 LOC)
    • 73 *.jinja2 files (5,185 LOC)
    • 4 *.yaml files (1,613 LOC)
    • 7 *.go files (970 LOC)
    • 5 *.ps1 files (354 LOC)
    • 5 *.scss files (264 LOC)
    • 14 *.in files (130 LOC)
    • 1 *.css files (59 LOC)
    • 2 *.html files (48 LOC)
    • 2 *.c files (46 LOC)
    • 1 *.toml files (35 LOC)
    • 1 *.xml files (9 LOC)
  • " *.py" is biggest, containing 61% of LOC.
  • " *.xml" is smallest, containing 0.01% of LOC.


*.py80266 LOC (61%) 745 files
*.tsx34571 LOC (26%) 112 files
*.ts8032 LOC (6%) 63 files
*.jinja25185 LOC (3%) 73 files
*.yaml1613 LOC (1%) 4 files
*.go970 LOC (<1%) 7 files
*.ps1354 LOC (<1%) 5 files
*.scss264 LOC (<1%) 5 files
*.in130 LOC (<1%) 14 files
*.css59 LOC (<1%) 1 file
*.html48 LOC (<1%) 2 files
*.c46 LOC (<1%) 2 files
*.toml35 LOC (<1%) 1 file
*.xml9 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 ".*_tests[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 185 files match defined criteria (25,085 LOC, 19.1% vs. main code):
    • 170 *.py files (24,351 LOC)
    • 10 *.go files (641 LOC)
    • 4 *.sh files (87 LOC)
    • 1 *.tsx files (6 LOC)
  • " *.py" is biggest, containing 97.07% of LOC.
  • " *.tsx" is smallest, containing 0.02% of LOC.


*.py24351 LOC (97%) 170 files
*.go641 LOC (2%) 10 files
*.sh87 LOC (<1%) 4 files
*.tsx6 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
  • 70 files match defined criteria (2,937 LOC, 2.2% vs. main code). All matches are in *.sh files.


*.sh2937 LOC (100%) 70 files
Other Code
txt
ini
properties
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • 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 ".*[.]txt".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 55 files match defined criteria (3,150 LOC, 2.4% vs. main code):
    • 24 *.txt files (1,525 LOC)
    • 12 *.json files (884 LOC)
    • 16 *.md files (529 LOC)
    • 1 *.ini files (146 LOC)
    • 1 *.properties files (39 LOC)
    • 1 *.mod files (27 LOC)
  • " *.txt" is biggest, containing 48.41% of LOC.
  • " *.mod" is smallest, containing 0.86% of LOC.


*.txt1525 LOC (48%) 24 files
*.json884 LOC (28%) 12 files
*.md529 LOC (16%) 16 files
*.ini146 LOC (4%) 1 file
*.properties39 LOC (1%) 1 file
*.mod27 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:57