microsoft / vscode-node-sqlite3
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
gyp
npmignore
dockerignore
txt
gypi
cmd
  • 19 extensions are included in analyses: js, sh, h, cc, md, bat, json, yml, gitignore, sql, gyp, npmignore, py, dockerignore, txt, html, gypi, cmd, ts
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (8 files).
    • exclude files with path like ".*/deps/.*" (Dependencies) (3 files).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (1 file).
    • exclude files with path like ".*/git[-]history[.]txt" (Git history) (1 file).
    • exclude files with path like ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (0 files).
    • exclude files with path like ".*/sokrates_conventions[.]json" (Sokrates scoping conventions) (1 file).
    • exclude files with path like ".*[.]txt" (Text files) (0 files).
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.

main3086 LOC (19%) 21 files
test2006 LOC (12%) 34 files
generated0 LOC (0%) 0 files
build and deployment430 LOC (2%) 9 files
other10585 LOC (65%) 9 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
gyp
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 21 files match defined criteria (3,086 lines of code, 100.0% vs. main code):
    • 4 *.cc files (1,840 lines of code)
    • 7 *.h files (741 lines of code)
    • 7 *.js files (317 lines of code)
    • 1 *.yml files (108 lines of code)
    • 1 *.gyp files (65 lines of code)
    • 1 *.cmd files (15 lines of code)
  • " *.cc" is biggest, containing 59.62% of code.
  • " *.cmd" is smallest, containing 0.49% of code.


*.cc1840 LOC (59%) 4 files
*.h741 LOC (24%) 7 files
*.js317 LOC (10%) 7 files
*.yml108 LOC (3%) 1 files
*.gyp65 LOC (2%) 1 files
*.cmd15 LOC (<1%) 1 files
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 ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with any line of content like ".*/simpletest/.*".
  • 34 files match defined criteria (2,006 lines of code, 65.0% vs. main code):
    • 31 *.js files (1,981 lines of code)
    • 1 *.html files (14 lines of code)
    • 1 *.bat files (8 lines of code)
    • 1 *.sh files (3 lines of code)
  • " *.js" is biggest, containing 98.75% of code.
  • " *.sh" is smallest, containing 0.15% of code.


*.js1981 LOC (98%) 31 files
*.html14 LOC (<1%) 1 files
*.bat8 LOC (<1%) 1 files
*.sh3 LOC (<1%) 1 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
  • 9 files match defined criteria (430 lines of code, 13.9% vs. main code):
    • 7 *.sh files (255 lines of code)
    • 2 *.bat files (175 lines of code)
  • " *.sh" is biggest, containing 59.3% of code.
  • " *.bat" is smallest, containing 40.7% of code.


*.sh255 LOC (59%) 7 files
*.bat175 LOC (40%) 2 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]npmignore".
    • 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 ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 9 files match defined criteria (10,585 lines of code, 343.0% vs. main code):
    • 2 *.sql files (10,062 lines of code)
    • 4 *.md files (412 lines of code)
    • 2 *.json files (75 lines of code)
    • 1 *.js files (36 lines of code)
  • " *.sql" is biggest, containing 95.06% of code.
  • " *.js" is smallest, containing 0.34% of code.


*.sql10062 LOC (95%) 2 files
*.md412 LOC (3%) 4 files
*.json75 LOC (<1%) 2 files
*.js36 LOC (<1%) 1 files
Analyzers
Info about analyzers used for source code examinations.
  • *.cc files are analyzed with CppAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.h files are analyzed with CppAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.js files are analyzed with JavaScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.yml files are analyzed with YamlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.gyp files are analyzed with PythonAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Basic heuristic dependency analysis
  • *.cmd files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2022-01-30 22:24