-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR suppresses the following `InternalAffairs/OnSendWithoutOnCSend and `InternalAffairs/NodeTypeMultiplePredicates` offenses: ```console lib/rubocop/cop/graphql/unnecessary_field_camelize.rb:27:9: C: InternalAffairs/OnSendWithoutOnCSend: Cop defines on_send but not on_csend. def on_send(node) ... ^^^^^^^^^^^^^^^^^ lib/rubocop/cop/graphql/unused_argument.rb:106:13: C: [Correctable] InternalAffairs/NodeTypeMultiplePredicates: Use arg.type?(:kwarg, :kwoptarg) instead of checking for multiple node types. arg.kwarg_type? || arg.kwoptarg_type? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` `InternalAffairs/OnSendWithoutOnCSend` is disabled in `.rubocop.yml` as it doesn't seem useful for `rubocop-graphql`, which primarily focuses on DSLs that do not assume a receiver. `InternalAffairs/NodeTypeMultiplePredicates` is auto-corrected to enforce style consistency.
- Loading branch information
Showing
3 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters