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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rentacop/version.rb +1 -1
  3. data/rentacop.yml +12 -6
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13f4ad6a537c8164fc2c3f5bb17af6a77e05a4ea7ad1a0992903160853812a66
4
- data.tar.gz: 97f4ecc6120330dfc55d29876e628ae9e04db9ef21619bd9b74575ae76e820e2
3
+ metadata.gz: 7603c018f4213b0937dd8e9d9f46fbc9f9a73d3909767117d49789f1b2053353
4
+ data.tar.gz: '028bca585e46bc7ff579a4bed08316f83b39dc3cd4fd220fbba1778de483b46d'
5
5
  SHA512:
6
- metadata.gz: d19c0f1ddb36645c5495389c28e0e11fbee9368a292c9f2b5a4e91a13099a4ee5825f00b162d1d53d8c05ca16d52efa65e7bd3c30abe824cc4420021b1246046
7
- data.tar.gz: 8b4374be6f7b4c76f98535879498e4f21f13da0659dd135521d1445c27b150e92d4e3f6ca14ac70e7ff8a1d80ab672ff65a3acd814400f09d9413bfad86990c4
6
+ metadata.gz: cb82fe2b71a4cfb346e098435c499fbab6c5f878e1015297975e9c5c4a313565e07f186611840451d70716515389101e29abc4e1132504a6f98c3652ed1dfb70
7
+ data.tar.gz: a36c5bff6a6bdc9045f5cd2178fa3b29e36c6372fa07a0064f3cd7115499ae0bba389860c62256921cc2e560a4b488bbf09a3c929830a85d24fa1d51f1e37cb2
@@ -1,3 +1,3 @@
1
1
  module Rentacop
2
- VERSION = '0.1.0'
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,7 +63,7 @@ Metrics/CyclomaticComplexity:
62
63
  Max: 10
63
64
 
64
65
  # Allow somewhat longer methods
65
- # Consider multiline arrays/hashes as one line
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 multiline arrays to end with a comma for easy alteration
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 multiline hashes to end with a comma for easy alteration
185
+ # Prefer multi-line hashes to end with a comma for easy alteration
180
186
  Style/TrailingCommaInHashLiteral:
181
187
  EnforcedStyleForMultiline: comma
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rentacop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit