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 +4 -4
- data/default_overcommit.yml +1 -0
- data/default_rubocop.yml +11 -1
- data/lib/lifen/ruby_style/version.rb +1 -1
- data/style_guide.md +16 -0
- 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: 65e1b988bd876540a6d7885a18606a0ec7ae318b14bf0ef4da37588eff5ae93b
|
4
|
+
data.tar.gz: c260e574dbdd3c5da8751e909e743843275f9fe70e661e4f45c5423cfce7f3ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02a1fa372eeb95537d4b0c7ef6a36de04c4cc2973cf01db3012ba0cd492731e54b4207c449e71bd2682532c5372081b2781bc7d303dda390c2ff3c91d48466e4
|
7
|
+
data.tar.gz: 8dd7829b59784d538e6483e84b4b7a20fb743291caeb1c2781b00641d106958a43d4d8ee5957f5308dfb418184f737dfdbbe623a5f820c3add952c8988fb9aeb
|
data/default_overcommit.yml
CHANGED
data/default_rubocop.yml
CHANGED
@@ -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:
|
145
|
+
Max: 5
|
136
146
|
|
137
147
|
RSpec/NotToNot:
|
138
148
|
EnforcedStyle: to_not
|
data/style_guide.md
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2020-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: overcommit
|