catalcop 0.3.2 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/rubocop.yml +40 -20
- data/lib/catalcop/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89e8c169ee7a3d33ca9a5e0a4022a0bcd93c0755cc4ea0823bb3c2265a927841
|
4
|
+
data.tar.gz: 329ef6c1c98840e321451e4f2ad44de57a5ac98b70d8d027a83a42fe31ecfd34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b6915e468d3d2d3fb4ad8a7a47f24ba165d14c6fd3b3ef3ed0babd1dbe3200b69c7595134bb3fd90511b034534a2d8305998d75e7022e460b2dfa4cfa5a8406
|
7
|
+
data.tar.gz: 47ec98d6f306831b021f34d240fc1a39a309ec535a8a86d244dc3e31afefb645e8bc40a905d372318ce975f6d289a02e184375a2b53c6786467c6215ab068f8b
|
data/config/rubocop.yml
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
# 自動生成されるものはチェック対象から除外する
|
2
2
|
AllCops:
|
3
3
|
Exclude:
|
4
|
-
- "vendor/**/*" # rubocop config/default.yml
|
5
|
-
- "db/fixtures/*.rb"
|
6
|
-
- "db/schema.rb"
|
7
|
-
- "db/seeds.rb"
|
8
|
-
- "db/migrate/*.rb"
|
9
|
-
- "bin/*"
|
10
|
-
- "config/**/*"
|
11
|
-
- "Guardfile"
|
12
|
-
- "app/helpers/rating_helper.rb"
|
13
|
-
- "node_modules/**/*"
|
14
|
-
- "lib/tasks/**/*"
|
4
|
+
- "**/vendor/**/*" # rubocop config/default.yml
|
5
|
+
- "**/db/fixtures/*.rb"
|
6
|
+
- "**/db/schema.rb"
|
7
|
+
- "**/db/seeds.rb"
|
8
|
+
- "**/db/migrate/*.rb"
|
9
|
+
- "**/bin/*"
|
10
|
+
- "**/config/**/*"
|
11
|
+
- "**/Guardfile"
|
12
|
+
- "**/app/helpers/rating_helper.rb"
|
13
|
+
- "**/node_modules/**/*"
|
14
|
+
- "**/lib/tasks/**/*"
|
15
15
|
DisplayCopNames: true
|
16
16
|
DisplayStyleGuide: true
|
17
17
|
ExtraDetails: true
|
@@ -60,7 +60,7 @@ Style/HashTransformValues:
|
|
60
60
|
Style/HashSyntax:
|
61
61
|
Exclude:
|
62
62
|
- "**/*.rake"
|
63
|
-
- "Rakefile"
|
63
|
+
- "**/Rakefile"
|
64
64
|
|
65
65
|
# 条件式の方を意識させたい場合には後置の if/unless を使わない方が分かりやすい
|
66
66
|
Style/IfUnlessModifier:
|
@@ -72,7 +72,7 @@ Style/Lambda:
|
|
72
72
|
|
73
73
|
Style/MixinUsage:
|
74
74
|
Exclude:
|
75
|
-
- "lib/task_logger.rb"
|
75
|
+
- "**/lib/task_logger.rb"
|
76
76
|
|
77
77
|
# 1_000_000 と区切り文字が 2 個以上必要になる場合のみ _ 区切りを必須にする
|
78
78
|
Style/NumericLiterals:
|
@@ -94,7 +94,7 @@ Style/RedundantReturn:
|
|
94
94
|
# spec 内は見た目が綺麗になるので許可
|
95
95
|
Style/Semicolon:
|
96
96
|
Exclude:
|
97
|
-
- "spec/**/*"
|
97
|
+
- "**/spec/**/*"
|
98
98
|
|
99
99
|
# fail と使い分ける必要ナシ
|
100
100
|
Style/SignalException:
|
@@ -107,7 +107,7 @@ Style/SingleLineBlockParams:
|
|
107
107
|
# rails g spec:*** コマンド経由だと、double quoteになる
|
108
108
|
Style/StringLiterals:
|
109
109
|
Exclude:
|
110
|
-
- "spec/**/*"
|
110
|
+
- "**/spec/**/*"
|
111
111
|
|
112
112
|
# 複数行の場合はケツカンマを入れる
|
113
113
|
Style/TrailingCommaInArguments:
|
@@ -167,7 +167,7 @@ Layout/LineLength:
|
|
167
167
|
Enabled: true
|
168
168
|
Max: 160
|
169
169
|
Exclude:
|
170
|
-
- "spec/*/*.rb"
|
170
|
+
- "**/spec/*/*.rb"
|
171
171
|
|
172
172
|
##################### Naming ##################################
|
173
173
|
|
@@ -184,7 +184,7 @@ Naming/PredicateName:
|
|
184
184
|
|
185
185
|
Lint/RescueException:
|
186
186
|
Exclude:
|
187
|
-
- "lib/task_logger.rb"
|
187
|
+
- "**/lib/task_logger.rb"
|
188
188
|
|
189
189
|
# * 同名のメソッドがある場合にローカル変数に `_` を付ける
|
190
190
|
# * 一時変数として `_` を付ける
|
@@ -209,7 +209,7 @@ Metrics/PerceivedComplexity:
|
|
209
209
|
Max: 10
|
210
210
|
|
211
211
|
Metrics/ClassLength:
|
212
|
-
Max:
|
212
|
+
Max: 500
|
213
213
|
|
214
214
|
Metrics/MethodLength:
|
215
215
|
Enabled: true
|
@@ -218,19 +218,39 @@ Metrics/MethodLength:
|
|
218
218
|
Metrics/BlockLength:
|
219
219
|
Enabled: true
|
220
220
|
Exclude:
|
221
|
-
- 'spec/**/*'
|
221
|
+
- '**/spec/**/*'
|
222
222
|
|
223
223
|
# デフォルト値を明示しないとHoundに怒られる
|
224
224
|
Rails/FilePath:
|
225
225
|
EnforcedStyle: slashes
|
226
226
|
|
227
227
|
##################### RSpec ##################################
|
228
|
+
RSpec/ExampleLength:
|
229
|
+
Max: 10
|
230
|
+
|
228
231
|
# ネストの最大数(falseにしてもいいくらいだが、念の為)
|
229
232
|
RSpec/NestedGroups:
|
230
|
-
Max:
|
233
|
+
Max: 6
|
231
234
|
|
232
235
|
RSpec/LetSetup:
|
233
236
|
Enabled: false
|
234
237
|
|
235
238
|
RSpec/MessageChain:
|
236
239
|
Enabled: false
|
240
|
+
|
241
|
+
RSpec/MultipleMemoizedHelpers:
|
242
|
+
Enabled: false
|
243
|
+
|
244
|
+
RSpec/MultipleExpectations:
|
245
|
+
Max: 5
|
246
|
+
|
247
|
+
RSpec/BeforeAfterAll:
|
248
|
+
Enabled: false
|
249
|
+
|
250
|
+
##################### Rails ##################################
|
251
|
+
Rails/EnvironmentVariableAccess:
|
252
|
+
AllowReads: true
|
253
|
+
|
254
|
+
# `ago`や`since`がわかりやすいとは限らない
|
255
|
+
Rails/DurationArithmetic:
|
256
|
+
Enabled: false
|
data/lib/catalcop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: catalcop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- geeknees
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
|
-
rubygems_version: 3.
|
107
|
+
rubygems_version: 3.3.3
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: RuboCop Catal
|