lifen-ruby-style 1.0.2 → 1.0.3

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: 8611124008c5537cb23d55f58dc2f6119cb43a5eb1bd073b0e938100a094e439
4
- data.tar.gz: 997ac45632aaac79deed3031a7470b20d0146a9ff335bdcf2098b18165a89b9d
3
+ metadata.gz: 65e1b988bd876540a6d7885a18606a0ec7ae318b14bf0ef4da37588eff5ae93b
4
+ data.tar.gz: c260e574dbdd3c5da8751e909e743843275f9fe70e661e4f45c5423cfce7f3ff
5
5
  SHA512:
6
- metadata.gz: 5e3a5f1659b0afd9f7f2a3c74215af21c6873d350a3cbd4508086a6e02039f1df9d22e0dffcc1f7d7ebebff27e5529392e291bbe7868dd9ecb27e753910a56ff
7
- data.tar.gz: 2fe07fb3c0d99834984f4856fe9c7e1da37608cdea90325d464a1a78e0248078fb1a74250688709f18a6fd05d35953170fee25ef74627a9a5f74499921c982e0
6
+ metadata.gz: 02a1fa372eeb95537d4b0c7ef6a36de04c4cc2973cf01db3012ba0cd492731e54b4207c449e71bd2682532c5372081b2781bc7d303dda390c2ff3c91d48466e4
7
+ data.tar.gz: 8dd7829b59784d538e6483e84b4b7a20fb743291caeb1c2781b00641d106958a43d4d8ee5957f5308dfb418184f737dfdbbe623a5f820c3add952c8988fb9aeb
@@ -19,6 +19,7 @@ PreCommit:
19
19
  RuboCop:
20
20
  enabled: true
21
21
  command: ["bundle", "exec", "rubocop"]
22
+ problem_on_unmodified_line: ignore
22
23
 
23
24
  GoFmt:
24
25
  enabled: false
@@ -87,6 +87,9 @@ Metrics/PerceivedComplexity:
87
87
  Naming/MemoizedInstanceVariableName:
88
88
  EnforcedStyleForLeadingUnderscores: required
89
89
 
90
+ Style/BlockDelimiters:
91
+ EnforcedStyle: braces_for_chaining
92
+
90
93
  Style/ClassAndModuleChildren:
91
94
  Enabled: false
92
95
 
@@ -116,6 +119,13 @@ Rails/DynamicFindBy:
116
119
  Enabled: true
117
120
  AutoCorrect: false
118
121
 
122
+ Rails/UnknownEnv:
123
+ Environments:
124
+ - production
125
+ - development
126
+ - test
127
+ - staging
128
+
119
129
  RSpec/AnyInstance:
120
130
  Enabled: false
121
131
 
@@ -132,7 +142,7 @@ RSpec/MultipleExpectations:
132
142
  Enabled: false
133
143
 
134
144
  RSpec/NestedGroups:
135
- Max: 4
145
+ Max: 5
136
146
 
137
147
  RSpec/NotToNot:
138
148
  EnforcedStyle: to_not
@@ -3,7 +3,7 @@
3
3
  module Lifen
4
4
  module RubyStyle
5
5
 
6
- VERSION = '1.0.2'
6
+ VERSION = '1.0.3'
7
7
 
8
8
  end
9
9
  end
@@ -651,6 +651,22 @@ end
651
651
  Enabled: false // example groups can have the same description string.
652
652
  ```
653
653
 
654
+ #### Block Delimiters
655
+
656
+ ##### EnforcedStyle: braces_for_chaining
657
+
658
+ ```ruby
659
+ # bad
660
+ words.each do |word|
661
+ word.flip.flop
662
+ end.join("-")
663
+
664
+ # good
665
+ words.each { |word|
666
+ word.flip.flop
667
+ }.join("-")
668
+ ```
669
+
654
670
  </details>
655
671
 
656
672
  ### Default rules
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lifen-ruby-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Lifen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: overcommit