fablicop 0.3.4 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +2 -0
- data/.ruby-version +1 -0
- data/config/{.rubocop.yml → .base_rubocop.yml} +23 -4
- data/exe/fablicop +0 -0
- data/fablicop.gemspec +1 -1
- data/lib/fablicop/version.rb +1 -1
- data/templates/.rubocop.yml +1 -29
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ce4f6e9ecdb0301167a479b0e06a04e03d3b2b73
|
4
|
+
data.tar.gz: 91e8a23e3a4c191dad65e5bca5f38afa01be48d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbc33a90efb39a902bc0a9d62323cebe7e19a112e666ee10c226d27a556ef89f789f443e1795f3b0addc22f5c3b47d240e191d911c420ef4707564797c847c37
|
7
|
+
data.tar.gz: 0bff15b962ee5efd67d8552c82a4f49ba2ff2b5b403385b13446bd3a28bed8ba874e8dcefa9e0e8fcabb3018d9a7b555517b3b72cdd484ee7578177fd27fc380
|
data/.rubocop.yml
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.1
|
@@ -22,7 +22,9 @@ Style/AsciiComments:
|
|
22
22
|
Enabled: false
|
23
23
|
|
24
24
|
# 複数行の場合は末尾にカンマを入れる
|
25
|
-
Style/
|
25
|
+
Style/TrailingCommaInArrayLiteral:
|
26
|
+
EnforcedStyleForMultiline: comma
|
27
|
+
Style/TrailingCommaInHashLiteral:
|
26
28
|
EnforcedStyleForMultiline: comma
|
27
29
|
Style/TrailingCommaInArguments:
|
28
30
|
EnforcedStyleForMultiline: comma
|
@@ -139,6 +141,10 @@ Layout/SpaceInLambdaLiteral:
|
|
139
141
|
Enabled: false
|
140
142
|
Layout/IndentHeredoc:
|
141
143
|
Enabled: false
|
144
|
+
Layout/MultilineMethodCallBraceLayout:
|
145
|
+
Enabled: false
|
146
|
+
Layout/MultilineMethodCallIndentation:
|
147
|
+
Enabled: false
|
142
148
|
|
143
149
|
##################### Lint ##################################
|
144
150
|
|
@@ -162,14 +168,27 @@ Metrics/MethodLength:
|
|
162
168
|
Exclude:
|
163
169
|
- "db/migrate/*.rb"
|
164
170
|
|
171
|
+
# キーワード引数は引数の数に含めない
|
172
|
+
ParameterLists:
|
173
|
+
CountKeywordArgs: false
|
174
|
+
|
165
175
|
Metrics/BlockLength:
|
166
176
|
Max: 100
|
177
|
+
Exclude:
|
178
|
+
- "spec/**/*.rb"
|
179
|
+
- "test/**/*.rb"
|
180
|
+
- "app/admin/*.rb"
|
181
|
+
|
182
|
+
# Explicitly set the default value 15
|
183
|
+
Metrics/AbcSize:
|
184
|
+
Max: 15
|
185
|
+
Exclude:
|
186
|
+
- "test/**/*.rb"
|
167
187
|
|
168
188
|
# キーワード引数は引数の数に含めない
|
169
189
|
ParameterLists:
|
170
190
|
CountKeywordArgs: false
|
171
191
|
|
172
|
-
Metrics/
|
192
|
+
Metrics/ClassLength:
|
173
193
|
Exclude:
|
174
|
-
-
|
175
|
-
- 'test/**/*'
|
194
|
+
- "test/**/*.rb"
|
data/exe/fablicop
CHANGED
File without changes
|
data/fablicop.gemspec
CHANGED
@@ -30,7 +30,7 @@ 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.
|
33
|
+
spec.add_dependency "rubocop", "~> 0.53.0"
|
34
34
|
spec.add_dependency "rubocop-rspec", ">= 1.15.1"
|
35
35
|
spec.add_development_dependency "bundler"
|
36
36
|
spec.add_development_dependency "rake"
|
data/lib/fablicop/version.rb
CHANGED
data/templates/.rubocop.yml
CHANGED
@@ -1,10 +1,6 @@
|
|
1
|
-
# inherit_gem中のexclude dirの指定が効かないらしい
|
2
|
-
# https://github.com/bbatsov/rubocop/issues/4154
|
3
|
-
# excludeしているものは一旦このファイルに直接記入
|
4
|
-
|
5
1
|
inherit_gem:
|
6
2
|
fablicop:
|
7
|
-
- "config/.
|
3
|
+
- "config/.base_rubocop.yml"
|
8
4
|
# uncomment if use rails cops
|
9
5
|
# - "config/rails.yml"
|
10
6
|
# uncomment if use rspec cops
|
@@ -12,27 +8,3 @@ inherit_gem:
|
|
12
8
|
|
13
9
|
AllCops:
|
14
10
|
TargetRubyVersion: 2.3
|
15
|
-
# uncomment if use rails cops
|
16
|
-
# TargetRailsVersion: 5.1
|
17
|
-
Exclude:
|
18
|
-
- "vendor/**/*" # rubocop config/default.yml
|
19
|
-
- "db/schema.rb"
|
20
|
-
- "db/migrate/*"
|
21
|
-
- "db/fixtures/**/*"
|
22
|
-
- "test/factories/**/*"
|
23
|
-
- "spec/factories/**/*"
|
24
|
-
|
25
|
-
##################### Metrics ##################################
|
26
|
-
|
27
|
-
Metrics/LineLength:
|
28
|
-
Exclude:
|
29
|
-
- "db/migrate/*.rb"
|
30
|
-
|
31
|
-
Metrics/MethodLength:
|
32
|
-
Exclude:
|
33
|
-
- "db/migrate/*.rb"
|
34
|
-
|
35
|
-
Metrics/BlockLength:
|
36
|
-
Exclude:
|
37
|
-
- 'spec/**/*'
|
38
|
-
- 'test/**/*'
|
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: 0.
|
4
|
+
version: 1.0.1
|
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-
|
13
|
+
date: 2018-04-19 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.
|
21
|
+
version: 0.53.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.
|
28
|
+
version: 0.53.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rubocop-rspec
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,6 +79,8 @@ extensions: []
|
|
79
79
|
extra_rdoc_files: []
|
80
80
|
files:
|
81
81
|
- ".gitignore"
|
82
|
+
- ".rubocop.yml"
|
83
|
+
- ".ruby-version"
|
82
84
|
- CODE_OF_CONDUCT.md
|
83
85
|
- Gemfile
|
84
86
|
- LICENSE.txt
|
@@ -86,7 +88,7 @@ files:
|
|
86
88
|
- Rakefile
|
87
89
|
- bin/console
|
88
90
|
- bin/setup
|
89
|
-
- config/.
|
91
|
+
- config/.base_rubocop.yml
|
90
92
|
- exe/fablicop
|
91
93
|
- fablicop.gemspec
|
92
94
|
- lib/fablicop.rb
|
@@ -113,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
115
|
version: '0'
|
114
116
|
requirements: []
|
115
117
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.
|
118
|
+
rubygems_version: 2.5.1
|
117
119
|
signing_key:
|
118
120
|
specification_version: 4
|
119
121
|
summary: fablicop is a RuboCop configration gem.
|