aws / sagemaker-code-editor
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
vscodeignore
tst
txt
snap
diff
mjs
cmd
patch
plist
npmignore
eslintignore
gitattributes
desktop
coffee
editorconfig
tex
sty
jl
hlsl
cshtml
fish
iss
handlebars
hbs
gitmodules
shader
p6
fs
ini
lua
bib
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.

main853393 LOC (62%) 4,184 files
test252301 LOC (18%) 1,241 files
generated0 LOC (0%) 0 files
build and deployment2409 LOC (<1%) 107 files
other258215 LOC (18%) 864 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
iss
mjs
fish
desktop
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 4184 files match defined criteria (853,393 LOC, 100.0% vs. main code):
    • 3,689 *.ts files (793,188 LOC)
    • 243 *.css files (21,319 LOC)
    • 139 *.js files (19,915 LOC)
    • 65 *.rs files (13,404 LOC)
    • 16 *.html files (2,948 LOC)
    • 1 *.iss files (1,423 LOC)
    • 9 *.mjs files (313 LOC)
    • 6 *.ps1 files (288 LOC)
    • 1 *.fish files (170 LOC)
    • 4 *.zsh files (163 LOC)
    • 3 *.toml files (103 LOC)
    • 1 *.yaml files (75 LOC)
    • 2 *.desktop files (38 LOC)
    • 3 *.xml files (34 LOC)
    • 2 *.cmd files (12 LOC)
  • " *.ts" is biggest, containing 92.95% of LOC.
  • " *.cmd" is smallest, containing 0% of LOC.


*.ts793188 LOC (92%) 3,689 files
*.css21319 LOC (2%) 243 files
*.js19915 LOC (2%) 139 files
*.rs13404 LOC (1%) 65 files
*.html2948 LOC (<1%) 16 files
*.iss1423 LOC (<1%) 1 file
*.mjs313 LOC (<1%) 9 files
*.ps1288 LOC (<1%) 6 files
*.fish170 LOC (<1%) 1 file
*.zsh163 LOC (<1%) 4 files
*.toml103 LOC (<1%) 3 files
*.yaml75 LOC (<1%) 1 file
*.desktop38 LOC (<1%) 2 files
*.xml34 LOC (<1%) 3 files
*.cmd12 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
tst
snap
cshtml
coffee
handlebars
jl
p6
hbs
bib
sty
tex
shader
fs
hlsl
lua
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.]snap".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Ss]pecs/.*".
  • 1241 files match defined criteria (252,301 LOC, 29.6% vs. main code):
    • 919 *.ts files (224,308 LOC)
    • 55 *.js files (15,412 LOC)
    • 88 *.tst files (4,444 LOC)
    • 26 *.html files (3,897 LOC)
    • 59 *.snap files (1,560 LOC)
    • 16 *.css files (831 LOC)
    • 4 *.scss files (264 LOC)
    • 7 *.sh files (201 LOC)
    • 1 *.cu files (113 LOC)
    • 1 *.groovy files (106 LOC)
    • 2 *.py files (73 LOC)
    • 5 *.cpp files (55 LOC)
    • 2 *.pl files (55 LOC)
    • 1 *.ipynb files (53 LOC)
    • 4 *.less files (51 LOC)
    • 3 *.php files (43 LOC)
    • 3 *.tsx files (39 LOC)
    • 2 *.ps1 files (38 LOC)
    • 1 *.clj files (38 LOC)
    • 1 *.cshtml files (38 LOC)
    • 2 *.bat files (37 LOC)
    • 3 *.rs files (36 LOC)
    • 1 *.mm files (33 LOC)
    • 1 *.m files (33 LOC)
    • 4 *.yaml files (32 LOC)
    • 2 *.coffee files (32 LOC)
    • 1 *.jsx files (29 LOC)
    • 2 *.pug files (27 LOC)
    • 1 *.c files (27 LOC)
    • 1 *.cs files (27 LOC)
    • 1 *.handlebars files (26 LOC)
    • 2 *.xml files (26 LOC)
    • 1 *.rb files (26 LOC)
    • 1 *.java files (23 LOC)
    • 1 *.jl files (23 LOC)
    • 1 *.p6 files (22 LOC)
    • 1 *.hbs files (21 LOC)
    • 2 *.go files (21 LOC)
    • 1 *.bib files (19 LOC)
    • 1 *.sty files (18 LOC)
    • 1 *.cc files (18 LOC)
    • 1 *.tex files (16 LOC)
    • 1 *.vb files (16 LOC)
    • 1 *.shader files (15 LOC)
    • 1 *.dart files (15 LOC)
    • 1 *.fs files (14 LOC)
    • 1 *.swift files (13 LOC)
    • 1 *.r files (11 LOC)
    • 1 *.hlsl files (10 LOC)
    • 1 *.lua files (10 LOC)
    • 1 *.sql files (6 LOC)
  • " *.ts" is biggest, containing 88.9% of LOC.
  • " *.sql" is smallest, containing 0% of LOC.


