onkcop 0.42.0.1 → 0.43.0.0

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
  SHA1:
3
- metadata.gz: b8697c81fb42c79f74af1ab3cddd489647fa2952
4
- data.tar.gz: 96e924d15bc358d740b7680433158d190d05f779
3
+ metadata.gz: fc2559c1040e4b5f0b53a188f82fa27bdb883a4d
4
+ data.tar.gz: 0f4949ef104aaadb838b04ed3edf6f3c01ce6f84
5
5
  SHA512:
6
- metadata.gz: 02e9576e3ad7f2706e6f9a279b8ff26d05461c5b1314dfdc425c3bdb16660fbec89ae8574504c1187b8998a29926a29abac065c5032ccb32add1e81fa01db959
7
- data.tar.gz: cea790ef10a36df664c53113c3d647f3a878df469cc708c4ec91ba94841b1073203067a9c4e4d63a412ca40e69270738baac102300de2b303a480963343eba19
6
+ metadata.gz: c299b8a78454a8de1d3a37e470613386eb008e083d0e5b751aed782cb6cfb6a4f5c32297c6896d90aa59647148e089c85b7fbbdf92826b5ff6f0cc284da2209f
7
+ data.tar.gz: 7bd979b1d039e4168d74dc24851b478f6bc9ea2297880f9625f131f65a96522273a410faba2bd6457d3be34d69dcaef4ae02170ed3cef6979add2e7f0525b086
data/README.md CHANGED
@@ -15,6 +15,9 @@ inherit_gem:
15
15
 
16
16
  AllCops:
17
17
  TargetRubyVersion: 2.3
18
+
19
+ # Rails:
20
+ # Enabled: true
18
21
  ```
19
22
 
20
23
  ```sh
@@ -26,7 +29,9 @@ bundle exec rubocop <options...>
26
29
  Add this line to your application's Gemfile:
27
30
 
28
31
  ```ruby
29
- gem "onkcop"
32
+ group :development do
33
+ gem "onkcop", require: false
34
+ end
30
35
  ```
31
36
 
32
37
  ## Contributing
@@ -1,5 +1,5 @@
1
1
  # target_version:
2
- # rubocop v0.42.0
2
+ # rubocop v0.43.0
3
3
 
4
4
  # 自動生成されるものはチェック対象から除外する
5
5
  AllCops:
@@ -177,6 +177,10 @@ Style/RedundantSelf:
177
177
  Style/RedundantReturn:
178
178
  AllowMultipleReturnValues: true
179
179
 
180
+ # 無理して使うモンじゃない
181
+ Style/SafeNavigation:
182
+ Enabled: false
183
+
180
184
  # spec 内は見た目が綺麗になるので許可
181
185
  Style/Semicolon:
182
186
  Exclude:
@@ -196,10 +200,22 @@ Style/StringLiteralsInInterpolation:
196
200
  Style/SingleLineBlockParams:
197
201
  Enabled: false
198
202
 
203
+ # v0.43.0 では
204
+ # (1..2).include?(1) : "yes" : "no"
205
+ # が検出される不具合があるので無効にする。
206
+ # そもそも無効でも良いかも。三項演算子は分かりやすく使いたい。
207
+ Style/TernaryParentheses:
208
+ Enabled: false
209
+
199
210
  # 複数行の場合はケツカンマを入れる
200
211
  Style/TrailingCommaInLiteral:
201
212
  EnforcedStyleForMultiline: comma
202
213
 
214
+ # v1 って変数を v_1 にはしたくないので normalcase で良い。
215
+ # ただ v0.43.0 の実装が悪くて hoge_fuga1 も検出されるので無効化。
216
+ Style/VariableNumber:
217
+ Enabled: false
218
+
203
219
  ##################### Lint ##################################
204
220
 
205
221
  # RuntimeError は「特定の Error を定義できない場合」なので、
@@ -1,3 +1,3 @@
1
1
  module Onkcop
2
- VERSION = "0.42.0.1"
2
+ VERSION = "0.43.0.0"
3
3
  end
@@ -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.42.0"
22
+ spec.add_dependency "rubocop", "~> 0.43.0"
23
23
  spec.add_development_dependency "bundler", "~> 1.11"
24
24
  spec.add_development_dependency "rake", "~> 11.0"
25
25
  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.42.0.1
4
+ version: 0.43.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-08-10 00:00:00.000000000 Z
11
+ date: 2016-09-19 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.42.0
19
+ version: 0.43.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.42.0
26
+ version: 0.43.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement