Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Go CycloNew to Visual Studio Code? Get it now.
Go Cyclo

Go Cyclo

Cyclomatics

|
1,002 installs
| (0) | Free
Extension for GO language code insights
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Go Cyclo

This extension provides cyclomatic complexity & maintainability index for a go lang projects

Developed By

Dwaraka Uttarkar - dwaraka.uttarkar@gmail.com

Limitations

  • Currently works only on Mac & Linux.

Prerequisites

  • go lang version > 1.16 installed

Features

Shows the average cyclomatic complexity of a go file.

Screenshot showing average complexity ---

Get analysis of all functions in a file

A) Click on the status bar item at the bottom to get function level complexity analysis

Screenshot of status bar item at the bottom to get function level complexity analysis

Example 2: Click on the status bar item at the bottom.

Screenshot status bar at bottom ---

Get package level analysis on right-clicking folder

Right click the package/folder

Screenshot to right click on package

Total complexity shown in output channel

Package level analysis

Commands Available

  1. GoCyclo: Run Go Cyclo - Activates/Reloads the extenstion.
  2. GoCyclo: Toggle Show/Hide Complexity Bar - Show/Hide status bar item.
  3. GoCyclo: Get Total Complexity - Shows file level analysis for open file

Known Issues

  1. Average complexity rendering is one key stroke lagging.

Release Notes

0.0.1

  • Initial release for the Plugin, only average complexity of the file is shown.

1.0.0

  • Show total Complexity for the current file at function level when the status bar item at the bottom is clicked.
  • New Command "GoCyclo: Get Total Complexity" to generate the function level complexity.

1.0.4

  • Showing maintainability index along with cyclomatic complexity in total complexity analysis at function level

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft