boxt_rubocop 2.14.0 → 2.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rubocop/cop/boxt/api_path_format.rb +1 -1
- data/lib/rubocop/cop/boxt/api_type_parameters.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71e8e2ed924e7dbdf9399bce18affcae43125de33d5e07d3f97f395895a68747
|
4
|
+
data.tar.gz: 910183ce861e4170942c5f5a15edfbe16d88d2d2d999b06c7bd2be6b3799bf85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c39a33abfde393c731ed10bbe5ea86057745bed728942cf8b8ac28aa00a3f64173fd4d6e90877beed65c249a65534e027e8e838975426727063ace8f3dd52f6
|
7
|
+
data.tar.gz: f641599031bf78150f0483070933ee356acecfa6c7038768f37c147eae85bf02186c499354533460838c8288d70d27d80360af0988585083887d75453c4c599c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.14.
|
1
|
+
2.14.1
|
@@ -23,7 +23,7 @@ module RuboCop
|
|
23
23
|
# get "/installation-days"
|
24
24
|
# namespace "password-resets"
|
25
25
|
#
|
26
|
-
class ApiPathFormat < Base
|
26
|
+
class ApiPathFormat < RuboCop::Cop::Base
|
27
27
|
def_node_matcher :path_defining_method_with_string_path, <<~PATTERN
|
28
28
|
(send nil? {:post | :get | :namespace} (:str $_))
|
29
29
|
PATTERN
|
@@ -14,7 +14,7 @@ module RuboCop
|
|
14
14
|
# requires :name, type: String
|
15
15
|
# optional :age, type: Integer
|
16
16
|
#
|
17
|
-
class ApiTypeParameters < Cop
|
17
|
+
class ApiTypeParameters < RuboCop::Cop::Base
|
18
18
|
API_MESSAGE = "Ensure each parameter has a type specified, e.g., `type: String`."
|
19
19
|
ENTITY_MESSAGE = "Ensure each parameter has a type specified, e.g., `documentation: { type: String }`."
|
20
20
|
|