rubocop-codetakt 0.83.0.0 → 0.87.1.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 +4 -4
- data/.rubocop.yml +4 -12
- data/CHANGELOG.md +28 -3
- data/Gemfile +4 -4
- data/config/rspec.yml +5 -7
- data/config/rubocop.yml +21 -8
- data/lib/rubocop/codetakt/cli.rb +1 -1
- data/lib/rubocop/codetakt/version.rb +1 -1
- data/rubocop-codetakt.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cae264080e612d3ae5bf76dd0c3816ffc13af3bca85243b2a6ec924b2211bbeb
|
4
|
+
data.tar.gz: e80faee591beec66557d34c0efbd7ff0549d3fb3415a4cbd6f959f3b34240967
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a4ca4021d76fd6d318d0f12f23d4c2b7e4b56d515596391b0b0a97dba46ccf61db2121d1f37c1a0fae515064ed531d0c0bc4009468caf9bc36868c21b3c4581
|
7
|
+
data.tar.gz: 77cd5b2112546160d5b39383d965bcd1b59e6206629c9c8376d9f4c7c1de714ce011fab2ffd41a2dbcb5a29b2a3c02f80e02d3e7297c314d47bcbc29d56b8d37
|
data/.rubocop.yml
CHANGED
@@ -1,12 +1,4 @@
|
|
1
|
-
|
2
|
-
rubocop
|
3
|
-
|
4
|
-
|
5
|
-
- "config/performance.yml"
|
6
|
-
# uncomment if use rails cops
|
7
|
-
- "config/rails.yml"
|
8
|
-
# uncomment if use rspec cops
|
9
|
-
- "config/rspec.yml"
|
10
|
-
|
11
|
-
AllCops:
|
12
|
-
TargetRubyVersion: 2.5
|
1
|
+
inherit_from:
|
2
|
+
- "config/rubocop.yml"
|
3
|
+
- "config/performance.yml"
|
4
|
+
- "config/rspec.yml"
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,35 @@
|
|
1
1
|
# rubocop-codetakt:
|
2
2
|
|
3
|
+
## v0.87.1.0 (2020-07-08)
|
4
|
+
|
5
|
+
* Update `rubocop` v0.87.1 and `rubocop-performance` v1.7.0
|
6
|
+
|
7
|
+
## v0.87.0.0 (2020-07-07)
|
8
|
+
|
9
|
+
* Update `rubocop` v0.87.0, `rubocop-rails` v2.6.0 and `rubocop-rspec` v1.41.0
|
10
|
+
|
11
|
+
## v0.85.0.0 (2020-06-04)
|
12
|
+
|
13
|
+
* Update `rubocop` v0.85.0
|
14
|
+
|
15
|
+
## v0.84.0.0 (2020-06-04)
|
16
|
+
|
17
|
+
* Update `rubocop` v0.84.0, `rubocop-rspec` v1.39.0, `rubocop-rails` v2.5.0 and `rubocop-performance` v1.6.0
|
18
|
+
* Clarify `Layout/HashAlignment` cop option
|
19
|
+
|
20
|
+
## v0.83.0.1 (2020-06-03)
|
21
|
+
|
22
|
+
* Disable `RSpec/MultipleExpectations:` cop
|
23
|
+
|
3
24
|
## v0.83.0.0 (2020-05-18)
|
4
25
|
|
5
|
-
* Make the code in this repository to no offenses
|
6
26
|
* Update `rubocop` v0.83.0
|
7
27
|
|
28
|
+
## v0.82.0.1 (2020-06-01)
|
29
|
+
|
30
|
+
* Make the code in this repository to no offenses
|
31
|
+
* Accept the default setting of new cops
|
32
|
+
|
8
33
|
## v0.82.0.0 (2020-04-20)
|
9
34
|
|
10
35
|
* Fork from onk/onkcop to codetakt/rubocop-codetakt
|
@@ -13,7 +38,7 @@
|
|
13
38
|
* Separate the file of performance settings
|
14
39
|
* Clarify requiring the `rubocop-rails` gem in the Rails settings file
|
15
40
|
* Refine dependency settings
|
16
|
-
* Remove `Layout/DotPosition` cop
|
41
|
+
* Remove `Layout/DotPosition` cop
|
17
42
|
* Remove `Layout/IndentationConsistency` cop
|
18
43
|
* Remove `Style/BracesAroundHashParameters` cop
|
19
44
|
* Remove `Style/MethodCalledOnDoEndBlock`
|
@@ -71,7 +96,7 @@
|
|
71
96
|
* Update `rubocop` v0.52.0 and `rubocop-rspec` v1.21.0
|
72
97
|
* Remove `DisplayCopNames` configuration
|
73
98
|
* Enable new `Style/ClassStructure` cop
|
74
|
-
*
|
99
|
+
* Disable `Style/FormatStringToken` cop
|
75
100
|
* Change `Layout/SpaceBeforeBlockBraces` cop's empty braces style to `space`
|
76
101
|
* Change `Style/RescueStandardError` cop to implicit style
|
77
102
|
* Change `RSpec/MultipleExpectations` cop to `AggregateFailuresByDefault` style
|
data/Gemfile
CHANGED
@@ -3,8 +3,8 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in rubocop-codetakt.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
gem 'rake', '~>
|
6
|
+
gem 'rake', '~> 13.0'
|
7
7
|
gem 'rspec', '~> 3.0'
|
8
|
-
gem 'rubocop-performance', '~> 1.
|
9
|
-
gem 'rubocop-rails', '~> 2.
|
10
|
-
gem 'rubocop-rspec', '~> 1.
|
8
|
+
gem 'rubocop-performance', '~> 1.7.0'
|
9
|
+
gem 'rubocop-rails', '~> 2.6.0'
|
10
|
+
gem 'rubocop-rspec', '~> 1.41.0'
|
data/config/rspec.yml
CHANGED
@@ -40,14 +40,12 @@ RSpec/ImplicitExpect:
|
|
40
40
|
RSpec/InstanceVariable:
|
41
41
|
Enabled: false
|
42
42
|
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
# パフォーマンスの問題さえ無ければ 1 example 1 assertion にしておく方が
|
48
|
-
# 読みやすいテストになりやすいので、そこはレビューで担保していく必要がある。
|
43
|
+
# rubocop-rspec v1.34.0 から RSpec/MultipleExpectations の AggregateFailuresByDefault オプションがなくなった
|
44
|
+
# https://github.com/rubocop-hq/rubocop-rspec/blob/v1.34.0/CHANGELOG.md
|
45
|
+
# feature specなどでは1つのitに複数のexpectをよく書く
|
46
|
+
# 弊社ではaggregate_failuresをデフォルトで有効にしているのでこのCopをoffにする
|
49
47
|
RSpec/MultipleExpectations:
|
50
|
-
|
48
|
+
Enabled: false
|
51
49
|
|
52
50
|
# 変に名前つけて呼ぶ方が分かりづらい。
|
53
51
|
# テスト対象メソッドを呼ぶだけの subject 以外を書かないようにする方が効く。
|
data/config/rubocop.yml
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
-
# 自動生成されるものはチェック対象から除外する
|
2
1
|
AllCops:
|
2
|
+
# We accept the default setting of rookie cops.
|
3
|
+
# https://docs.rubocop.org/rubocop/versioning.html
|
4
|
+
NewCops: enable
|
5
|
+
|
6
|
+
# Exclude automatically generated files.
|
3
7
|
Exclude:
|
4
8
|
- "node_modules/**/*" # rubocop config/default.yml
|
5
9
|
- "vendor/**/*" # rubocop config/default.yml
|
@@ -31,6 +35,15 @@ Layout/FirstArrayElementIndentation:
|
|
31
35
|
Layout/FirstHashElementIndentation:
|
32
36
|
EnforcedStyle: consistent
|
33
37
|
|
38
|
+
# We have decided to accept the default options of this cop (as of
|
39
|
+
# RuboCop v0.83.0.) These are certainly useful in many situations.
|
40
|
+
# However, any product team has the discretion to locally disable this
|
41
|
+
# cop.
|
42
|
+
Layout/HashAlignment:
|
43
|
+
EnforcedHashRocketStyle: key
|
44
|
+
EnforcedColonStyle: key
|
45
|
+
EnforcedLastArgumentHashStyle: always_inspect
|
46
|
+
|
34
47
|
# * 警告 120文字
|
35
48
|
# * 禁止 160文字
|
36
49
|
# のイメージ
|
@@ -139,6 +152,13 @@ Metrics/PerceivedComplexity:
|
|
139
152
|
|
140
153
|
#################### Naming ################################
|
141
154
|
|
155
|
+
# 3 文字未満だと指摘されるが、未使用を示す _ や e(rror), b(lock),
|
156
|
+
# n(umber) といった 1 文字変数は頻出するし、前置詞(by, to, ...)や
|
157
|
+
# よく知られた省略語 (op: operator とか pk: primary key とか) も妥当。
|
158
|
+
# 変数 s にどんな文字列かを形容したい場合と、不要な場合とがある=無効
|
159
|
+
Naming/MethodParameterName:
|
160
|
+
Enabled: false
|
161
|
+
|
142
162
|
# has_ から始まるメソッドは許可する
|
143
163
|
Naming/PredicateName:
|
144
164
|
ForbiddenPrefixes:
|
@@ -148,13 +168,6 @@ Naming/PredicateName:
|
|
148
168
|
- "is_"
|
149
169
|
- "have_"
|
150
170
|
|
151
|
-
# 3 文字未満だと指摘されるが、未使用を示す _ や e(rror), b(lock),
|
152
|
-
# n(umber) といった 1 文字変数は頻出するし、前置詞(by, to, ...)や
|
153
|
-
# よく知られた省略語 (op: operator とか pk: primary key とか) も妥当。
|
154
|
-
# 変数 s にどんな文字列かを形容したい場合と、不要な場合とがある=無効
|
155
|
-
Naming/MethodParameterName:
|
156
|
-
Enabled: false
|
157
|
-
|
158
171
|
#################### Security ##############################
|
159
172
|
|
160
173
|
# 毎回 YAML.safe_load(yaml_str, [Date, Time]) するのは面倒で。。
|
data/lib/rubocop/codetakt/cli.rb
CHANGED
data/rubocop-codetakt.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-codetakt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.87.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- codeTakt Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-07 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.
|
19
|
+
version: 0.87.1
|
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.
|
26
|
+
version: 0.87.1
|
27
27
|
description: |2
|
28
28
|
This includes the RuboCop configuration used by codeTakt. It is
|
29
29
|
for the unification and linting of coding styles.
|