rentacop 0.0.1 → 0.1.0

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: 60d93aa394189dda601036339b531325c3af87d4e62b73df1730bb8e351f8e79
4
- data.tar.gz: 25c2dbe09f6ff61a6b67ba3c7fbd6b5261aa81713b90ac2810e5f5ffe5fe8f19
3
+ metadata.gz: 13f4ad6a537c8164fc2c3f5bb17af6a77e05a4ea7ad1a0992903160853812a66
4
+ data.tar.gz: 97f4ecc6120330dfc55d29876e628ae9e04db9ef21619bd9b74575ae76e820e2
5
5
  SHA512:
6
- metadata.gz: ffbc18d465abe1148498893911b136078db3645f99a6d1843b19a690c504f0d202d0d6171a66a48ccb978b6b309fdd1dbfd96dcca66bbecd66ac1171b557442c
7
- data.tar.gz: 22b743115948e9a4b520c5e91760e623b9c63c88c5c9e8a9768b7c22df9d1c7130c246a4f8b0e0b0b7415b62a0fdff6bcc45ad29accc5df9699d5fec515a6f47
6
+ metadata.gz: d19c0f1ddb36645c5495389c28e0e11fbee9368a292c9f2b5a4e91a13099a4ee5825f00b162d1d53d8c05ca16d52efa65e7bd3c30abe824cc4420021b1246046
7
+ data.tar.gz: 8b4374be6f7b4c76f98535879498e4f21f13da0659dd135521d1445c27b150e92d4e3f6ca14ac70e7ff8a1d80ab672ff65a3acd814400f09d9413bfad86990c4
@@ -1,3 +1,3 @@
1
1
  module Rentacop
2
- VERSION = '0.0.1'
2
+ VERSION = '0.1.0'
3
3
  end
data/rentacop.yml CHANGED
@@ -62,8 +62,13 @@ Metrics/CyclomaticComplexity:
62
62
  Max: 10
63
63
 
64
64
  # Allow somewhat longer methods
65
+ # Consider multiline arrays/hashes as one line
65
66
  Metrics/MethodLength:
66
67
  Max: 25
68
+ CountAsOne:
69
+ - array
70
+ - hash
71
+ - heredoc
67
72
 
68
73
  # Allow some complexity
69
74
  Metrics/PerceivedComplexity:
@@ -155,6 +160,10 @@ Style/PerlBackrefs:
155
160
  Style/PreferredHashMethods:
156
161
  EnforcedStyle: verbose
157
162
 
163
+ # Allow one line `rescue` since it is useful in some cases
164
+ Style/RescueModifier:
165
+ Enabled: false
166
+
158
167
  # Prefer `rescue` over `rescue StandardError`
159
168
  Style/RescueStandardError:
160
169
  EnforcedStyle: implicit
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.0
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