yoshiki 8.0.0.pre.2 → 8.0.0.pre.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: d18fa7b1fe0b0ef1eed0cc107f3e610f22ced50865ad6c377195c027bfa8971e
4
- data.tar.gz: 1957ce60a48c40ad0efadfe6f48d4371cad1a98e1dc24d16afdacbc9b2e786e9
3
+ metadata.gz: 293051fb7ee2f1ce48cc864b6a20fdd57fc1013dabbe37e9458a92d6395bee70
4
+ data.tar.gz: 848ee2976be24f93911f2ba9c18dd086a20a1dfb158f973d276d802d7af0332f
5
5
  SHA512:
6
- metadata.gz: d2e63fdcd15134039cdcc5a3aec1baa4b38a9a66c2caacc946c74e5488d046281ab003fdb64a6b26b709ed799a614bb04a9c37b5883832c5018520d0a73957a2
7
- data.tar.gz: dd630f851c64b6c9e8e7f4fc2abe0cdcff927ac6a32878bdb21127d6b443660af3c22158980cbdd55382af05ef3b3ac126f49c6f5982e83ec18cb1745c65162a
6
+ metadata.gz: 3eec437322ba56a1ff74655cab81f86108d6d2dca0a31692b8ad9dfb39044045f4bc02bb13b2d5e857c76fa19ea975aa8065fdb530ac796d7985161292bed74b
7
+ data.tar.gz: d3c9e35fc0026aed038c08fb6017726cb8ce22205d535ac1ffbad6967e521c7bbd2c7f8fcaeb3fa580b205b8d5a1fffd5176d0b0c97427824cc61f380fb7ef6c
data/.rubocop.yml CHANGED
@@ -4,7 +4,7 @@ AllCops:
4
4
  inherit_from:
5
5
  - .rubocop-defaults.yml
6
6
  - .rubocop-defaults-rails.yml
7
- - .devfu-rubocop.yml
7
+ - .yoshiki.yml
8
8
 
9
9
  Naming/FileName:
10
10
  Exclude:
@@ -0,0 +1,39 @@
1
+ require:
2
+ - rubocop-rails
3
+
4
+ AllCops:
5
+ Exclude:
6
+ - db/schema.rb
7
+ - lib/generators/**/*
8
+ - lib/templates/**/*
9
+ - vendor/**/*
10
+
11
+ Rails:
12
+ Enabled: true
13
+
14
+ Capybara/SpecificFinders: # new in 2.13
15
+ Enabled: false # prefer find('#css-id')
16
+
17
+ FactoryBot/ConsistentParenthesesStyle: # new in 2.14
18
+ Enabled: true
19
+ EnforcedStyle: omit_parentheses # default is `require_parentheses`
20
+
21
+ Rails/Inquiry: # new in 2.7
22
+ Enabled: false
23
+ Rails/Output:
24
+ Exclude:
25
+ - 'config/unicorn.rb'
26
+ Rails/PluckInWhere: # new in 2.7
27
+ Enabled: true
28
+ EnforcedStyle: aggressive # default is `conservative`
29
+ Rails/ReadWriteAttribute:
30
+ Enabled: false
31
+ Rails/ShortI18n: # new in 2.7
32
+ Enabled: true
33
+ EnforcedStyle: aggressive # default is `conservative`
34
+ Rails/SkipsModelValidations:
35
+ Enabled: false
36
+ Rails/ToFormattedS: # new in 2.15
37
+ Enabled: false # prefer to_s(:format)
38
+ Rails/ToSWithArgument: # new in 2.16
39
+ Enabled: false # prefer to_s(:format)
@@ -1,39 +1,28 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
1
5
  AllCops:
2
6
  DisplayCopNames: true
3
7
  DisplayStyleGuide: true
4
8
  ExtraDetails: true
9
+
5
10
  Exclude:
6
11
  - bin/**/*
7
- - db/schema.rb
8
12
  - Gemfile.lock
9
- - lib/generators/**/*
10
- - lib/templates/**/*
11
- - vendor/**/*
12
-
13
- Capybara/SpecificFinders: # new in 2.13
14
- Enabled: false # prefer find('#css-id')
15
-
16
- FactoryBot/ConsistentParenthesesStyle: # new in 2.14
17
- Enabled: true
18
- EnforcedStyle: omit_parentheses # default is `require_parentheses`
19
13
 
20
14
  Layout/AccessModifierIndentation:
21
15
  EnforcedStyle: outdent # default is `indent`
22
-
23
16
  Layout/BeginEndAlignment:
24
17
  EnforcedStyleAlignWith: begin # default is `start_of_line`
25
-
26
18
  Layout/CaseIndentation:
27
19
  EnforcedStyle: end # default is `case`
28
20
  IndentOneStep: true # default is `false`
29
-
30
21
  Layout/CommentIndentation:
31
22
  AllowForAlignment: true # default is `false`
32
-
33
23
  Layout/DefEndAlignment:
34
24
  EnforcedStyleAlignWith: def # default is `start_of_line`
35
25
  AutoCorrect: true
36
-
37
26
  Layout/EmptyLineBetweenDefs:
38
27
  AllowAdjacentOneLineDefs: true
39
28
  DefLikeMacros: # default is `[]`
@@ -45,59 +34,42 @@ Layout/EmptyLineBetweenDefs:
45
34
  - let
46
35
  - let!
47
36
  - subject
48
-
49
37
  Layout/EmptyLinesAroundBlockBody:
50
38
  Exclude: # mostly *no* but yes
51
39
  - spec/**/* # - for rspec context/describe
52
40
  - '**/*.rake' # - rake namespaces
53
-
54
41
  Layout/EmptyLinesAroundClassBody:
55
42
  EnforcedStyle: empty_lines_except_namespace # default is `no_empty_lines`
56
-
57
43
  Layout/EmptyLinesAroundModuleBody:
58
44
  EnforcedStyle: empty_lines_except_namespace # default is `no_empty_lines`
59
-
60
45
  Layout/ExtraSpacing:
61
46
  ForceEqualSignAlignment: true # default is `false`
62
47
  Exclude:
63
48
  - Gemfile
64
-
65
49
  Layout/HashAlignment:
66
50
  EnforcedHashRocketStyle: table # default is `key`
67
51
  EnforcedColonStyle: table # default is `key`
68
-
69
52
  Layout/MultilineOperationIndentation:
70
53
  EnforcedStyle: indented # default is `aligned`
71
-
72
54
  Layout/SpaceInsideArrayLiteralBrackets:
73
55
  EnforcedStyle: space # default is `no_space`
74
56
  EnforcedStyleForEmptyBrackets: no_space
75
-
76
57
  Layout/SpaceInsidePercentLiteralDelimiters:
77
58
  Enabled: false # doesn't support the `space` enforced style
78
-
79
59
  Layout/SpaceInsideStringInterpolation:
80
60
  EnforcedStyle: space # default is `no_space`
81
-
82
- # this cop now allows configuration with `AllowedMethods` & `AllowedPatterns`
83
- Lint/AmbiguousBlockAssociation:
61
+ Lint/AmbiguousBlockAssociation: # this cop allows configuration with `AllowedMethods` & `AllowedPatterns`
84
62
  Enabled: true
85
-
86
63
  Lint/AmbiguousOperator:
87
64
  Enabled: false
88
-
89
65
  Lint/AmbiguousRegexpLiteral:
90
66
  Enabled: false
91
-
92
67
  Lint/AssignmentInCondition:
93
68
  Enabled: false
94
-
95
69
  Lint/RedundantSplatExpansion:
96
70
  Enabled: false
97
71
 
98
- # this cop now allows configuration with AllowedMethods, AllowedPatterns,
99
- # and CountAsOne
100
- Metrics/BlockLength:
72
+ Metrics/BlockLength: # this cop allows configuration with AllowedMethods, AllowedPatterns, & CountAsOne
101
73
  AllowedMethods:
102
74
  - describe
103
75
  - context
@@ -105,26 +77,19 @@ Metrics/BlockLength:
105
77
  - array
106
78
  - heredoc
107
79
  - method_call
108
-
109
- # this cop now allows configuration with AllowedMethods, AllowedPatterns,
110
- # and CountAsOne
111
- Metrics/MethodLength:
80
+ Metrics/MethodLength: # this cop allows configuration with AllowedMethods, AllowedPatterns, & CountAsOne
112
81
  Exclude:
113
82
  - db/migrate/**/*
114
-
115
83
  Metrics/ParameterLists:
116
84
  CountKeywordArgs: false
117
85
 
118
86
  Naming/AsciiIdentifiers:
119
87
  Enabled: false
120
-
121
88
  Naming/BlockForwarding: # new in 1.24
122
89
  Enabled: true
123
90
  EnforcedStyle: explicit # default is `anonymous`
124
-
125
91
  Naming/InclusiveLanguage:
126
92
  Enabled: false
127
-
128
93
  Naming/PredicateName:
