catalcop 0.3.3 → 0.3.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e248e092b46cf7d0aea03fdc8d59b86605e687414180536d88006f4f61ab656
4
- data.tar.gz: f3236d52a3589f47a21558772a2db0f6ecfcb40f7478b0f370d261a57d6c6e3c
3
+ metadata.gz: 3590fe33d83714d5f29105a78b49485ca04f6dd4687f930e72372bd162369c1f
4
+ data.tar.gz: dab692aa2d00f85e4d63bb71c0d4989132c8f65c34d04c2854336c5cfe1f830f
5
5
  SHA512:
6
- metadata.gz: 05032c526bcf293c8b49ab600db37aab4048b86286c69410d5d4f72af48c81c33a6516141f1fa0832715076ee66f74bd5c54db1e5d0dbc58f4a3174b482d09c6
7
- data.tar.gz: a8a6acb25c5d53e6d749ab552286bbeedcdc91b9f7cffbc62f3c5d5f608a53154d999f77d9a6c7ba153e61aec86e28e1c791758566bd6e7f419c8f1486912639
6
+ metadata.gz: 112c446dd27c614fc38adac51aa2a6644930cd6fe42b03993c7a92fa98cf2259219563783b1c90bd5bbf96a7f37fa98fcadaa88977fab1c337ea6fdf6419e8e8
7
+ data.tar.gz: 878aac5d29524c82fb6510ba46c4e49d3ee6038abd5479ca5f481030ea081682e6deec497537349f92dda2092936f78f9fa842f31339b48806685914c58eacea
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: 300
212
+ Max: 500
213
213
 
214
214
  Metrics/MethodLength:
215
215
  Enabled: true
@@ -218,7 +218,7 @@ 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:
@@ -227,7 +227,7 @@ Rails/FilePath:
227
227
  ##################### RSpec ##################################
228
228
  # ネストの最大数(falseにしてもいいくらいだが、念の為)
229
229
  RSpec/NestedGroups:
230
- Max: 4
230
+ Max: 6
231
231
 
232
232
  RSpec/LetSetup:
233
233
  Enabled: false
@@ -237,3 +237,13 @@ RSpec/MessageChain:
237
237
 
238
238
  RSpec/MultipleMemoizedHelpers:
239
239
  Enabled: false
240
+
241
+ RSpec/MultipleExpectations:
242
+ Max: 5
243
+
244
+ RSpec/BeforeAfterAll:
245
+ Enabled: false
246
+
247
+ ##################### Rails ##################################
248
+ Rails/EnvironmentVariableAccess:
249
+ AllowReads: true
@@ -1,3 +1,3 @@
1
1
  module Catalcop
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
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.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - geeknees
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-28 00:00:00.000000000 Z
11
+ date: 2021-06-14 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.0.3
107
+ rubygems_version: 3.2.3
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: RuboCop Catal