Skip to content

Commit 547fc4c

Browse files
authored
Warn on unused fragments (#6601)
1 parent 0d69115 commit 547fc4c

File tree

1 file changed

+1
-1
lines changed
  • libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler

1 file changed

+1
-1
lines changed

libraries/apollo-compiler/src/main/kotlin/com/apollographql/apollo/compiler/ApolloCompiler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ internal fun List<Issue>.group(
627627
is DeprecatedUsage -> if (warnOnDeprecatedUsages) Severity.Warning else Severity.None
628628
is DifferentShape -> if (fieldsOnDisjointTypesMustMerge) Severity.Error else Severity.Warning
629629
is UnusedVariable -> Severity.Warning
630-
is UnusedFragment -> Severity.None
630+
is UnusedFragment -> Severity.Warning
631631
is IncompatibleDefinition -> Severity.Warning // This should probably be an error
632632
is DirectiveRedefinition -> Severity.Warning
633633
else -> Severity.Error

0 commit comments

Comments
 (0)