rentacop 0.0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rentacop/version.rb +1 -1
- data/rentacop.yml +20 -5
- metadata +2 -2
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,8 +63,13 @@ Metrics/CyclomaticComplexity:
|
|
62
63
|
Max: 10
|
63
64
|
|
64
65
|
# Allow somewhat longer methods
|
66
|
+
# Consider multi-line arrays/hashes as one line
|
65
67
|
Metrics/MethodLength:
|
66
68
|
Max: 25
|
69
|
+
CountAsOne:
|
70
|
+
- array
|
71
|
+
- hash
|
72
|
+
- heredoc
|
67
73
|
|
68
74
|
# Allow some complexity
|
69
75
|
Metrics/PerceivedComplexity:
|
@@ -155,18 +161,27 @@ Style/PerlBackrefs:
|
|
155
161
|
Style/PreferredHashMethods:
|
156
162
|
EnforcedStyle: verbose
|
157
163
|
|
164
|
+
# Allow one line `rescue` since it is useful in some cases
|
165
|
+
Style/RescueModifier:
|
166
|
+
Enabled: false
|
167
|
+
|
158
168
|
# Prefer `rescue` over `rescue StandardError`
|
159
169
|
Style/RescueStandardError:
|
160
170
|
EnforcedStyle: implicit
|
161
171
|
|
172
|
+
# Avoid forcing safe navigation as it is usually less readable and sometimes
|
173
|
+
# just inappropriate
|
174
|
+
Style/SafeNavigation:
|
175
|
+
Enabled: false
|
176
|
+
|
162
177
|
# Allow perl style global variables like `$?`
|
163
178
|
Style/SpecialGlobalVars:
|
164
179
|
Enabled: false
|
165
180
|
|
166
|
-
# Prefer
|
181
|
+
# Prefer multi-line arrays to end with a comma for easy alteration
|
167
182
|
Style/TrailingCommaInArrayLiteral:
|
168
183
|
EnforcedStyleForMultiline: comma
|
169
184
|
|
170
|
-
# Prefer
|
185
|
+
# Prefer multi-line hashes to end with a comma for easy alteration
|
171
186
|
Style/TrailingCommaInHashLiteral:
|
172
187
|
EnforcedStyleForMultiline: comma
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rentacop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Collection of more relaxed rubocop rules
|
14
14
|
email: db@dannyben.com
|