aws / aws-sdk-js
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
feature
txt
rake
coffee
npmignore
jshintrc
eslintignore
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.

main36751 LOC (3%) 721 files
test18667 LOC (1%) 147 files
generated21951 LOC (2%) 44 files
build and deployment64 LOC (<1%) 3 files
other994943 LOC (92%) 1,383 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
rake
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 721 files match defined criteria (36,751 LOC, 100.0% vs. main code):
    • 620 *.js files (23,804 LOC)
    • 47 *.rb files (11,470 LOC)
    • 17 *.ts files (680 LOC)
    • 26 *.erb files (343 LOC)
    • 5 *.rake files (246 LOC)
    • 4 *.css files (156 LOC)
    • 2 *.gemspec files (52 LOC)
  • " *.js" is biggest, containing 64.77% of LOC.
  • " *.gemspec" is smallest, containing 0.14% of LOC.


*.js23804 LOC (64%) 620 files
*.rb11470 LOC (31%) 47 files
*.ts680 LOC (1%) 17 files
*.erb343 LOC (<1%) 26 files
*.rake246 LOC (<1%) 5 files
*.css156 LOC (<1%) 4 files
*.gemspec52 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
coffee
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/karma[.]conf[.]js".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/[Mm]ocks/.*".
    • files with paths like ".*[-]test[-].*".
  • 147 files match defined criteria (18,667 LOC, 50.8% vs. main code):
    • 78 *.js files (16,646 LOC)
    • 62 *.feature files (1,272 LOC)
    • 3 *.html files (532 LOC)
    • 2 *.coffee files (126 LOC)
    • 1 *.css files (54 LOC)
    • 1 *.rb files (37 LOC)
  • " *.js" is biggest, containing 89.17% of LOC.
  • " *.rb" is smallest, containing 0.2% of LOC.


*.js16646 LOC (89%) 78 files
*.feature1272 LOC (6%) 62 files
*.html532 LOC (2%) 3 files
*.coffee126 LOC (<1%) 2 files
*.css54 LOC (<1%) 1 file
*.rb37 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "//[ ]*Generated by .*".
  • 44 files match defined criteria (21,951 LOC, 59.7% vs. main code). All matches are in *.js files.


*.js21951 LOC (100%) 44 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 ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
  • 3 files match defined criteria (64 LOC, 0.2% vs. main code). All matches are in *.js files.


*.js64 LOC (100%) 3 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]markdown".
    • files with paths like ".*/[.]eslintignore".
  • 1383 files match defined criteria (994,943 LOC, 2707.3% vs. main code):
    • 1,370 *.json files (993,912 LOC)
    • 8 *.md files (774 LOC)
    • 4 *.txt files (193 LOC)
    • 1 *.markdown files (64 LOC)
  • " *.json" is biggest, containing 99.9% of LOC.
  • " *.markdown" is smallest, containing 0.01% of LOC.


*.json993912 LOC (99%) 1,370 files
*.md774 LOC (<1%) 8 files
*.txt193 LOC (<1%) 4 files
*.markdown64 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-03 20:38