129
94
  NamePrefix:
130
95
  - is_
@@ -136,33 +101,6 @@ Naming/PredicateName:
136
101
  AllowedMethods:
137
102
  - is_a?
138
103
 
139
- Rails/Inquiry: # new in 2.7
140
- Enabled: false
141
-
142
- Rails/Output:
143
- Exclude:
144
- - 'config/unicorn.rb'
145
-
146
- Rails/PluckInWhere: # new in 2.7
147
- Enabled: true
148
- EnforcedStyle: aggressive # default is `conservative`
149
-
150
- Rails/ReadWriteAttribute:
151
- Enabled: false
152
-
153
- Rails/ShortI18n: # new in 2.7
154
- Enabled: true
155
- EnforcedStyle: aggressive # default is `conservative`
156
-
157
- Rails/SkipsModelValidations:
158
- Enabled: false
159
-
160
- Rails/ToFormattedS: # new in 2.15
161
- Enabled: false # prefer to_s(:format)
162
-
163
- Rails/ToSWithArgument: # new in 2.16
164
- Enabled: false # prefer to_s(:format)
165
-
166
104
  RSpec/ContextWording:
167
105
  Prefixes:
168
106
  - as a
@@ -172,75 +110,54 @@ RSpec/ContextWording:
172
110
  - when
173
111
  - with
174
112
  - without
175
-
176
113
  RSpec/ImplicitExpect:
177
114
  EnforcedStyle: should
178
-
179
115
  RSpec/ImplicitSubject:
180
116
  EnforcedStyle: single_statement_only # default is `single_line_only`
181
-
182
117
  RSpec/LeadingSubject:
183
118
  Enabled: false # prefer subject after all let and let!
184
-
185
- # this cop can be configured with `AllowedGroups`
186
- RSpec/NestedGroups:
119
+ RSpec/NestedGroups: # this cop can be configured with `AllowedGroups`
187
120
  Enabled: false
188
-
189
121
  RSpec/PendingWithoutReason: # new in 2.16
190
122
  Enabled: false
191
123
 
192
124
  Style/AndOr:
193
125
  Enabled: false
194
-
195
126
  Style/AsciiComments:
196
127
  Enabled: false
197
-
198
128
  Style/BarePercentLiterals:
199
129
  EnforcedStyle: percent_q # default is `bare_percent`
200
-
201
130
  Style/CommandLiteral:
202
131
  EnforcedStyle: mixed # default is `backticks`
203
-
204
132
  Style/Documentation: # default config doesn't exclude migrations
205
133
  Exclude:
206
134
  - 'db/migrate/**/*'
207
135
  - 'spec/**/*'
208
136
  - 'test/**/*'
209
-
210
137
  Style/DoubleNegation:
211
138
  Enabled: false
212
-
213
139
  Style/EndlessMethod: # new in 1.8
214
140
  Enabled: true
215
141
  EnforcedStyle: disallow # default is `allow_single_line`
216
-
217
142
  Style/HashSyntax:
218
143
  EnforcedShorthandSyntax: consistent # default is `always`
219
-
220
144
  Style/MethodDefParentheses:
221
145
  EnforcedStyle: require_no_parentheses
222
-
223
146
  Style/MixinUsage:
224
147
  Exclude:
225
148
  - .pryrc
226
-
227
149
  Style/MultilineIfModifier:
228
150
  Enabled: false
229
-
230
151
  Style/Not:
231
152
  Enabled: false
232
-
233
153
  Style/NumberedParameters: # new in 1.22
234
154
  Enabled: true
235
155
  EnforcedStyle: disallow # default is `allow_single_line`
236
-
237
156
  Style/NumberedParametersLimit:
238
157
  Enabled: true
239
158
  Max: 0 # default is `1`
240
-
241
159
  Style/OptionHash:
242
160
  Enabled: true # default is `false`
243
-
244
161
  Style/PercentLiteralDelimiters:
245
162
  PreferredDelimiters: # prefer methods that make arrays to use square brackets
246
163
  '%': '[]'
@@ -252,24 +169,18 @@ Style/PercentLiteralDelimiters:
252
169
  '%w': '[]'
253
170
  '%W': '[]'
254
171
  '%x': '[]'
255
-
256
172
  Style/PerlBackrefs:
257
173
  Enabled: false
258
-
259
174
  Style/RescueModifier:
260
175
  Enabled: false
261
-
262
176
  Style/Semicolon:
263
177
  AllowAsExpressionSeparator: true # default is `false`
