rentacop 0.1.0 → 0.1.1
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/lib/rentacop/version.rb +1 -1
- data/rentacop.yml +12 -6
- 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: 7603c018f4213b0937dd8e9d9f46fbc9f9a73d3909767117d49789f1b2053353
|
|
4
|
+
data.tar.gz: '028bca585e46bc7ff579a4bed08316f83b39dc3cd4fd220fbba1778de483b46d'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb82fe2b71a4cfb346e098435c499fbab6c5f878e1015297975e9c5c4a313565e07f186611840451d70716515389101e29abc4e1132504a6f98c3652ed1dfb70
|
|
7
|
+
data.tar.gz: a36c5bff6a6bdc9045f5cd2178fa3b29e36c6372fa07a0064f3cd7115499ae0bba389860c62256921cc2e560a4b488bbf09a3c929830a85d24fa1d51f1e37cb2
|
data/lib/rentacop/version.rb
CHANGED
data/rentacop.yml
CHANGED
|
@@ -13,7 +13,7 @@ AllCops:
|
|
|
13
13
|
Layout/AccessModifierIndentation:
|
|
14
14
|
EnforcedStyle: outdent
|
|
15
15
|
|
|
16
|
-
# Align
|
|
16
|
+
# Align multi-line arguments normally
|
|
17
17
|
Layout/ArgumentAlignment:
|
|
18
18
|
EnforcedStyle: with_fixed_indentation
|
|
19
19
|
|
|
@@ -48,10 +48,11 @@ Lint/MissingSuper:
|
|
|
48
48
|
Metrics/AbcSize:
|
|
49
49
|
Max: 30
|
|
50
50
|
|
|
51
|
-
# Blocks in
|
|
51
|
+
# Blocks in some places are long by design
|
|
52
52
|
Metrics/BlockLength:
|
|
53
53
|
Exclude:
|
|
54
|
-
- spec/**/*_spec.rb
|
|
54
|
+
- 'spec/**/*_spec.rb'
|
|
55
|
+
- '*.gemspec'
|
|
55
56
|
|
|
56
57
|
# Allow some longer classes
|
|
57
58
|
Metrics/ClassLength:
|
|
@@ -62,7 +63,7 @@ Metrics/CyclomaticComplexity:
|
|
|
62
63
|
Max: 10
|
|
63
64
|
|
|
64
65
|
# Allow somewhat longer methods
|
|
65
|
-
# Consider
|
|
66
|
+
# Consider multi-line arrays/hashes as one line
|
|
66
67
|
Metrics/MethodLength:
|
|
67
68
|
Max: 25
|
|
68
69
|
CountAsOne:
|
|
@@ -168,14 +169,19 @@ Style/RescueModifier:
|
|
|
168
169
|
Style/RescueStandardError:
|
|
169
170
|
EnforcedStyle: implicit
|
|
170
171
|
|
|
172
|
+
# Avoid forcing safe navigation as it is usually less readable and sometimes
|
|
173
|
+
# just inappropriate
|
|
174
|
+
Style/SafeNavigation:
|
|
175
|
+
Enabled: false
|
|
176
|
+
|
|
171
177
|
# Allow perl style global variables like `$?`
|
|
172
178
|
Style/SpecialGlobalVars:
|
|
173
179
|
Enabled: false
|
|
174
180
|
|
|
175
|
-
# Prefer
|
|
181
|
+
# Prefer multi-line arrays to end with a comma for easy alteration
|
|
176
182
|
Style/TrailingCommaInArrayLiteral:
|
|
177
183
|
EnforcedStyleForMultiline: comma
|
|
178
184
|
|
|
179
|
-
# Prefer
|
|
185
|
+
# Prefer multi-line hashes to end with a comma for easy alteration
|
|
180
186
|
Style/TrailingCommaInHashLiteral:
|
|
181
187
|
EnforcedStyleForMultiline: comma
|