rubocop-graphql 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d6c5f9bf491004d53992e994ed1f1f1a4b71c8861678ac37aa477ccf56df8bd
|
4
|
+
data.tar.gz: 3e4d23b1d5b9037f5865007c417b4369331c3da3a45472253532b2307dcad154
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9de08df6e6bae9d0530fa7d05c521585b0017cc3c334c38c8975b7c4cf8dfc8f18b307ab4145311ba3d577ca0e2fc691938a6123e7b2d5436fb8892d8b1cf15f
|
7
|
+
data.tar.gz: 33c062e880965add9e25ab820e885bf2580c65041cee30ce1168a4e410cfece1af1bb0c3cadd7486ee98e67599f4ccc4b825e2f4bcae9996ee89924f47b14715
|
@@ -26,11 +26,6 @@ module RuboCop
|
|
26
26
|
|
27
27
|
MSG = "Missing type description"
|
28
28
|
|
29
|
-
# @!method has_i18n_description?(node)
|
30
|
-
def_node_matcher :has_i18n_description?, <<~PATTERN
|
31
|
-
(send nil? :description (send (const nil? :I18n) :t ...))
|
32
|
-
PATTERN
|
33
|
-
|
34
29
|
# @!method interface?(node)
|
35
30
|
def_node_matcher :interface?, <<~PATTERN
|
36
31
|
(send nil? :include (const ...))
|
@@ -53,8 +48,7 @@ module RuboCop
|
|
53
48
|
private
|
54
49
|
|
55
50
|
def has_description?(node)
|
56
|
-
|
57
|
-
description_method_call?(node)
|
51
|
+
description_method_call?(node)
|
58
52
|
end
|
59
53
|
|
60
54
|
def child_nodes(node)
|
@@ -20,7 +20,7 @@ module RuboCop
|
|
20
20
|
module DescriptionMethod
|
21
21
|
extend RuboCop::NodePattern::Macros
|
22
22
|
|
23
|
-
DESCRIPTION_STRING = "{
|
23
|
+
DESCRIPTION_STRING = "{str|dstr|const|send}"
|
24
24
|
|
25
25
|
# @!method description_method_call?(node)
|
26
26
|
def_node_matcher :description_method_call?, <<~PATTERN
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Tsepelev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|