GraphQLSwift / Graphiti

The Swift GraphQL Schema framework for macOS and Linux
MIT License
531 stars 67 forks source link

Fix "method_complexity" issue in Definition/Reflection #43

Open paulofaria opened 4 years ago

paulofaria commented 4 years ago

Function name has a Cognitive Complexity of 12 (exceeds 5 allowed). We should break this function into smaller functions.

https://codeclimate.com/github/GraphQLSwift/Graphiti/Sources/Graphiti/Definition/Reflection.swift#issue_5f28b20e356d980001000037