rubocop-codetakt 0.82.0.1 → 0.87.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e42d51bc1455fb48b32ff21210ade5dde90b37cc0f5cfe423fdfd381558a2d4c
4
- data.tar.gz: c939fc2be4ed15dc72678a00946e531b28461d79849c095b40ff182562fb1c7b
3
+ metadata.gz: e6b24d02428bbae72dabacfdb6e529c1ef2500b0f83596cd5d49452799e020c6
4
+ data.tar.gz: 52803997dffc05080397dbb7bb2cb9191fa278e3cad50afabf7082c68584ef9f
5
5
  SHA512:
6
- metadata.gz: 37830772b2b7ff96b139c7a6ee75f0a270fe77baf229032302a0ab4022fa5fb92b4a2194957875a903580ae1c4e59c06cf5844fc81f5ffa586f7bc1afcadfbaa
7
- data.tar.gz: 69593d0ef9954bc719280b80405119dfe7786dc904786761281cc7dc5fc31fc3ee8ac6f03651ecf3659256ac15a47bfd187f68c48cb4e7847466d85886cac274
6
+ metadata.gz: dbbbf3659a29a0cf160f32d37b13493aa1da4c23f536c98af9497a527663c8f7562b0ccd711f4997a2ef95c09c83695b8b3e3097022a8f47c3163c3292a23d87
7
+ data.tar.gz: 44a3b76559838de63ee12e25154db6d97397136cb5992bb2355dfdf7786058ea08b80a47404ff4abcbb0c38da2fe3fcf2658d68528ebc9ad4ac3fa48878334b9
@@ -1,5 +1,26 @@
1
1
  # rubocop-codetakt:
2
2
 
3
+ ## v0.87.0.0 (2020-07-07)
4
+
5
+ * Update `rubocop` v0.87.0, `rubocop-rails` to v2.6.0 and `rubocop-rspec` v1.41.0
6
+
7
+ ## v0.85.0.0 (2020-06-04)
8
+
9
+ * Update `rubocop` v0.85.0
10
+
11
+ ## v0.84.0.0 (2020-06-04)
12
+
13
+ * Update `rubocop` v0.84.0, `rubocop-rspec` v1.39.0, `rubocop-rails` v2.5.0 and `rubocop-performance` v1.6.0
14
+ * Clarify `Layout/HashAlignment` cop option
15
+
16
+ ## v0.83.0.1 (2020-06-03)
17
+
18
+ * Disable `RSpec/MultipleExpectations:` cop
19
+
20
+ ## v0.83.0.0 (2020-05-18)
21
+
22
+ * Update `rubocop` v0.83.0
23
+
3
24
  ## v0.82.0.1 (2020-06-01)
4
25
 
5
26
  * Make the code in this repository to no offenses
@@ -13,7 +34,7 @@
13
34
  * Separate the file of performance settings
14
35
  * Clarify requiring the `rubocop-rails` gem in the Rails settings file
15
36
  * Refine dependency settings
16
- * Remove `Layout/DotPosition` cop'
37
+ * Remove `Layout/DotPosition` cop
17
38
  * Remove `Layout/IndentationConsistency` cop
18
39
  * Remove `Style/BracesAroundHashParameters` cop
19
40
  * Remove `Style/MethodCalledOnDoEndBlock`
@@ -71,7 +92,7 @@
71
92
  * Update `rubocop` v0.52.0 and `rubocop-rspec` v1.21.0
72
93
  * Remove `DisplayCopNames` configuration
73
94
  * Enable new `Style/ClassStructure` cop
74
- * Disalbe `Style/FormatStringToken` cop
95
+ * Disable `Style/FormatStringToken` cop
75
96
  * Change `Layout/SpaceBeforeBlockBraces` cop's empty braces style to `space`
76
97
  * Change `Style/RescueStandardError` cop to implicit style
77
98
  * 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', '~> 12.0'
6
+ gem 'rake', '~> 13.0'
7
7
  gem 'rspec', '~> 3.0'
8
- gem 'rubocop-performance', '~> 1.5.0'
9
- gem 'rubocop-rails', '~> 2.5.0'
10
- gem 'rubocop-rspec', '~> 1.38.0'
8
+ gem 'rubocop-performance', '~> 1.6.0'
9
+ gem 'rubocop-rails', '~> 2.6.0'
10
+ gem 'rubocop-rspec', '~> 1.41.0'
@@ -40,14 +40,12 @@ RSpec/ImplicitExpect:
40
40
  RSpec/InstanceVariable:
41
41
  Enabled: false
42
42
 
43
- # spec_helper meta[:aggregate_failures] を設定することで
44
- # aggregate_failures が全ての spec で有効になる。
45
- #
46
- # ほぼ MultipleExpectations についてはチェックされなくなる設定なので注意。
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
- AggregateFailuresByDefault: true
48
+ Enabled: false
51
49
 
52
50
  # 変に名前つけて呼ぶ方が分かりづらい。
53
51
  # テスト対象メソッドを呼ぶだけの subject 以外を書かないようにする方が効く。
@@ -35,6 +35,15 @@ Layout/FirstArrayElementIndentation:
35
35
  Layout/FirstHashElementIndentation:
36
36
  EnforcedStyle: consistent
37
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
+
38
47
  # * 警告 120文字
39
48
  # * 禁止 160文字
40
49
  # のイメージ
@@ -143,6 +152,13 @@ Metrics/PerceivedComplexity:
143
152
 
144
153
  #################### Naming ################################
145
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
+
146
162
  # has_ から始まるメソッドは許可する
147
163
  Naming/PredicateName:
148
164
  ForbiddenPrefixes:
@@ -152,13 +168,6 @@ Naming/PredicateName:
152
168
  - "is_"
153
169
  - "have_"
154
170
 
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
-
162
171
  #################### Security ##############################
163
172
 
164
173
  # 毎回 YAML.safe_load(yaml_str, [Date, Time]) するのは面倒で。。
@@ -26,7 +26,7 @@ module RuboCop
26
26
 
27
27
  def self.retrieve_command_name(args)
28
28
  meth = args.first.to_s unless args.empty?
29
- args.shift if meth && (meth !~ /^\-/)
29
+ args.shift if meth && (meth !~ /^-/)
30
30
  end
31
31
 
32
32
  def self.print_help
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module Codetakt
3
- VERSION = '0.82.0.1'.freeze
3
+ VERSION = '0.87.0.0'.freeze
4
4
  end
5
5
  end
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
 
24
- spec.add_dependency 'rubocop', '~> 0.82.0'
24
+ spec.add_dependency 'rubocop', '~> 0.87.0'
25
25
  end
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.82.0.1
4
+ version: 0.87.0.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-06-01 00:00:00.000000000 Z
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.82.0
19
+ version: 0.87.0
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.82.0
26
+ version: 0.87.0
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.