264
-
265
178
  Style/SingleLineBlockParams:
266
179
  Methods:
267
180
  - inject:
268
181
  - a # all / accumulator
269
182
  - t # this
270
-
271
183
  Style/SymbolArray:
272
184
  MinSize: 3 # default is `2`
273
-
274
185
  Style/TrailingUnderscoreVariable:
275
186
  AllowNamedUnderscoreVariables: false # defaults to `true`
data/.yoshiki.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ DisplayCopNames: true
3
+ DisplayStyleGuide: true
4
+ ExtraDetails: true
5
+
6
+ inherit_from:
7
+ - .yoshiki_ruby
8
+ - .yoshiki_rails
9
+
10
+ inherit_mode:
11
+ merge:
12
+ - Exclude
13
+
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yoshiki (8.0.0.pre.2)
4
+ yoshiki (8.0.0.pre.3)
5
5
  activesupport (>= 6.0.0)
6
6
  rubocop (= 1.56.3)
7
7
  rubocop-rails (= 2.21.1)
data/README.md CHANGED
@@ -1,11 +1,8 @@
1
- Yōshiki (様式)
2
- =============
1
+ ## Yōshiki (様式)
3
2
 
4
- Dev Fu! Style
5
- -------------
3
+ # Dev Fu! Style
6
4
 
7
- [![rubygems][gem-image]][gem]
8
- [![build status][ci-image]][ci]
5
+ [![rubygems][gem-image]][gem] [![build status][ci-image]][ci]
9
6
 
10
7
  Because ruby code should be:
11
8
 
@@ -20,18 +17,30 @@ Make it so.
20
17
 
21
18
  ## Usage
22
19
 
23
- `$ gem install yoshiki`
24
-
25
- or in your gemfile
20
+ In your gemfile
26
21
 
27
22
  `gem 'yoshiki'`
28
23
 
29
24
 
30
- In your `.rubocop.yml`
25
+ In `.rubocop.yml`
26
+
27
+ ```
28
+ inherit_gem:
29
+ yoshiki: .yoshiki.yml
30
+ ```
31
+
32
+ to include just ruby
33
+
34
+ ```
35
+ inherit_gem:
36
+ yoshiki: .yoshiki-ruby.yml
37
+ ```
38
+
39
+ or, to include just rails
31
40
 
32
41
  ```
33
42
  inherit_gem:
34
- yoshiki: .devfu-rubocop.yml
43
+ yoshiki: .yoshiki-rails.yml
35
44
  ```
36
45
 
37
46
  ## Ruby support
@@ -40,6 +49,7 @@ inherit_gem:
40
49
  - ruby 2.4, use [=> 4.0][4.0]
41
50
  - ruby 2.5, use [=> 4.3][4.3]
42
51
  - ruby 2.6, use [=> 6.0][6.0]
52
+ - ruby 2.7+, use [=> 7.0][7.0]
43
53
 
44
54
  <!-- links -->
45
55
  [ci]: https://gitlab.com/devfu/yoshiki/pipelines?scope=branches "build history"
@@ -48,6 +58,7 @@ inherit_gem:
48
58
  [4.0]: https://gitlab.com/devfu/yoshiki/tags/v4.0.0
49
59
  [4.3]: https://gitlab.com/devfu/yoshiki/tags/v4.3.0
50
60
  [6.0]: https://gitlab.com/devfu/yoshiki/tags/v6.0.0
61
+ [7.0]: https://gitlab.com/devfu/yoshiki/tags/v7.0.0
51
62
 
52
63
  <!-- images -->
53
64
  [ci-image]: https://gitlab.com/devfu/yoshiki/badges/master/pipeline.svg
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yoshiki
4
4
 
5
- VERSION = '8.0.0-2'
5
+ VERSION = '8.0.0-3'
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yoshiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0.pre.2
4
+ version: 8.0.0.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BM5k
@@ -87,7 +87,6 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ".devfu-rubocop.yml"
91
90
  - ".git-blame-ignore-revs"
92
91
  - ".gitignore"
93
92
  - ".gitlab-ci.yml"
@@ -95,6 +94,9 @@ files:
95
94
  - ".rubocop-defaults-rails.yml"
96
95
  - ".rubocop-defaults.yml"
97
96
  - ".rubocop.yml"
97
+ - ".yoshiki-rails.yml"
98
+ - ".yoshiki-ruby.yml"
99
+ - ".yoshiki.yml"
98
100
  - Dockerfile
99
101
  - Gemfile
100
102
  - Gemfile.lock