*.ts224308 LOC (88%) 919 files
*.js15412 LOC (6%) 55 files
*.tst4444 LOC (1%) 88 files
*.html3897 LOC (1%) 26 files
*.snap1560 LOC (<1%) 59 files
*.css831 LOC (<1%) 16 files
*.scss264 LOC (<1%) 4 files
*.sh201 LOC (<1%) 7 files
*.cu113 LOC (<1%) 1 file
*.groovy106 LOC (<1%) 1 file
*.py73 LOC (<1%) 2 files
*.cpp55 LOC (<1%) 5 files
*.pl55 LOC (<1%) 2 files
*.ipynb53 LOC (<1%) 1 file
*.less51 LOC (<1%) 4 files
*.php43 LOC (<1%) 3 files
*.tsx39 LOC (<1%) 3 files
*.ps138 LOC (<1%) 2 files
*.clj38 LOC (<1%) 1 file
*.cshtml38 LOC (<1%) 1 file
*.bat37 LOC (<1%) 2 files
*.rs36 LOC (<1%) 3 files
*.mm33 LOC (<1%) 1 file
*.m33 LOC (<1%) 1 file
*.yaml32 LOC (<1%) 4 files
*.coffee32 LOC (<1%) 2 files
*.jsx29 LOC (<1%) 1 file
*.pug27 LOC (<1%) 2 files
*.c27 LOC (<1%) 1 file
*.cs27 LOC (<1%) 1 file
*.handlebars26 LOC (<1%) 1 file
*.xml26 LOC (<1%) 2 files
*.rb26 LOC (<1%) 1 file
*.java23 LOC (<1%) 1 file
*.jl23 LOC (<1%) 1 file
*.p622 LOC (<1%) 1 file
*.hbs21 LOC (<1%) 1 file
*.go21 LOC (<1%) 2 files
*.bib19 LOC (<1%) 1 file
*.sty18 LOC (<1%) 1 file
*.cc18 LOC (<1%) 1 file
*.tex16 LOC (<1%) 1 file
*.vb16 LOC (<1%) 1 file
*.shader15 LOC (<1%) 1 file
*.dart15 LOC (<1%) 1 file
*.fs14 LOC (<1%) 1 file
*.swift13 LOC (<1%) 1 file
*.r11 LOC (<1%) 1 file
*.hlsl10 LOC (<1%) 1 file
*.lua10 LOC (<1%) 1 file
*.sql6 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 ".*/package[.]json".
    • 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 ".*/[.]gitattributes".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/[.]gitmodules".
  • 107 files match defined criteria (2,409 LOC, 0.3% vs. main code):
    • 30 *.sh files (1,036 LOC)
    • 66 *.js files (1,013 LOC)
    • 11 *.bat files (360 LOC)
  • " *.sh" is biggest, containing 43.01% of LOC.
  • " *.bat" is smallest, containing 14.94% of LOC.


*.sh1036 LOC (43%) 30 files
*.js1013 LOC (42%) 66 files
*.bat360 LOC (14%) 11 files
Other Code
txt
diff
patch
plist
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/[.]vscodeignore".
    • files with paths like ".*/[.]npmignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]diff".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]patch".
  • 864 files match defined criteria (258,215 LOC, 30.3% vs. main code):
    • 636 *.json files (240,752 LOC)
    • 71 *.txt files (11,713 LOC)
    • 10 *.diff files (1,782 LOC)
    • 75 *.md files (1,474 LOC)
    • 4 *.patch files (1,408 LOC)
    • 55 *.svg files (653 LOC)
    • 7 *.js files (320 LOC)
    • 1 *.rst files (60 LOC)
    • 4 *.plist files (44 LOC)
    • 1 *.ini files (9 LOC)
  • " *.json" is biggest, containing 93.24% of LOC.
  • " *.ini" is smallest, containing 0% of LOC.


*.json240752 LOC (93%) 636 files
*.txt11713 LOC (4%) 71 files
*.diff1782 LOC (<1%) 10 files
*.md1474 LOC (<1%) 75 files
*.patch1408 LOC (<1%) 4 files
*.svg653 LOC (<1%) 55 files
*.js320 LOC (<1%) 7 files
*.rst60 LOC (<1%) 1 file
*.plist44 LOC (<1%) 4 files
*.ini9 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:59