fablicop 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -3
- data/config/.base_rubocop.yml +91 -43
- data/lib/fablicop/version.rb +1 -1
- data/templates/.rubocop.yml +0 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea27b444e39bc36b38a92d397f0d04340de44d4152f32bdd0a589e2928de0bb7
|
4
|
+
data.tar.gz: 963705e1dc93606803c70c571904ae87cae79e100c8d16c60b26444af2689170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7537521cadc4eb33bd237009f2d191688914006f6b71baafaafe27f7ed3411502e613e7696709a895ef144ee518d9e64fafea193718f1f28ce5a959940b53a14
|
7
|
+
data.tar.gz: 57bd65151b614a526133739152c679f3098cfef376e2eda81068553781d685edda9deb1277ede298185eb9436cf415f2dcfcf4b7ef806cb1c501a4548074d6c3
|
data/README.md
CHANGED
data/config/.base_rubocop.yml
CHANGED
@@ -13,14 +13,29 @@ AllCops:
|
|
13
13
|
- "spec/test_app/db/*"
|
14
14
|
|
15
15
|
DisplayCopNames: true
|
16
|
-
TargetRubyVersion: 2.5
|
17
16
|
NewCops: enable # 新しい規約も随時取り入れる
|
17
|
+
|
18
18
|
Rails:
|
19
19
|
Enabled: true
|
20
|
+
|
20
21
|
# rails >= 5 の設定のため
|
21
22
|
Rails/HttpPositionalArguments:
|
22
23
|
Enabled: false
|
23
24
|
|
25
|
+
Rails/InverseOf:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Rails/UnknownEnv:
|
29
|
+
Environments:
|
30
|
+
- production
|
31
|
+
- staging
|
32
|
+
- development
|
33
|
+
- local
|
34
|
+
- test
|
35
|
+
|
36
|
+
Gemspec/OrderedDependencies:
|
37
|
+
Enabled: false
|
38
|
+
|
24
39
|
##################### Style ##################################
|
25
40
|
|
26
41
|
# 日本語のコメントを許可する
|
@@ -67,6 +82,62 @@ Style/MultilineBlockChain:
|
|
67
82
|
Enabled: false
|
68
83
|
Style/EmptyMethod:
|
69
84
|
Enabled: false
|
85
|
+
|
86
|
+
# 候補が多いときはcondみたいに使いたい
|
87
|
+
Style/EmptyCaseCondition:
|
88
|
+
Enabled: false
|
89
|
+
|
90
|
+
Style/DoubleNegation:
|
91
|
+
Enabled: false
|
92
|
+
|
93
|
+
Style/ParallelAssignment:
|
94
|
+
Enabled: false
|
95
|
+
|
96
|
+
Style/BracesAroundHashParameters:
|
97
|
+
Enabled: false
|
98
|
+
|
99
|
+
Style/MethodCallWithoutArgsParentheses:
|
100
|
+
Enabled: false
|
101
|
+
|
102
|
+
Style/DefWithParentheses:
|
103
|
+
Enabled: false
|
104
|
+
|
105
|
+
# classが入れ子になった場合、テストの順番によってはエラーになりうる
|
106
|
+
Style/ClassAndModuleChildren:
|
107
|
+
Exclude:
|
108
|
+
- "test/**/*.rb"
|
109
|
+
- "spec/**/*.rb"
|
110
|
+
|
111
|
+
# 3桁ごとに_を入れるとSQLの表示方法と乖離するためfixtureは対象外
|
112
|
+
Style/NumericLiterals:
|
113
|
+
Exclude:
|
114
|
+
- "db/fixtures/*.rb"
|
115
|
+
|
116
|
+
# 候補が多いときはcondみたいに使いたい
|
117
|
+
Style/EmptyCaseCondition:
|
118
|
+
Enabled: false
|
119
|
+
|
120
|
+
Style/DoubleNegation:
|
121
|
+
Enabled: false
|
122
|
+
|
123
|
+
Style/ParallelAssignment:
|
124
|
+
Enabled: false
|
125
|
+
|
126
|
+
Style/MethodCallWithoutArgsParentheses:
|
127
|
+
Enabled: false
|
128
|
+
|
129
|
+
Style/DefWithParentheses:
|
130
|
+
Enabled: false
|
131
|
+
|
132
|
+
##################### Layout ##################################
|
133
|
+
# 引数前のスペースは複数許可
|
134
|
+
Layout/SpaceBeforeFirstArg:
|
135
|
+
Enabled: false
|
136
|
+
Layout/SpaceInLambdaLiteral:
|
137
|
+
Enabled: false
|
138
|
+
Layout/IndentHeredoc:
|
139
|
+
Enabled: false
|
140
|
+
|
70
141
|
# 引数の書き方の多様性を許可
|
71
142
|
# foo(a,
|
72
143
|
# b
|
@@ -108,22 +179,6 @@ Layout/MultilineMethodCallIndentation:
|
|
108
179
|
Layout/FirstParameterIndentation:
|
109
180
|
Enabled: false
|
110
181
|
|
111
|
-
# 候補が多いときはcondみたいに使いたい
|
112
|
-
Style/EmptyCaseCondition:
|
113
|
-
Enabled: false
|
114
|
-
|
115
|
-
Style/DoubleNegation:
|
116
|
-
Enabled: false
|
117
|
-
|
118
|
-
Style/ParallelAssignment:
|
119
|
-
Enabled: false
|
120
|
-
|
121
|
-
Style/MethodCallWithoutArgsParentheses:
|
122
|
-
Enabled: false
|
123
|
-
|
124
|
-
Style/DefWithParentheses:
|
125
|
-
Enabled: false
|
126
|
-
|
127
182
|
# 以下の両方を許容
|
128
183
|
# aaa.
|
129
184
|
# bb().
|
@@ -136,13 +191,15 @@ Style/DefWithParentheses:
|
|
136
191
|
Layout/DotPosition:
|
137
192
|
Enabled: false
|
138
193
|
|
139
|
-
#
|
140
|
-
|
194
|
+
# fixtureファイルの1行 -> DBの1レコードとして記述している
|
195
|
+
# 複数行にまたがると直感的でなくなるため無効化
|
196
|
+
Layout/ClosingParenthesisIndentation:
|
141
197
|
Exclude:
|
142
|
-
- "
|
143
|
-
|
198
|
+
- "db/fixtures/*.rb"
|
199
|
+
Layout/AlignParameters:
|
200
|
+
Exclude:
|
201
|
+
- "db/fixtures/*.rb"
|
144
202
|
|
145
|
-
##################### Layout ##################################
|
146
203
|
# 引数前のスペースは複数許可
|
147
204
|
Layout/SpaceBeforeFirstArg:
|
148
205
|
Enabled: false
|
@@ -151,14 +208,6 @@ Layout/SpaceInLambdaLiteral:
|
|
151
208
|
Layout/HeredocIndentation:
|
152
209
|
Enabled: false
|
153
210
|
|
154
|
-
##################### Lint ##################################
|
155
|
-
|
156
|
-
# 引数前のスペースを許容する
|
157
|
-
Lint/ParenthesesAsGroupedExpression:
|
158
|
-
Enabled: false
|
159
|
-
|
160
|
-
##################### Metrics ##################################
|
161
|
-
|
162
211
|
# * 警告 120文字
|
163
212
|
# * 禁止 160文字
|
164
213
|
# のイメージ
|
@@ -167,6 +216,14 @@ Layout/LineLength:
|
|
167
216
|
Exclude:
|
168
217
|
- "db/migrate/*.rb"
|
169
218
|
|
219
|
+
##################### Lint ##################################
|
220
|
+
|
221
|
+
# 引数前のスペースを許容する
|
222
|
+
Lint/ParenthesesAsGroupedExpression:
|
223
|
+
Enabled: false
|
224
|
+
|
225
|
+
##################### Metrics ##################################
|
226
|
+
|
170
227
|
# 20 行超えるのは migration ファイル以外滅多に無い
|
171
228
|
Metrics/MethodLength:
|
172
229
|
Max: 20
|
@@ -193,16 +250,7 @@ Metrics/ClassLength:
|
|
193
250
|
Exclude:
|
194
251
|
- "test/**/*.rb"
|
195
252
|
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
-
|
200
|
-
- development
|
201
|
-
- local
|
202
|
-
- test
|
203
|
-
|
204
|
-
Gemspec/OrderedDependencies:
|
205
|
-
Enabled: false
|
206
|
-
|
207
|
-
Rails/InverseOf:
|
208
|
-
Enabled: false
|
253
|
+
# カラムが多い、もしくは文章が含まれるfixtureは一行が長くなってしまうため無効化
|
254
|
+
Metrics/LineLength:
|
255
|
+
Exclude:
|
256
|
+
- "db/fixtures/*.rb"
|
data/lib/fablicop/version.rb
CHANGED
data/templates/.rubocop.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fablicop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tommy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-06-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubocop
|