rollbar/terraform-provider-rollbar

View on GitHub

Showing 23 of 37 total issues

Function resourceIntegrationCreateUpdateDelete has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func resourceIntegrationCreateUpdateDelete(integration string, bodyMap map[string]interface{}, d *schema.ResourceData, m interface{}, action Action) (zerolog.Logger, diag.Diagnostics) {
Severity: Minor
Found in rollbar/resource_integration.go - About 35 mins to fix

    Function resourceTeamUserRead has 5 return statements (exceeds 4 allowed).
    Open

    func resourceTeamUserRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
        teamID, email, err := teamUserFromID(d.Id())
        if err != nil {
            return diag.FromErr(err)
        }
    Severity: Major
    Found in rollbar/resource_team_user.go - About 35 mins to fix

      Function dataSourceTeamRead has 5 return statements (exceeds 4 allowed).
      Open

      func dataSourceTeamRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
          var team client.Team
          var l zerolog.Logger
          teamID, ok := d.GetOk("team_id")
          c := m.(map[string]*client.RollbarAPIClient)[schemaKeyToken]
      Severity: Major
      Found in rollbar/data_source_team.go - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language