rubocop-graphql 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/default.yml +31 -2
- data/lib/rubocop/cop/graphql/argument_uniqueness.rb +12 -6
- data/lib/rubocop/cop/graphql/default_for_optional_argument.rb +187 -0
- data/lib/rubocop/cop/graphql/disallowed_types.rb +114 -0
- data/lib/rubocop/cop/graphql/field_definitions.rb +27 -2
- data/lib/rubocop/cop/graphql/field_description.rb +11 -0
- data/lib/rubocop/cop/graphql/field_hash_key.rb +1 -1
- data/lib/rubocop/cop/graphql/field_method.rb +3 -1
- data/lib/rubocop/cop/graphql/not_authorized_node_type.rb +3 -2
- data/lib/rubocop/cop/graphql/nullability_mismatch.rb +137 -0
- data/lib/rubocop/cop/graphql/object_description.rb +198 -17
- data/lib/rubocop/cop/graphql/ordered_fields.rb +10 -2
- data/lib/rubocop/cop/graphql/unnecessary_field_alias.rb +62 -5
- data/lib/rubocop/cop/graphql/unused_argument.rb +1 -21
- data/lib/rubocop/cop/graphql.rb +44 -0
- data/lib/rubocop/cop/graphql_cops.rb +4 -29
- data/lib/rubocop/graphql/argument/kwargs.rb +18 -0
- data/lib/rubocop/graphql/argument.rb +46 -1
- data/lib/rubocop/graphql/field/kwargs.rb +24 -0
- data/lib/rubocop/graphql/field.rb +4 -0
- data/lib/rubocop/graphql/version.rb +1 -1
- data/lib/rubocop-graphql.rb +1 -1
- metadata +8 -18
metadata
CHANGED
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-graphql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Tsepelev
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-11-07 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
|
-
- !ruby/object:Gem::Dependency
|
|
13
|
-
name: bundler
|
|
14
|
-
requirement: !ruby/object:Gem::Requirement
|
|
15
|
-
requirements:
|
|
16
|
-
- - "~>"
|
|
17
|
-
- !ruby/object:Gem::Version
|
|
18
|
-
version: '2.0'
|
|
19
|
-
type: :development
|
|
20
|
-
prerelease: false
|
|
21
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
-
requirements:
|
|
23
|
-
- - "~>"
|
|
24
|
-
- !ruby/object:Gem::Version
|
|
25
|
-
version: '2.0'
|
|
26
12
|
- !ruby/object:Gem::Dependency
|
|
27
13
|
name: rake
|
|
28
14
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -71,7 +57,7 @@ dependencies:
|
|
|
71
57
|
requirements:
|
|
72
58
|
- - ">="
|
|
73
59
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 1.
|
|
60
|
+
version: '1.89'
|
|
75
61
|
- - "<"
|
|
76
62
|
- !ruby/object:Gem::Version
|
|
77
63
|
version: '2'
|
|
@@ -81,7 +67,7 @@ dependencies:
|
|
|
81
67
|
requirements:
|
|
82
68
|
- - ">="
|
|
83
69
|
- !ruby/object:Gem::Version
|
|
84
|
-
version: 1.
|
|
70
|
+
version: '1.89'
|
|
85
71
|
- - "<"
|
|
86
72
|
- !ruby/object:Gem::Version
|
|
87
73
|
version: '2'
|
|
@@ -97,10 +83,13 @@ files:
|
|
|
97
83
|
- config/default.yml
|
|
98
84
|
- lib/refinements/underscore_string.rb
|
|
99
85
|
- lib/rubocop-graphql.rb
|
|
86
|
+
- lib/rubocop/cop/graphql.rb
|
|
100
87
|
- lib/rubocop/cop/graphql/argument_description.rb
|
|
101
88
|
- lib/rubocop/cop/graphql/argument_name.rb
|
|
102
89
|
- lib/rubocop/cop/graphql/argument_uniqueness.rb
|
|
103
90
|
- lib/rubocop/cop/graphql/context_write_in_type.rb
|
|
91
|
+
- lib/rubocop/cop/graphql/default_for_optional_argument.rb
|
|
92
|
+
- lib/rubocop/cop/graphql/disallowed_types.rb
|
|
104
93
|
- lib/rubocop/cop/graphql/extract_input_type.rb
|
|
105
94
|
- lib/rubocop/cop/graphql/extract_type.rb
|
|
106
95
|
- lib/rubocop/cop/graphql/field_definitions.rb
|
|
@@ -116,6 +105,7 @@ files:
|
|
|
116
105
|
- lib/rubocop/cop/graphql/method_shadowed_by_resolver_method.rb
|
|
117
106
|
- lib/rubocop/cop/graphql/multiple_field_definitions.rb
|
|
118
107
|
- lib/rubocop/cop/graphql/not_authorized_node_type.rb
|
|
108
|
+
- lib/rubocop/cop/graphql/nullability_mismatch.rb
|
|
119
109
|
- lib/rubocop/cop/graphql/object_description.rb
|
|
120
110
|
- lib/rubocop/cop/graphql/ordered_arguments.rb
|
|
121
111
|
- lib/rubocop/cop/graphql/ordered_fields.rb
|