rubocop-obsession 0.1.3 → 0.1.4
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: 47b14b8bd67398fccc5f92ba6e3e5b30bd76a47ec28a38694183cac973de17e4
|
4
|
+
data.tar.gz: bc60b8d77b8a2353abf4d0d3025161b5c581405507ecbe946f6401e9e3665951
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db8e7698d91d0ab2ef5cb95236164ac2bb0dc754944082c3705d88d87cf99ed1d8bb620cefba7e7817dcfc622d951aca9ee38be76fec566d7a6644a9a1bed111
|
7
|
+
data.tar.gz: 744cc5411803bdf92075645b9aa53d50133078f8491c0edc6bbade699805141b72297b1acabc85ed5321a1cc70a86282d5458bd5eb7df0483174211f153f7250
|
@@ -3,7 +3,8 @@
|
|
3
3
|
module RuboCop
|
4
4
|
module Cop
|
5
5
|
module Obsession
|
6
|
-
# This cop checks for private/protected methods that are not ordered
|
6
|
+
# This cop checks for private/protected methods that are not ordered
|
7
|
+
# correctly. It supports autocorrect.
|
7
8
|
#
|
8
9
|
# Code should read from top to bottom: methods should be defined in the
|
9
10
|
# same order as the order when they are first mentioned.
|
@@ -8,12 +8,12 @@ module RuboCop
|
|
8
8
|
# defaults or comments.
|
9
9
|
#
|
10
10
|
# - json(b) fields should have a default value like {} or [] so code can
|
11
|
-
#
|
12
|
-
#
|
11
|
+
# do my_field['field'] or my_field.first without fear that my_field is
|
12
|
+
# nil.
|
13
13
|
# - It is impossible to know the structure of a json(b) field just by
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
14
|
+
# reading the schema, because json(b) is an unstructured type. That's why
|
15
|
+
# an "Example: ..." Postgres comment should always be present when
|
16
|
+
# defining the field.
|
17
17
|
#
|
18
18
|
# @example
|
19
19
|
#
|