aws / aws-northstar
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
mdx
txt
eslintignore
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.

main8738 LOC (63%) 149 files
test3838 LOC (27%) 62 files
generated0 LOC (0%) 0 files
build and deployment86 LOC (<1%) 4 files
other1201 LOC (8%) 27 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 ".*".
  • 149 files match defined criteria (8,738 LOC, 100.0% vs. main code):
    • 118 *.tsx files (7,359 LOC)
    • 30 *.ts files (1,378 LOC)
    • 1 *.js files (1 LOC)
  • " *.tsx" is biggest, containing 84.22% of LOC.
  • " *.js" is smallest, containing 0.01% of LOC.


*.tsx7359 LOC (84%) 118 files
*.ts1378 LOC (15%) 30 files
*.js1 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 ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
  • 62 files match defined criteria (3,838 LOC, 43.9% vs. main code):
    • 53 *.tsx files (3,392 LOC)
    • 7 *.ts files (421 LOC)
    • 2 *.js files (25 LOC)
  • " *.tsx" is biggest, containing 88.38% of LOC.
  • " *.js" is smallest, containing 0.65% of LOC.


*.tsx3392 LOC (88%) 53 files
*.ts421 LOC (10%) 7 files
*.js25 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 4 files match defined criteria (86 LOC, 1.0% vs. main code). All matches are in *.sh files.


*.sh86 LOC (100%) 4 files
Other Code
mdx
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]prettierignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mdx".
    • files with paths like ".*/[.]eslintignore".
  • 27 files match defined criteria (1,201 LOC, 13.7% vs. main code):
    • 8 *.json files (392 LOC)
    • 7 *.tsx files (357 LOC)
    • 3 *.ts files (210 LOC)
    • 5 *.md files (164 LOC)
    • 2 *.mdx files (55 LOC)
    • 1 *.html files (20 LOC)
    • 1 *.txt files (3 LOC)
  • " *.json" is biggest, containing 32.64% of LOC.
  • " *.txt" is smallest, containing 0.25% of LOC.


*.json392 LOC (32%) 8 files
*.tsx357 LOC (29%) 7 files
*.ts210 LOC (17%) 3 files
*.md164 LOC (13%) 5 files
*.mdx55 LOC (4%) 2 files
*.html20 LOC (1%) 1 file
*.txt3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:12