Showing 25 of 69 total issues
Function newClient
has 568 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newClient() *schema.Resource {
return &schema.Resource{
Create: createClient,
Read: readClient,
File resource_auth0_client.go
has 872 lines of code (exceeds 500 allowed). Consider refactoring. Open
Open
package auth0
import (
"net/http"
"strconv"
Function newTenant
has 231 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newTenant() *schema.Resource {
return &schema.Resource{
Create: createTenant,
Read: readTenant,
File structure_auth0_connection.go
has 676 lines of code (exceeds 500 allowed). Consider refactoring. Open
Open
package auth0
import (
"log"
Function newLogStream
has 166 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newLogStream() *schema.Resource {
return &schema.Resource{
Create: createLogStream,
Read: readLogStream,
Function newAction
has 110 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newAction() *schema.Resource {
return &schema.Resource{
Create: createAction,
Read: readAction,
Function newUser
has 99 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newUser() *schema.Resource {
return &schema.Resource{
Create: createUser,
Read: readUser,
Update: updateUser,
Function newResourceServer
has 97 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newResourceServer() *schema.Resource {
return &schema.Resource{
Create: createResourceServer,
Read: readResourceServer,
Function newGuardian
has 91 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newGuardian() *schema.Resource {
return &schema.Resource{
Create: createGuardian,
Read: readGuardian,
Function newEmail
has 80 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newEmail() *schema.Resource {
return &schema.Resource{
Create: createEmail,
Read: readEmail,
Function Provider
has 71 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func Provider() *schema.Provider {
provider := &schema.Provider{
Schema: map[string]*schema.Schema{
"domain": {
Type: schema.TypeString,
Function newBranding
has 68 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newBranding() *schema.Resource {
return &schema.Resource{
Create: createBranding,
Read: readBranding,
Update: updateBranding,
Function newOrganization
has 66 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newOrganization() *schema.Resource {
return &schema.Resource{
Create: createOrganization,
Read: readOrganization,
Function readGuardian
has 59 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func readGuardian(d *schema.ResourceData, m interface{}) error {
api := m.(*management.Management)
mt, err := api.Guardian.MultiFactor.Phone.MessageTypes()
if err != nil {
return err
Function newEmailTemplate
has 56 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newEmailTemplate() *schema.Resource {
return &schema.Resource{
Create: createEmailTemplate,
Read: readEmailTemplate,
Function newHook
has 56 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newHook() *schema.Resource {
return &schema.Resource{
Create: createHook,
Read: readHook,
Function expandConnection
has 54 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func expandConnection(d ResourceData) *management.Connection {
c := &management.Connection{
Name: String(d, "name", IsNewResource()),
DisplayName: String(d, "display_name"),
Function newCustomDomain
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newCustomDomain() *schema.Resource {
return &schema.Resource{
Create: createCustomDomain,
Read: readCustomDomain,
Function readGuardian
has 8 return statements (exceeds 4 allowed). Open
Open
func readGuardian(d *schema.ResourceData, m interface{}) error {
api := m.(*management.Management)
mt, err := api.Guardian.MultiFactor.Phone.MessageTypes()
if err != nil {
return err
Function deployAction
has 6 return statements (exceeds 4 allowed). Open
Open
func deployAction(d *schema.ResourceData, m interface{}) error {
if d.Get("deploy").(bool) == true {
api := m.(*management.Management)