Skip to content

VSCode extension which shows the complexity information for TypeScript class members

License

Notifications You must be signed in to change notification settings

selfrefactor/code-complexity

This branch is 85 commits ahead of kisstkondoros/codemetrics:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 14, 2025
e0d197d · Jan 14, 2025
Dec 20, 2022
Dec 19, 2023
Jan 14, 2025
Feb 28, 2018
Dec 18, 2022
Feb 28, 2018
Aug 21, 2019
Apr 29, 2016
Jan 14, 2024
Dec 18, 2022
Dec 17, 2023
Jan 14, 2025
Jan 14, 2025
Dec 20, 2022

Repository files navigation

Code Complexity - Fork of Code Metrics

image

Fork of https://github.com/kisstkondoros/codecomplexity

Differences:

  • different way to show complexity. For complexity more than 12, number is shown inside the decoration. For complexity less than 12, decoration is shown as size of inner square.
  • no change of decorations on unsaved changes; only on save event.
  • hide decorations when file is dirty, i.e. changed but not yet saved. This helps with hanging decorations(decorations on wrong lines), but also to optimize performance.
  • using latest dependencies - main reason for the fork was to be able to update dependencies
  • limit to 50 decorations per file due to performance reasons
  • no lua/vue/html support
  • no second decoration, CodeLensEnabled is not used

Features

Code Complexity

Complexity value is shown inside decoration square if complexity is more than 12. If complexity is less than 12, decoration is shown as size of inner square.

Complexity between 0 and 12 is shown in green.

Complexity between 12 and 22 is shown in blue.

Complexity between 22 and 32 is shown in red.

Complexity above 32 is shown in purple.

About

VSCode extension which shows the complexity information for TypeScript class members

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.4%
  • JavaScript 2.5%
  • Shell 0.1%