catalcop 0.2.0 → 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: e1d323581eec1727538d2c47bf7237ca40e1db2117fd8ce235fccfcbde7dff6f
4
- data.tar.gz: 249ed67342e2d32979030f4a39887a3048846216cc13a737672797f90bfa1b9a
3
+ metadata.gz: 3590fe33d83714d5f29105a78b49485ca04f6dd4687f930e72372bd162369c1f
4
+ data.tar.gz: dab692aa2d00f85e4d63bb71c0d4989132c8f65c34d04c2854336c5cfe1f830f
5
5
  SHA512:
6
- metadata.gz: b3a13842d69246c302f92e062f248ff10d452ee031af7ea1c3fc43445e91e502ac8696f49c689148a7c7b5e2f666e3daaac8c87c70b7115a0f13f2105ac40a73
7
- data.tar.gz: 1ce004217923e7b34cac8ad18e403ece794c9d98369a30243832abebc93943e558284ea4538a88e44c207177686ea31ca752573202a008f800c8223ff195f3d0
6
+ metadata.gz: 112c446dd27c614fc38adac51aa2a6644930cd6fe42b03993c7a92fa98cf2259219563783b1c90bd5bbf96a7f37fa98fcadaa88977fab1c337ea6fdf6419e8e8
7
+ data.tar.gz: 878aac5d29524c82fb6510ba46c4e49d3ee6038abd5479ca5f481030ea081682e6deec497537349f92dda2092936f78f9fa842f31339b48806685914c58eacea
data/config/rubocop.yml CHANGED
@@ -1,18 +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/application.rb"
11
- - "config/initializers/*.rb"
12
- - "Guardfile"
13
- - "app/helpers/rating_helper.rb"
14
- - "node_modules/**/*"
15
- - "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/**/*"
16
15
  DisplayCopNames: true
17
16
  DisplayStyleGuide: true
18
17
  ExtraDetails: true
@@ -61,7 +60,7 @@ Style/HashTransformValues:
61
60
  Style/HashSyntax:
62
61
  Exclude:
63
62
  - "**/*.rake"
64
- - "Rakefile"
63
+ - "**/Rakefile"
65
64
 
66
65
  # 条件式の方を意識させたい場合には後置の if/unless を使わない方が分かりやすい
67
66
  Style/IfUnlessModifier:
@@ -73,7 +72,7 @@ Style/Lambda:
73
72
 
74
73
  Style/MixinUsage:
75
74
  Exclude:
76
- - "lib/task_logger.rb"
75
+ - "**/lib/task_logger.rb"
77
76
 
78
77
  # 1_000_000 と区切り文字が 2 個以上必要になる場合のみ _ 区切りを必須にする
79
78
  Style/NumericLiterals:
@@ -95,7 +94,7 @@ Style/RedundantReturn:
95
94
  # spec 内は見た目が綺麗になるので許可
96
95
  Style/Semicolon:
97
96
  Exclude:
98
- - "spec/**/*"
97
+ - "**/spec/**/*"
99
98
 
100
99
  # fail と使い分ける必要ナシ
101
100
  Style/SignalException:
@@ -108,7 +107,7 @@ Style/SingleLineBlockParams:
108
107
  # rails g spec:*** コマンド経由だと、double quoteになる
109
108
  Style/StringLiterals:
110
109
  Exclude:
111
- - "spec/**/*"
110
+ - "**/spec/**/*"
112
111
 
113
112
  # 複数行の場合はケツカンマを入れる
114
113
  Style/TrailingCommaInArguments:
@@ -168,7 +167,7 @@ Layout/LineLength:
168
167
  Enabled: true
169
168
  Max: 160
170
169
  Exclude:
171
- - "spec/*/*.rb"
170
+ - "**/spec/*/*.rb"
172
171
 
173
172
  ##################### Naming ##################################
174
173
 
@@ -185,7 +184,7 @@ Naming/PredicateName:
185
184
 
186
185
  Lint/RescueException:
187
186
  Exclude:
188
- - "lib/task_logger.rb"
187
+ - "**/lib/task_logger.rb"
189
188
 
190
189
  # * 同名のメソッドがある場合にローカル変数に `_` を付ける
191
190
  # * 一時変数として `_` を付ける
@@ -210,7 +209,7 @@ Metrics/PerceivedComplexity:
210
209
  Max: 10
211
210
 
212
211
  Metrics/ClassLength:
213
- Max: 300
212
+ Max: 500
214
213
 
215
214
  Metrics/MethodLength:
216
215
  Enabled: true
@@ -218,6 +217,8 @@ Metrics/MethodLength:
218
217
 
219
218
  Metrics/BlockLength:
220
219
  Enabled: true
220
+ Exclude:
221
+ - '**/spec/**/*'
221
222
 
222
223
  # デフォルト値を明示しないとHoundに怒られる
223
224
  Rails/FilePath:
@@ -226,7 +227,23 @@ Rails/FilePath:
226
227
  ##################### RSpec ##################################
227
228
  # ネストの最大数(falseにしてもいいくらいだが、念の為)
228
229
  RSpec/NestedGroups:
229
- Max: 4
230
+ Max: 6
231
+
232
+ RSpec/LetSetup:
233
+ Enabled: false
230
234
 
231
235
  RSpec/MessageChain:
232
236
  Enabled: false
237
+
238
+ RSpec/MultipleMemoizedHelpers:
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.2.0"
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.2.0
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - geeknees
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-02 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
@@ -89,7 +89,7 @@ homepage: https://github.com/Catal/catalcop
89
89
  licenses:
90
90
  - MIT
91
91
  metadata: {}
92
- post_install_message:
92
+ post_install_message:
93
93
  rdoc_options: []
94
94
  require_paths:
95
95
  - lib
@@ -104,8 +104,8 @@ 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
108
- signing_key:
107
+ rubygems_version: 3.2.3
108
+ signing_key:
109
109
  specification_version: 4
110
110
  summary: RuboCop Catal
111
111
  test_files: []