Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.

![1.png](images/1.png)

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