rf-stylez 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rf/stylez/version.rb +1 -1
- data/lib/rubocop/cop/lint/no_bang_state_machine_events.rb +1 -1
- data/lib/rubocop/cop/lint/no_grape_api.rb +1 -1
- data/lib/rubocop/cop/lint/no_http_party.rb +1 -1
- data/lib/rubocop/cop/lint/no_json.rb +1 -1
- data/lib/rubocop/cop/lint/no_untyped_raise.rb +1 -1
- data/lib/rubocop/cop/lint/obscure.rb +1 -1
- data/lib/rubocop/cop/lint/use_positive_int32_validator.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: '08dfc12d848751335a01204c44dd71f246b41f1a5c9182b345d01229e2e30eae'
|
4
|
+
data.tar.gz: 2a54cac09a961ca4824bd7db0c679eee2dd8ac5715d510e315e5ad9ca453746e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 223ba579fd8bf9064ae6337025a867db236c06bb200bfae34b7e226011cb2b3c5c5bc042f7903a53666f976a2721401ba03623e5105bea5cf998911d8bb09761
|
7
|
+
data.tar.gz: 9e8d8e2fcceb09750eabe0a124d440ad27cf0b17f15deb2b74feb2da4ef436d80738bc87e97d171f8baec65fae763fa796870d965a5f03eedb217a1521e47cb2
|
data/lib/rf/stylez/version.rb
CHANGED
@@ -17,7 +17,7 @@ module RuboCop
|
|
17
17
|
# ...
|
18
18
|
# end
|
19
19
|
# end
|
20
|
-
class NoBangStateMachineEvents <
|
20
|
+
class NoBangStateMachineEvents < Base
|
21
21
|
MSG = "Event names ending with a `!` define `!`-ended methods that do not raise"
|
22
22
|
|
23
23
|
def_node_matcher :is_state_machine_event?, "(send nil? :event (sym $_))"
|
@@ -12,7 +12,7 @@ module RuboCop
|
|
12
12
|
#
|
13
13
|
# # good
|
14
14
|
# class Foo < Api::Base
|
15
|
-
class NoGrapeAPI <
|
15
|
+
class NoGrapeAPI < Base
|
16
16
|
MSG = "Prefer inheriting `Api::AuthBase` or `Api::Base` instead of `Grape::API`."
|
17
17
|
|
18
18
|
def_node_matcher :inherits_Grape_API?, "(class (const ...) (const (const nil? :Grape) :API) ...)"
|
@@ -10,7 +10,7 @@ module RuboCop
|
|
10
10
|
# # good
|
11
11
|
# raise ArgumentError, 'foo'
|
12
12
|
#
|
13
|
-
class NoUntypedRaise <
|
13
|
+
class NoUntypedRaise < Base
|
14
14
|
MSG = "Do not raise untyped exceptions, specify the error type so it can be rescued specifically."
|
15
15
|
|
16
16
|
def_node_matcher :is_untyped_raise?, "(send nil? {:raise :fail} (str ...) ...)"
|
@@ -13,7 +13,7 @@ module RuboCop
|
|
13
13
|
# params do
|
14
14
|
# requires :id, type: Integer, positive_int32: true
|
15
15
|
# end
|
16
|
-
class UsePositiveInt32Validator <
|
16
|
+
class UsePositiveInt32Validator < Base
|
17
17
|
MSG = "If this Integer maps to a postgres Integer column, validate with `positive_int32: true`"
|
18
18
|
|
19
19
|
# check if the param is `requires` / `optional`
|