onkcop 0.45.0.0 → 0.46.0.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 +11 -0
- data/config/rubocop.yml +22 -17
- data/lib/onkcop/version.rb +1 -1
- data/onkcop.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab9449901494c6535699cf14b4080684cbb8eb29
|
4
|
+
data.tar.gz: ce23e644e8cb653cee9a287d1f17762380f1ae55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b495c91abecbdf08aa2eb271c135d60bd4170dcbd4ca8528fc26b0336f67428a5c409ee958355ecd9609a202fdb71fe4d0fed0e1897e131b824e3f607822126c
|
7
|
+
data.tar.gz: a076e315ed7217ac81ed50cec217835fcc5c1b33de348f846c427e9937ac1d19377888b3f41243b2209f18857e908b048126aa40104b7ac736125aed56a89e98
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# onkcop
|
2
|
+
|
3
|
+
## v0.45.0 (2016-11-02)
|
4
|
+
[full changelog](https://github.com/onk/onkcop/compare/v0.44.1.1...v0.45.0.0)
|
5
|
+
|
6
|
+
* Update to `rubocop` v0.45.0 and `rubocop-rspec` v1.8.0.
|
7
|
+
* Disable new `RSpec/ImplicitExpect` cop.
|
8
|
+
* Explicitly enable `Rspec/MessageExpectation` cop that is now disabled by default.
|
9
|
+
* Exclude Gemfile, Guardfile on `Metrics/BlockLength`.
|
10
|
+
* Disable `Style/TernaryParentheses` cop.
|
11
|
+
* Enable `Rails/HttpPositionalArguments` cop that fixes bug.
|
data/config/rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# target_version:
|
2
|
-
# rubocop v0.
|
2
|
+
# rubocop v0.46.0
|
3
3
|
|
4
4
|
# 自動生成されるものはチェック対象から除外する
|
5
5
|
AllCops:
|
@@ -59,23 +59,19 @@ Style/CollectionMethods:
|
|
59
59
|
inject: "inject"
|
60
60
|
reduce: "inject"
|
61
61
|
|
62
|
-
# Hash#has_key? の方が key? よりも意味が通る
|
63
|
-
Style/PreferredHashMethods:
|
64
|
-
EnforcedStyle: verbose
|
65
|
-
|
66
62
|
# ドキュメントの無い public class を許可する
|
67
63
|
Style/Documentation:
|
68
64
|
Enabled: false
|
69
65
|
|
70
|
-
# !! のイディオムは積極的に使う
|
71
|
-
Style/DoubleNegation:
|
72
|
-
Enabled: false
|
73
|
-
|
74
66
|
# メソッドチェーンの改行は末尾に . を入れる
|
75
67
|
# REPL に貼り付けた際の暴発を防ぐため
|
76
68
|
Style/DotPosition:
|
77
69
|
EnforcedStyle: trailing
|
78
70
|
|
71
|
+
# !! のイディオムは積極的に使う
|
72
|
+
Style/DoubleNegation:
|
73
|
+
Enabled: false
|
74
|
+
|
79
75
|
# case
|
80
76
|
# when ios?
|
81
77
|
# when android?
|
@@ -88,6 +84,11 @@ Style/EmptyCaseCondition:
|
|
88
84
|
Style/EmptyElse:
|
89
85
|
EnforcedStyle: empty
|
90
86
|
|
87
|
+
# 空メソッドの場合だけ1行で書かなければいけない理由が無い
|
88
|
+
# 「セミコロンは使わない」に寄せた方がルールがシンプル
|
89
|
+
Style/EmptyMethod:
|
90
|
+
EnforcedStyle: expanded
|
91
|
+
|
91
92
|
# 桁揃えが綺麗にならないことが多いので migration は除外
|
92
93
|
Style/ExtraSpacing:
|
93
94
|
Exclude:
|
@@ -169,14 +170,18 @@ Style/PredicateName:
|
|
169
170
|
- "is_"
|
170
171
|
- "have_"
|
171
172
|
|
172
|
-
#
|
173
|
-
Style/
|
174
|
-
|
173
|
+
# Hash#has_key? の方が key? よりも意味が通る
|
174
|
+
Style/PreferredHashMethods:
|
175
|
+
EnforcedStyle: verbose
|
175
176
|
|
176
177
|
# 受け取り側で multiple assignment しろというのを明示
|
177
178
|
Style/RedundantReturn:
|
178
179
|
AllowMultipleReturnValues: true
|
179
180
|
|
181
|
+
# 特に model 内において、ローカル変数とメソッド呼び出しの区別をつけた方が分かりやすい場合が多い
|
182
|
+
Style/RedundantSelf:
|
183
|
+
Enabled: false
|
184
|
+
|
180
185
|
# 無理して使うモンじゃない
|
181
186
|
Style/SafeNavigation:
|
182
187
|
Enabled: false
|
@@ -186,6 +191,10 @@ Style/Semicolon:
|
|
186
191
|
Exclude:
|
187
192
|
- "spec/**/*"
|
188
193
|
|
194
|
+
# いくらなんでも inject { |a, e| } は短すぎるので分かりやすい名前をつけたい
|
195
|
+
Style/SingleLineBlockParams:
|
196
|
+
Enabled: false
|
197
|
+
|
189
198
|
# * 式展開したい場合に書き換えるのが面倒
|
190
199
|
# * 文章ではダブルクォートよりもシングルクォートの方が頻出する
|
191
200
|
# ことから EnforcedStyle: double_quotes 推奨
|
@@ -196,14 +205,10 @@ Style/StringLiterals:
|
|
196
205
|
Style/StringLiteralsInInterpolation:
|
197
206
|
Enabled: false
|
198
207
|
|
199
|
-
# いくらなんでも inject { |a, e| } は短すぎるので分かりやすい名前をつけたい
|
200
|
-
Style/SingleLineBlockParams:
|
201
|
-
Enabled: false
|
202
|
-
|
203
208
|
# 三項演算子は分かりやすく使いたい。
|
204
209
|
# () を外さない方が条件式が何なのか読み取りやすいと感じる。
|
205
210
|
Style/TernaryParentheses:
|
206
|
-
|
211
|
+
EnforcedStyle: require_parentheses_when_complex
|
207
212
|
|
208
213
|
# 複数行の場合はケツカンマを入れる
|
209
214
|
Style/TrailingCommaInLiteral:
|
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.46.0"
|
23
23
|
spec.add_dependency "rubocop-rspec", ">= 1.8.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.46.0.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-11-
|
11
|
+
date: 2016-11-30 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.46.0
|
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.46.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,6 +75,7 @@ extra_rdoc_files: []
|
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
77
|
- ".rubocop.yml"
|
78
|
+
- CHANGELOG.md
|
78
79
|
- Gemfile
|
79
80
|
- LICENSE.txt
|
80
81
|
- README.md
|
@@ -107,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
108
|
version: '0'
|
108
109
|
requirements: []
|
109
110
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.6.
|
111
|
+
rubygems_version: 2.6.8
|
111
112
|
signing_key:
|
112
113
|
specification_version: 4
|
113
114
|
summary: OnkCop is a RuboCop configration gem.
|