onkcop 0.46.0.1 → 0.47.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/config/rubocop.yml +21 -9
- data/lib/onkcop/version.rb +1 -1
- data/onkcop.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cbb1a0f83ebd7affd4a34ac0b2d656a8f043d4e
|
4
|
+
data.tar.gz: '08a5eb43399ebb6c82c3fc1f4faf6bf211fba208'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f45da3476fadbf48492e79381c2e66bda9beebfc2325fa9a8716d800228c8aec9d86886d94f6c9710df58f0a4b2a88dbbef763f86314177930f00039c4990ad7
|
7
|
+
data.tar.gz: 2c9151c45135b8997cfba6e5d6e0a845b1742bc66ea5b0dec8ba7543e84b942b826e6611b3182f25a78598873273444abed3ac8b872ed1b5178d2d8907c82d26
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# onkcop
|
2
2
|
|
3
|
+
## v0.47.1.0 (2017-01-20)
|
4
|
+
|
5
|
+
[full changelog](https://github.com/onk/onkcop/compare/v0.46.0.1...v0.47.1.0)
|
6
|
+
|
7
|
+
* Update to `rubocop` v0.47.1 and `rubocop-rspec` v1.10.0.
|
8
|
+
* Remove `Style/SingleLineBlockParams` cop config because disabled by default.
|
9
|
+
* Disable new `Security/YAMLLoad` cop.
|
10
|
+
|
11
|
+
|
3
12
|
## v0.46.0.1 (2017-01-07)
|
4
13
|
|
5
14
|
[full changelog](https://github.com/onk/onkcop/compare/v0.46.0.0...v0.46.0.1)
|
data/config/rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# target_version:
|
2
|
-
# rubocop v0.
|
2
|
+
# rubocop v0.47.1
|
3
3
|
|
4
4
|
# 自動生成されるものはチェック対象から除外する
|
5
5
|
AllCops:
|
@@ -191,10 +191,6 @@ Style/Semicolon:
|
|
191
191
|
Exclude:
|
192
192
|
- "spec/**/*"
|
193
193
|
|
194
|
-
# いくらなんでも inject { |a, e| } は短すぎるので分かりやすい名前をつけたい
|
195
|
-
Style/SingleLineBlockParams:
|
196
|
-
Enabled: false
|
197
|
-
|
198
194
|
# * 式展開したい場合に書き換えるのが面倒
|
199
195
|
# * 文章ではダブルクォートよりもシングルクォートの方が頻出する
|
200
196
|
# ことから EnforcedStyle: double_quotes 推奨
|
@@ -214,6 +210,15 @@ Style/TernaryParentheses:
|
|
214
210
|
Style/TrailingCommaInLiteral:
|
215
211
|
EnforcedStyleForMultiline: comma
|
216
212
|
|
213
|
+
# 条件式で arr.size > 0 が使われた時に
|
214
|
+
# if !arr.empty?
|
215
|
+
# else
|
216
|
+
# end
|
217
|
+
# に修正されるのが嫌。
|
218
|
+
# 中身を入れ替えて否定外しても良いんだけど、どちらが例外的な処理なのかが分かりづらくなる。
|
219
|
+
Style/ZeroLengthPredicate:
|
220
|
+
Enabled: false
|
221
|
+
|
217
222
|
##################### Lint ##################################
|
218
223
|
|
219
224
|
# RuntimeError は「特定の Error を定義できない場合」なので、
|
@@ -239,12 +244,13 @@ Metrics/AbcSize:
|
|
239
244
|
Max: 24
|
240
245
|
|
241
246
|
# Gemfile, Guardfile は DSL 的で基本的に複雑にはならないので除外
|
242
|
-
# routes は巨大な block 不可避なので除外
|
247
|
+
# rake, rspec, routes は巨大な block 不可避なので除外
|
248
|
+
# TODO: ExcludedMethods の精査
|
243
249
|
Metrics/BlockLength:
|
244
250
|
Exclude:
|
245
|
-
- "Rakefile"
|
246
|
-
- "**/*.rake"
|
247
|
-
- "spec/**/*.rb"
|
251
|
+
- "Rakefile"
|
252
|
+
- "**/*.rake"
|
253
|
+
- "spec/**/*.rb"
|
248
254
|
- "Gemfile"
|
249
255
|
- "Guardfile"
|
250
256
|
- "config/routes.rb"
|
@@ -271,3 +277,9 @@ Metrics/MethodLength:
|
|
271
277
|
# 分岐の数。ガード句を多用しているとデフォルト 7 だと厳しい
|
272
278
|
Metrics/PerceivedComplexity:
|
273
279
|
Max: 8
|
280
|
+
|
281
|
+
##################### Security ##################################
|
282
|
+
|
283
|
+
# 毎回 YAML.safe_load(yaml_str, [Date, Time]) するのは面倒で。。
|
284
|
+
Security/YAMLLoad:
|
285
|
+
Enabled: false
|
data/lib/onkcop/version.rb
CHANGED
data/onkcop.gemspec
CHANGED
@@ -19,8 +19,8 @@ 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.
|
23
|
-
spec.add_dependency "rubocop-rspec", ">= 1.
|
22
|
+
spec.add_dependency "rubocop", "~> 0.47.1"
|
23
|
+
spec.add_dependency "rubocop-rspec", ">= 1.10.0"
|
24
24
|
spec.add_development_dependency "bundler"
|
25
25
|
spec.add_development_dependency "rake"
|
26
26
|
end
|
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.47.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: 2017-01-
|
11
|
+
date: 2017-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.47.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.47.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.10.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.10.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|