aws / amazon-q-developer-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
snap
txt
proto
ui
nu
plist
mjs
fish
desktop
vscodeignore
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.

main260293 LOC (92%) 2,287 files
test9774 LOC (3%) 99 files
generated0 LOC (0%) 0 files
build and deployment876 LOC (<1%) 14 files
other9641 LOC (3%) 204 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
nu
ui
fish
desktop
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 2287 files match defined criteria (260,293 LOC, 100.0% vs. main code):
    • 1,937 *.rs files (230,310 LOC)
    • 136 *.ts files (14,483 LOC)
    • 57 *.tsx files (5,950 LOC)
    • 50 *.toml files (2,243 LOC)
    • 32 *.js files (1,990 LOC)
    • 8 *.py files (1,411 LOC)
    • 7 *.proto files (1,350 LOC)
    • 15 *.zsh files (596 LOC)
    • 3 *.css files (564 LOC)
    • 5 *.html files (293 LOC)
    • 11 *.java files (244 LOC)
    • 2 *.nu files (221 LOC)
    • 4 *.ui files (212 LOC)
    • 2 *.fish files (129 LOC)
    • 1 *.bash files (122 LOC)
    • 5 *.xml files (68 LOC)
    • 4 *.yaml files (57 LOC)
    • 6 *.sql files (31 LOC)
    • 1 *.desktop files (11 LOC)
    • 1 *.mjs files (8 LOC)
  • " *.rs" is biggest, containing 88.48% of LOC.
  • " *.mjs" is smallest, containing 0% of LOC.


*.rs230310 LOC (88%) 1,937 files
*.ts14483 LOC (5%) 136 files
*.tsx5950 LOC (2%) 57 files
*.toml2243 LOC (<1%) 50 files
*.js1990 LOC (<1%) 32 files
*.py1411 LOC (<1%) 8 files
*.proto1350 LOC (<1%) 7 files
*.zsh596 LOC (<1%) 15 files
*.css564 LOC (<1%) 3 files
*.html293 LOC (<1%) 5 files
*.java244 LOC (<1%) 11 files
*.nu221 LOC (<1%) 2 files
*.ui212 LOC (<1%) 4 files
*.fish129 LOC (<1%) 2 files
*.bash122 LOC (<1%) 1 file
*.xml68 LOC (<1%) 5 files
*.yaml57 LOC (<1%) 4 files
*.sql31 LOC (<1%) 6 files
*.desktop11 LOC (<1%) 1 file
*.mjs8 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
snap
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/vitest[.].*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*__test__.*".
  • 99 files match defined criteria (9,774 LOC, 3.8% vs. main code):
    • 48 *.ts files (4,899 LOC)
    • 22 *.snap files (2,498 LOC)
    • 15 *.rs files (1,976 LOC)
    • 2 *.py files (158 LOC)
    • 4 *.sh files (80 LOC)
    • 1 *.zsh files (73 LOC)
    • 2 *.yaml files (36 LOC)
    • 2 *.toml files (35 LOC)
    • 3 *.js files (19 LOC)
  • " *.ts" is biggest, containing 50.12% of LOC.
  • " *.js" is smallest, containing 0.19% of LOC.


*.ts4899 LOC (50%) 48 files
*.snap2498 LOC (25%) 22 files
*.rs1976 LOC (20%) 15 files
*.py158 LOC (1%) 2 files
*.sh80 LOC (<1%) 4 files
*.zsh73 LOC (<1%) 1 file
*.yaml36 LOC (<1%) 2 files
*.toml35 LOC (<1%) 2 files
*.js19 LOC (<1%) 3 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 ".*/pnpm.*[.]ya?ml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
  • 14 files match defined criteria (876 LOC, 0.3% vs. main code):
    • 10 *.sh files (777 LOC)
    • 1 *.bat files (68 LOC)
    • 2 *.gradle files (23 LOC)
    • 1 *.yaml files (8 LOC)
  • " *.sh" is biggest, containing 88.7% of LOC.
  • " *.yaml" is smallest, containing 0.91% of LOC.


*.sh777 LOC (88%) 10 files
*.bat68 LOC (7%) 1 file
*.gradle23 LOC (2%) 2 files
*.yaml8 LOC (<1%) 1 file
Other Code
txt
plist
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 ".*[.]plist".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[.]vscodeignore".
  • 204 files match defined criteria (9,641 LOC, 3.7% vs. main code):
    • 6 *.txt files (4,602 LOC)
    • 145 *.json files (3,796 LOC)
    • 35 *.md files (1,071 LOC)
    • 14 *.svg files (98 LOC)
    • 2 *.rs files (50 LOC)
    • 2 *.plist files (24 LOC)
  • " *.txt" is biggest, containing 47.73% of LOC.
  • " *.plist" is smallest, containing 0.25% of LOC.


*.txt4602 LOC (47%) 6 files
*.json3796 LOC (39%) 145 files
*.md1071 LOC (11%) 35 files
*.svg98 LOC (1%) 14 files
*.rs50 LOC (<1%) 2 files
*.plist24 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 01:01