rentacop 0.0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rentacop/version.rb +1 -1
  3. data/rentacop.yml +20 -5
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60d93aa394189dda601036339b531325c3af87d4e62b73df1730bb8e351f8e79
4
- data.tar.gz: 25c2dbe09f6ff61a6b67ba3c7fbd6b5261aa81713b90ac2810e5f5ffe5fe8f19
3
+ metadata.gz: 7603c018f4213b0937dd8e9d9f46fbc9f9a73d3909767117d49789f1b2053353
4
+ data.tar.gz: '028bca585e46bc7ff579a4bed08316f83b39dc3cd4fd220fbba1778de483b46d'
5
5
  SHA512:
6
- metadata.gz: ffbc18d465abe1148498893911b136078db3645f99a6d1843b19a690c504f0d202d0d6171a66a48ccb978b6b309fdd1dbfd96dcca66bbecd66ac1171b557442c
7
- data.tar.gz: 22b743115948e9a4b520c5e91760e623b9c63c88c5c9e8a9768b7c22df9d1c7130c246a4f8b0e0b0b7415b62a0fdff6bcc45ad29accc5df9699d5fec515a6f47
6
+ metadata.gz: cb82fe2b71a4cfb346e098435c499fbab6c5f878e1015297975e9c5c4a313565e07f186611840451d70716515389101e29abc4e1132504a6f98c3652ed1dfb70
7
+ data.tar.gz: a36c5bff6a6bdc9045f5cd2178fa3b29e36c6372fa07a0064f3cd7115499ae0bba389860c62256921cc2e560a4b488bbf09a3c929830a85d24fa1d51f1e37cb2
@@ -1,3 +1,3 @@
1
1
  module Rentacop
2
- VERSION = '0.0.1'
2
+ VERSION = '0.1.1'
3
3
  end
data/rentacop.yml CHANGED
@@ -13,7 +13,7 @@ AllCops:
13
13
  Layout/AccessModifierIndentation:
14
14
  EnforcedStyle: outdent
15
15
 
16
- # Align multiline arguments normally
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 specs are long by design
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 multiline arrays to end with a comma for easy alteration
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 multiline hashes to end with a comma for easy alteration
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.0.1
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-16 00:00:00.000000000 Z
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