onkcop 0.43.0.2 → 0.44.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/rails.yml +4 -0
- data/config/rubocop.yml +9 -15
- data/lib/onkcop/version.rb +1 -1
- data/onkcop.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17c43b7f90a60d0b6e84e4a9380fb792636fb5f2
|
4
|
+
data.tar.gz: d7a343e499e5e4dea7b5f230ad505840d8a6a28c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 479618779001c8bb3d33ef3d2540cc503ce4dd25de7ca37fc56160f707e5cc71527436a728325845f5e8b3808cc14b3ead1449ffa67c13dfa49896243f250e6f
|
7
|
+
data.tar.gz: a2fd1f2543542ca9017eafb4f3a001b16069c5f0375062aa170a5925b1a5c43c46b23f7135a636b0ef036730397948e8404965bf81a12df8ffe1bb81dc905534
|
data/config/rails.yml
CHANGED
data/config/rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# target_version:
|
2
|
-
# rubocop v0.
|
2
|
+
# rubocop v0.44.1
|
3
3
|
|
4
4
|
# 自動生成されるものはチェック対象から除外する
|
5
5
|
AllCops:
|
@@ -59,9 +59,9 @@ Style/CollectionMethods:
|
|
59
59
|
inject: "inject"
|
60
60
|
reduce: "inject"
|
61
61
|
|
62
|
-
# Hash#has_key?
|
62
|
+
# Hash#has_key? の方が key? よりも意味が通る
|
63
63
|
Style/PreferredHashMethods:
|
64
|
-
|
64
|
+
EnforcedStyle: verbose
|
65
65
|
|
66
66
|
# ドキュメントの無い public class を許可する
|
67
67
|
Style/Documentation:
|
@@ -200,22 +200,10 @@ Style/StringLiteralsInInterpolation:
|
|
200
200
|
Style/SingleLineBlockParams:
|
201
201
|
Enabled: false
|
202
202
|
|
203
|
-
# v0.43.0 では
|
204
|
-
# (1..2).include?(1) ? "yes" : "no"
|
205
|
-
# が検出される不具合があるので無効にする。
|
206
|
-
# そもそも無効でも良いかも。三項演算子は分かりやすく使いたい。
|
207
|
-
Style/TernaryParentheses:
|
208
|
-
Enabled: false
|
209
|
-
|
210
203
|
# 複数行の場合はケツカンマを入れる
|
211
204
|
Style/TrailingCommaInLiteral:
|
212
205
|
EnforcedStyleForMultiline: comma
|
213
206
|
|
214
|
-
# v1 って変数を v_1 にはしたくないので normalcase で良い。
|
215
|
-
# ただ v0.43.0 の実装が悪くて hoge_fuga1 も検出されるので無効化。
|
216
|
-
Style/VariableNumber:
|
217
|
-
Enabled: false
|
218
|
-
|
219
207
|
##################### Lint ##################################
|
220
208
|
|
221
209
|
# RuntimeError は「特定の Error を定義できない場合」なので、
|
@@ -240,6 +228,12 @@ Lint/UnusedMethodArgument:
|
|
240
228
|
Metrics/AbcSize:
|
241
229
|
Max: 24
|
242
230
|
|
231
|
+
# routes は巨大な block 不可避なので除外
|
232
|
+
Metrics/BlockLength:
|
233
|
+
Exclude:
|
234
|
+
- "config/routes.rb"
|
235
|
+
- "config/routes/**/*.rb"
|
236
|
+
|
243
237
|
# 6 は強すぎるので緩める
|
244
238
|
Metrics/CyclomaticComplexity:
|
245
239
|
Max: 10
|
data/lib/onkcop/version.rb
CHANGED
data/onkcop.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "rubocop", "~> 0.
|
22
|
+
spec.add_dependency "rubocop", "~> 0.44.1"
|
23
23
|
spec.add_dependency "rubocop-rspec", ">= 1.7.0"
|
24
24
|
spec.add_development_dependency "bundler"
|
25
25
|
spec.add_development_dependency "rake"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onkcop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.44.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takafumi ONAKA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.44.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.44.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|