horizoncd/horizon

View on GitHub
core/controller/envtemplate/controller.go

Summary

Maintainability
A
1 hr
Test Coverage
F
58%

Showing 2 of 2 total issues

Method controller.UpdateEnvTemplate has 8 return statements (exceeds 4 allowed).
Open

func (c *controller) UpdateEnvTemplate(ctx context.Context,
applicationID uint, env string, r *UpdateEnvTemplateRequest) error {
const op = "env template controller: update env templates"
 
// 1. get application
Severity: Major
Found in core/controller/envtemplate/controller.go - About 50 mins to fix

    Method controller.UpdateEnvTemplateV2 has 8 return statements (exceeds 4 allowed).
    Open

    func (c *controller) UpdateEnvTemplateV2(ctx context.Context, applicationID uint, env string,
    r *UpdateEnvTemplateRequest) error {
    const op = "env template controller: update env templates"
     
    // 1. get application
    Severity: Major
    Found in core/controller/envtemplate/controller.go - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status