Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiroakis/vscode-gocyclo
vscode-gocyclo is a VSCode extension that displays the cyclomatic complexities of functions in Go source code
https://github.com/hiroakis/vscode-gocyclo
go golang vscode vscode-extension
Last synced: 6 days ago
JSON representation
vscode-gocyclo is a VSCode extension that displays the cyclomatic complexities of functions in Go source code
- Host: GitHub
- URL: https://github.com/hiroakis/vscode-gocyclo
- Owner: hiroakis
- License: mit
- Created: 2024-02-28T08:22:42.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-28T09:20:10.000Z (12 months ago)
- Last Synced: 2024-12-22T11:13:28.494Z (about 2 months ago)
- Topics: go, golang, vscode, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 979 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-gocyclo
vscode-gocyclo displays the cyclomatic complexities of functions in Go source code, utilizing [gocyclo](https://github.com/fzipp/gocyclo) for the calculations.
It automatically calculates the cyclomatic complexities of functions and displays the scores when you hover over a function. Whenever you modify and save a Go file, the complexities are recalculated to reflect the latest changes.# Requirement
To use vscode-gocyclo, you must have [gocyclo](https://github.com/fzipp/gocyclo) installed on your system.
# Usage
Simply hover over a function within a Go source file. This extension displays the cyclomatic complexity, for example, `Cyclomatic complexity: 18 (calculated by gocyclo)`, as shown in the image below.

Using [icooon-mono.com](https://icooon-mono.com/10232-calculation/)