retrieva-cop 0.1.1 → 0.1.2

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: 6cccf221159a0171982ba08358c49c55bd2ea8eb
4
- data.tar.gz: 35cb868289422a9d1eefdb75523f4c073352c5dd
3
+ metadata.gz: 5248ab82c314669eedb7bd49867478b591fa79d0
4
+ data.tar.gz: 0ab26d949c947fed95dd1ad400cf938adc66c016
5
5
  SHA512:
6
- metadata.gz: ad45240deacf892f73379c14378344e600014732d555cf40dd4add1f1dd09d8f9876a8e5fb43ce4ff3446537375a256620c6c057696bec405c93161e978cf5bd
7
- data.tar.gz: f06f4e198906909712714323a272fb09e91229861c702892c475cf5f15efb115dcbaf22a838eefdfdec1056e69c86f71cfe38e44aacb3495e85bd38c10c546c6
6
+ metadata.gz: '097e0158708d79f90367912726f5b4e4ca8df65527da052ade9ef0e605ec9f2f7225805c2164df74c369091ce501b35682c8e5be8fcfc3952480fa030951fdf3'
7
+ data.tar.gz: e7fd25efff45c6940eb48855e3f4568d86a5a4064f2a7ed2d6b3ead6cca611abc3070349d4d17818a2eaed451ba9d817ad2dfbd7bf5dbb78093db110fe8fe131
data/config/rubocop.yml CHANGED
@@ -24,6 +24,11 @@ Layout/ExtraSpacing:
24
24
  Exclude:
25
25
  - "db/migrate/*.rb"
26
26
 
27
+ # RuntimeError は「特定の Error を定義できない場合」なので、
28
+ # 定義できるエラーは RuntimeError ではなく StandardError を継承する。
29
+ Lint/InheritException:
30
+ EnforcedStyle: standard_error
31
+
27
32
  # メソッドチェーン感がより感じられるインデントにする
28
33
  Layout/MultilineMethodCallIndentation:
29
34
  EnforcedStyle: indented_relative_to_receiver
@@ -94,6 +99,10 @@ Metrics/MethodLength:
94
99
 
95
100
  #################### Style #################################
96
101
 
102
+ # redirect_to xxx and return のイディオムを維持したい
103
+ Style/AndOr:
104
+ EnforcedStyle: conditionals
105
+
97
106
  # 日本語のコメントを許可する
98
107
  Style/AsciiComments:
99
108
  Enabled: false
@@ -156,6 +165,7 @@ Style/RescueModifier:
156
165
  Style/PercentLiteralDelimiters:
157
166
  PreferredDelimiters:
158
167
  '%w': '()'
168
+ '%W': '()'
159
169
  '%i': '()'
160
170
 
161
171
  # 1_000_000 と区切り文字が 2 個以上必要になる場合のみ _ 区切りを必須にする
@@ -198,3 +208,11 @@ Style/UnneededInterpolation:
198
208
  # 中身を入れ替えて否定外しても良いんだけど、どちらが例外的な処理なのかが分かりづらくなる。
199
209
  Style/ZeroLengthPredicate:
200
210
  Enabled: false
211
+
212
+ #################### Security ##############################
213
+
214
+ # 毎回 YAML.safe_load(yaml_str, [Date, Time]) するのは面倒で。。
215
+ # YAML ファイル内で &default のようなエイリアスを(簡単に)使えなくなるので
216
+ # https://qiita.com/QUANON/items/f07004c030824d2b79fd
217
+ Security/YAMLLoad:
218
+ Enabled: false
@@ -1,5 +1,5 @@
1
1
  module Retrieva
2
2
  module Cop
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: retrieva-cop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kei Shiratsuchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-13 00:00:00.000000000 Z
11
+ date: 2017-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop