microsoft / TypeScript-Sublime-Plugin
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
sublime-snippet
sublime-settings
txt
sublime-keymap
YAML-tmLanguage
gitattributes
sublime-menu
sublime-commands
sublime-mousemap
sublime-build
  • 17 extensions are included in analyses: ts, py, sublime-snippet, json, js, sublime-settings, txt, sublime-keymap, html, YAML-tmLanguage, gitignore, gitattributes, sublime-menu, sublime-commands, sublime-mousemap, md, sublime-build
  • 6 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (3 files).
    • exclude files with path like ".*\.d\.ts" (Typescript definition files) (62 files).
    • 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) (4 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.

main4316 LOC (8%) 89 files
test0 LOC (0%) 0 files
generated23400 LOC (45%) 13 files
build and deployment0 LOC (0%) 0 files
other24020 LOC (46%) 16 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
yaml-tmlanguage
sublime-keymap
sublime-menu
sublime-snippet
sublime-settings
sublime-commands
sublime-mousemap
sublime-build
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 89 files match defined criteria (4,316 lines of code, 100.0% vs. main code):
    • 46 *.py files (3,303 lines of code)
    • 2 *.yaml-tmlanguage files (489 lines of code)
    • 4 *.sublime-keymap files (209 lines of code)
    • 2 *.html files (72 lines of code)
    • 1 *.sublime-menu files (65 lines of code)
    • 2 *.js files (62 lines of code)
    • 24 *.sublime-snippet files (48 lines of code)
    • 5 *.sublime-settings files (35 lines of code)
    • 1 *.sublime-commands files (20 lines of code)
    • 1 *.sublime-mousemap files (9 lines of code)
    • 1 *.sublime-build files (4 lines of code)
  • " *.py" is biggest, containing 76.53% of code.
  • " *.sublime-build" is smallest, containing 0.09% of code.


*.py3303 LOC (76%) 46 files
*.yaml-tmlanguage489 LOC (11%) 2 files
*.sublime-keymap209 LOC (4%) 4 files
*.html72 LOC (1%) 2 files
*.sublime-menu65 LOC (1%) 1 files
*.js62 LOC (1%) 2 files
*.sublime-snippet48 LOC (1%) 24 files
*.sublime-settings35 LOC (<1%) 5 files
*.sublime-commands20 LOC (<1%) 1 files
*.sublime-mousemap9 LOC (<1%) 1 files
*.sublime-build4 LOC (<1%) 1 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]generated[.][a-zA-Z]+".
  • 13 files match defined criteria (23,400 lines of code, 542.2% vs. main code). All matches are in *.json files.


*.json23400 LOC (100%) 13 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
  • 16 files match defined criteria (24,020 lines of code, 556.5% vs. main code):
    • 15 *.json files (23,902 lines of code)
    • 1 *.md files (118 lines of code)
  • " *.json" is biggest, containing 99.51% of code.
  • " *.md" is smallest, containing 0.49% of code.


*.json23902 LOC (99%) 15 files
*.md118 LOC (<1%) 1 files
Analyzers
Info about analyzers used for source code examinations.
  • *.py 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
  • *.yaml-tmlanguage 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
  • *.sublime-keymap files are analyzed with JsonAnalyzer:
    • 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
  • *.html files are analyzed with HtmlAnalyzer:
    • 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
  • *.sublime-menu files are analyzed with JsonAnalyzer:
    • 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
  • *.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
  • *.sublime-snippet files are analyzed with XmlAnalyzer:
    • 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
  • *.sublime-settings files are analyzed with JsonAnalyzer:
    • 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
  • *.sublime-commands files are analyzed with JsonAnalyzer:
    • 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
  • *.sublime-mousemap files are analyzed with JsonAnalyzer:
    • 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
  • *.sublime-build files are analyzed with JsonAnalyzer:
    • 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


2022-01-30 09:27