Add a rule to enforce resolver type annotations
Compare changes
Files
4
rubocop/cop/graphql/resolver_type.rb
0 → 100644
+ 50
− 0
This MR adds a new Rubocop rule: Graphql/ResolverType
.
This rule enforces that every resolver declares its type explicitly using a top level DSL method.
The reasons for this are:
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
@gitlab-com/gl-security/appsec