horizoncd/horizon

View on GitHub
core/http/api/v2/cluster/routers.go

Summary

Maintainability
B
5 hrs
Test Coverage

Showing 1 of 1 total issue

Method API.RegisterRoute has 150 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (api *API) RegisterRoute(engine *gin.Engine) {
apiV2Group := engine.Group("/apis/core/v2")
apiV2Routes := route.Routes{
{
Method: http.MethodPost,
Severity: Major
Found in core/http/api/v2/cluster/routers.go - About 5 hrs to fix
    Category
    Status