Showing 23 of 37 total issues
Function resourceIntegrationCreateUpdateDelete
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func resourceIntegrationCreateUpdateDelete(integration string, bodyMap map[string]interface{}, d *schema.ResourceData, m interface{}, action Action) (zerolog.Logger, diag.Diagnostics) {
Function resourceTeamUserRead
has 5 return statements (exceeds 4 allowed). Open
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)
}
Function dataSourceTeamRead
has 5 return statements (exceeds 4 allowed). Open
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]