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.
---
Get analysis of all functions in a file
A) Click on the status bar item at the bottom to get function level complexity analysis
Example 2: Click on the status bar item at the bottom.
---
Get package level analysis on right-clicking folder
Right click the package/folder
Total complexity shown in output channel
Commands Available
GoCyclo: Run Go Cyclo - Activates/Reloads the extenstion.
GoCyclo: Toggle Show/Hide Complexity Bar - Show/Hide status bar item.
GoCyclo: Get Total Complexity - Shows file level analysis for open file
Known Issues
- 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!
| |