rollbar/terraform-provider-rollbar

View on GitHub
rollbar/resource_project.go

Summary

Maintainability
A
0 mins
Test Coverage

Function resourceProjectCreate has 53 lines of code (exceeds 50 allowed). Consider refactoring.
Wontfix

func resourceProjectCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
    name := d.Get("name").(string)
    l := log.With().Str("name", name).Logger()
    l.Info().Msg("Creating new Rollbar project resource")

Severity: Minor
Found in rollbar/resource_project.go - About 1 hr to fix

    Function resourceProjectCreate has 6 return statements (exceeds 4 allowed).
    Wontfix

    func resourceProjectCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
        name := d.Get("name").(string)
        l := log.With().Str("name", name).Logger()
        l.Info().Msg("Creating new Rollbar project resource")
    
    
    Severity: Major
    Found in rollbar/resource_project.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status