beforeyoubid/graphql-schema-diff

View on GitHub

Showing 3 of 18 total issues

Avoid deeply nested control flow statements.
Open

if (matchingArgument.type.kind === 'NonNullType') {
this.mismatches.argumentsMadeNullable.push({ argument, type, field: field2 });
}
Severity: Major
Found in src/index.ts - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

    if (!isInputValueBasicObject(argument.type) && argument.type.kind === 'NonNullType') {
    this.mismatches.addedNotNullArguments.push({ field: field2, argument, type });
    } else {
    this.mismatches.addedArguments.push({ field: field2, argument, type });
    }
    Severity: Major
    Found in src/index.ts - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

      if (
      isArgument &&
      notEmpty(argumentField) &&
      isInputValueDefinition(field) &&
      isInputValueDefinition(field2)
      Severity: Major
      Found in src/index.ts - About 45 mins to fix
        Severity
        Category
        Status
        Source
        Language