manicmaniac/ApolloDeveloperKit

View on GitHub

Showing 6 of 9 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Confirmed

extension DebuggableInterceptorProvider: DebugInitializeInterceptorDelegate {
func interceptor<Operation>(_ interceptor: ApolloInterceptor, willSendOperation operation: Operation) where Operation: GraphQLOperation {
delegate?.interceptorProvider(self, willSendOperation: operation)
}
 
 
Sources/ApolloDeveloperKit/DebuggableRequestChainNetworkTransport.swift on lines 35..43

Similar blocks of code found in 2 locations. Consider refactoring.
Confirmed

extension DebuggableRequestChainNetworkTransport: DebuggableInterceptorProviderDelegate {
func interceptorProvider<Operation>(_ interceptorProvider: InterceptorProvider, willSendOperation operation: Operation) where Operation: GraphQLOperation {
delegate?.networkTransport(self, willSendOperation: operation)
}
 
 
Sources/ApolloDeveloperKit/Network/Interceptor/DebuggableInterceptorProvider.swift on lines 48..56

Similar blocks of code found in 2 locations. Consider refactoring.
Confirmed

extension ErrorLike: JSONEncodable {
var jsonValue: JSONValue {
return [
"columnNumber": columnNumber.jsonValue,
"fileName": fileName.jsonValue,
Severity: Minor
Found in Sources/ApolloDeveloperKit/Schema/Schema+JSONEncodable.swift and 1 other location - About 50 mins to fix
Sources/ApolloDeveloperKit/Schema/Schema+JSONEncodable.swift on lines 52..62

Similar blocks of code found in 2 locations. Consider refactoring.
Confirmed

extension Query: JSONEncodable {
var jsonValue: JSONValue {
return [
"document": document.jsonValue,
"graphQLErrors": graphQLErrors.jsonValue,
Severity: Minor
Found in Sources/ApolloDeveloperKit/Schema/Schema+JSONEncodable.swift and 1 other location - About 50 mins to fix
Sources/ApolloDeveloperKit/Schema/Schema+JSONEncodable.swift on lines 40..50

Similar blocks of code found in 2 locations. Consider refactoring.
Confirmed

extension StateChange: JSONEncodable {
var jsonValue: JSONValue {
return [
"dataWithOptimisticResults": dataWithOptimisticResults.jsonValue,
"state": state.jsonValue
Severity: Minor
Found in Sources/ApolloDeveloperKit/Schema/Schema+JSONEncodable.swift and 1 other location - About 30 mins to fix
Sources/ApolloDeveloperKit/Schema/Schema+JSONEncodable.swift on lines 20..27

Similar blocks of code found in 2 locations. Consider refactoring.
Confirmed

extension State: JSONEncodable {
var jsonValue: JSONValue {
return [
"mutations": mutations.jsonValue,
"queries": queries.jsonValue
Severity: Minor
Found in Sources/ApolloDeveloperKit/Schema/Schema+JSONEncodable.swift and 1 other location - About 30 mins to fix
Sources/ApolloDeveloperKit/Schema/Schema+JSONEncodable.swift on lines 11..18
Severity
Category
Status
Source
Language