fablicop 1.0.2 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cbd59fadc761f0b99466172ae81cb4ca6ef23bf3
4
- data.tar.gz: 647a0ab6ba34bacca8f1080e737cf9f5bb699aa0
2
+ SHA256:
3
+ metadata.gz: 866e22f81f324370afbf9661a8d8aac460b60891ed3f315f94fd6a6b3331771a
4
+ data.tar.gz: e847ed2393c95059463139c796eee5be93ec3ec3340649edbd4dd26cda6b345d
5
5
  SHA512:
6
- metadata.gz: 5fe02efd198d904189a5e782ee93619b9448025a978708fd52ef2bb8094f3a266576044dc3012f8c210c754835778f1b470ea4d8f8de617a3a2ee628cfebd986
7
- data.tar.gz: 38ee65cb5cc245b4f09d83d750563b8f237ae189018511b748079e0e7e7c330839129be35c39994c07ee7ce9c3bf40579777bedba598c921e491c5218acc1baf
6
+ metadata.gz: 633a8019e167b8449f9d9d52dcc8d0f3525f84c181e044ccef115ad343ad581f5dd79547d3749a542af0030db283c8178e0676b6d10486f6e1ea37a921514f96
7
+ data.tar.gz: 1d0c7cf21026ed0ab62b448b67d536823b378b5c4a29ebfeade756a75c65e110953d45fb9e6156e26c270d365e0640adb57702d2d932d4ac5ef365a696eecc5e
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.5.5
data/README.md CHANGED
@@ -15,16 +15,14 @@ bundle exec fablicop init
15
15
  ```yaml
16
16
  inherit_gem:
17
17
  fablicop:
18
- - "config/rubocop.yml"
18
+ - "config/.base_rubocop.yml"
19
19
  # uncomment if use rails cops
20
20
  # - "config/rails.yml"
21
21
  # uncomment if use rspec cops
22
22
  # - "config/rspec.yml"
23
23
 
24
24
  AllCops:
25
- TargetRubyVersion: 2.4
26
- # uncomment if use rails cops
27
- # TargetRailsVersion: 5.1
25
+ TargetRubyVersion: 2.3
28
26
  ```
29
27
 
30
28
  ```sh
@@ -1,3 +1,6 @@
1
+ require:
2
+ - rubocop-rails
3
+
1
4
  # 自動生成されるものやテストデータはチェック対象から除外する
2
5
  AllCops:
3
6
  Exclude:
@@ -10,7 +13,8 @@ AllCops:
10
13
  - "spec/test_app/db/*"
11
14
 
12
15
  DisplayCopNames: true
13
- TargetRubyVersion: 2.3
16
+ TargetRubyVersion: 2.5
17
+ NewCops: enable # 新しい規約も随時取り入れる
14
18
  Rails:
15
19
  Enabled: true
16
20
  # rails >= 5 の設定のため
@@ -114,9 +118,6 @@ Style/DoubleNegation:
114
118
  Style/ParallelAssignment:
115
119
  Enabled: false
116
120
 
117
- Style/BracesAroundHashParameters:
118
- Enabled: false
119
-
120
121
  Style/MethodCallWithoutArgsParentheses:
121
122
  Enabled: false
122
123
 
@@ -135,17 +136,19 @@ Style/DefWithParentheses:
135
136
  Layout/DotPosition:
136
137
  Enabled: false
137
138
 
139
+ # classが入れ子になった場合、テストの順番によってはエラーになりうる
140
+ Style/ClassAndModuleChildren:
141
+ Exclude:
142
+ - "test/**/*.rb"
143
+ - "spec/**/*.rb"
144
+
138
145
  ##################### Layout ##################################
139
146
  # 引数前のスペースは複数許可
140
147
  Layout/SpaceBeforeFirstArg:
141
148
  Enabled: false
142
149
  Layout/SpaceInLambdaLiteral:
143
150
  Enabled: false
144
- Layout/IndentHeredoc:
145
- Enabled: false
146
- Layout/MultilineMethodCallBraceLayout:
147
- Enabled: false
148
- Layout/MultilineMethodCallIndentation:
151
+ Layout/HeredocIndentation:
149
152
  Enabled: false
150
153
 
151
154
  ##################### Lint ##################################
@@ -159,7 +162,7 @@ Lint/ParenthesesAsGroupedExpression:
159
162
  # * 警告 120文字
160
163
  # * 禁止 160文字
161
164
  # のイメージ
162
- Metrics/LineLength:
165
+ Layout/LineLength:
163
166
  Max: 160
164
167
  Exclude:
165
168
  - "db/migrate/*.rb"
@@ -171,7 +174,7 @@ Metrics/MethodLength:
171
174
  - "db/migrate/*.rb"
172
175
 
173
176
  # キーワード引数は引数の数に含めない
174
- ParameterLists:
177
+ Metrics/ParameterLists:
175
178
  CountKeywordArgs: false
176
179
 
177
180
  Metrics/BlockLength:
@@ -182,16 +185,24 @@ Metrics/BlockLength:
182
185
  - "app/admin/*.rb"
183
186
  - "config/**/*.rb"
184
187
 
185
- # Explicitly set the default value 15
186
188
  Metrics/AbcSize:
187
- Max: 15
188
189
  Exclude:
189
190
  - "test/**/*.rb"
190
191
 
191
- # キーワード引数は引数の数に含めない
192
- ParameterLists:
193
- CountKeywordArgs: false
194
-
195
192
  Metrics/ClassLength:
196
193
  Exclude:
197
194
  - "test/**/*.rb"
195
+
196
+ Rails/UnknownEnv:
197
+ Environments:
198
+ - production
199
+ - staging
200
+ - development
201
+ - local
202
+ - test
203
+
204
+ Gemspec/OrderedDependencies:
205
+ Enabled: false
206
+
207
+ Rails/InverseOf:
208
+ Enabled: false
data/fablicop.gemspec CHANGED
@@ -30,8 +30,9 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ["lib"]
32
32
 
33
- spec.add_dependency "rubocop", "~> 0.53.0"
33
+ spec.add_dependency "rubocop", "~> 1.14.0"
34
34
  spec.add_dependency "rubocop-rspec", ">= 1.15.1"
35
+ spec.add_dependency "rubocop-rails"
35
36
  spec.add_development_dependency "bundler"
36
37
  spec.add_development_dependency "rake"
37
38
  end
@@ -1,3 +1,3 @@
1
1
  module Fablicop
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.7'
3
3
  end
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.2
4
+ version: 1.0.7
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: 2018-04-26 00:00:00.000000000 Z
13
+ date: 2021-05-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 0.53.0
21
+ version: 1.14.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 0.53.0
28
+ version: 1.14.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rubocop-rspec
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -40,6 +40,20 @@ dependencies:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.15.1
43
+ - !ruby/object:Gem::Dependency
44
+ name: rubocop-rails
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
43
57
  - !ruby/object:Gem::Dependency
44
58
  name: bundler
45
59
  requirement: !ruby/object:Gem::Requirement
@@ -115,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
129
  version: '0'
116
130
  requirements: []
117
131
  rubyforge_project:
118
- rubygems_version: 2.5.1
132
+ rubygems_version: 2.7.6.2
119
133
  signing_key:
120
134
  specification_version: 4
121
135
  summary: fablicop is a RuboCop configration gem.