boxt_rubocop 2.14.0 → 2.14.2
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/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: a6c7992d588a507c18bf762566d186c3c07b4459e8dfb423297a56cc2c4bbee6
|
4
|
+
data.tar.gz: 663baf6bca5fd8745bd127fe202d335adffa2a2d37cefb79fc9d37f37208ff09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ee989a4efdb748875b4fecc50a7070b2e99a7be0e81eabae6ca397f67f91c756f529f33b2b78ce5879652b77c0cb42d1629ac4197df22ce654af8bc41828efb
|
7
|
+
data.tar.gz: 956a3d80168f925800b91d4371d2cc90a6842037da56f9a6fad5cfd7d54227540144aa60ee40dbd11093718876456c661fda0f3c80119f36f42ba674cb7bab27
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.14.
|
1
|
+
2.14.2
|
@@ -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
|
|