standard 0.4.2 → 0.4.7

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: 35445fe31a2b7b18bf702640924595668420e3c30298473f62b0ca525de02a66
4
- data.tar.gz: 0e1fb5bb32f80b6fe73c6b4ee94a99201490b1c6fbf8b0d6214048f5ef0285b9
3
+ metadata.gz: a6d1ad0141d8e1460bb6001a586107ab181d96c61894c0ba199b4b902904679b
4
+ data.tar.gz: f499489648c8a61ca1d64ae66a3f4dee1e82f64395ad5721bcab12a591348867
5
5
  SHA512:
6
- metadata.gz: 9bc475f0adb2049092b9b32d257fd61a6054cc4b666aa79f041b8ad7e872928fb89716d7bbd318edd99506c33877100ea7aee48283f5572af25503d3dd0dcb77
7
- data.tar.gz: 2b482aa2000b7d4f8c514e01182e41e54f98419fda13a16edc60a3454e1dc4a86501dd6c38fdf63e7ba841e9c34a7713287ac32e176696a3c08d5ad73375d1ae
6
+ metadata.gz: 05f1b00d3505eed59e18908cabc6ce19b9fc3e9ec2123bbf803d08695f66d74f9583d5fedd1b0bdad9161fc33956238613269ef86d4d271c6a75668e0d8a9087
7
+ data.tar.gz: a8306c8a9b88354dbee59896e2b93c1db3c3cc7c1262e7c61157c884f4c69696b7447c083903f874d947d0c860d29b762a0c811b0a966d496916ae1b8f63d715
@@ -1,5 +1,50 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.7
4
+
5
+ * Update Rubocop from
6
+ [0.83.0](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md#0830-2020-05-11)
7
+ to
8
+ [0.85.0](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md#0850-2020-06-01), notably:
9
+
10
+ * Enable
11
+ [Lint/MixedRegexpCaptureTypes](https://rubocop.readthedocs.io/en/stable/cops_lint/#lintmixedregexpcapturetypes)
12
+ * Enable
13
+ [Lint/DeprecatedOpenSSLConstant](https://rubocop.readthedocs.io/en/stable/cops_lint/#lintdeprecatedopensslconstant)
14
+ * Enable
15
+ [Style/RedundantRegexpCharacterClass](https://github.com/rubocop-hq/rubocop/pull/8055)
16
+ * Enable
17
+ [Style/RedundantRegexpEscape](https://github.com/rubocop-hq/rubocop/pull/7908)
18
+ * Update rubocop-performance to
19
+ [1.6.0](https://github.com/rubocop-hq/rubocop-performance/blob/master/CHANGELOG.md#160-2020-05-22),
20
+ enabling:
21
+ * [Performance/BindCall](https://github.com/rubocop-hq/rubocop-performance/issues/77)
22
+ * [Performance/DeletePrefix](https://github.com/rubocop-hq/rubocop-performance/pull/105)
23
+ * [Performance/DeleteSuffix](https://github.com/rubocop-hq/rubocop-performance/pull/105)
24
+
25
+
26
+ ## 0.4.6
27
+
28
+ * Disable `Naming/BinaryOperatorParameterName` because (when non-ascii method
29
+ names are used), it incorrectly identifies them as being `+()` operator
30
+ overrides (overly aggressive)
31
+
32
+ ## 0.4.5
33
+
34
+ * Disable `Naming/AsciiIdentifiers` for the same reason as mentioned below in
35
+ 0.4.4 (specifically to allow programs written in non-Latin languages to define
36
+ identifiers)
37
+
38
+ ## 0.4.4
39
+
40
+ * Disable `Naming/MethodName` cop. While `snake_case` is the conventional way to
41
+ name a Ruby method, the cop is too restrictive in that it also prevents
42
+ non-ASCII characters from being included in method names
43
+
44
+ ## 0.4.3
45
+
46
+ * Improve output of the todo feature
47
+
3
48
  ## 0.4.2
4
49
 
5
50
  * Track Rubocop
@@ -1,42 +1,47 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (0.4.2)
5
- rubocop (~> 0.83.0)
6
- rubocop-performance (~> 1.5.2)
4
+ standard (0.4.7)
5
+ rubocop (~> 0.85.0)
6
+ rubocop-performance (~> 1.6.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  ast (2.4.0)
12
- coderay (1.1.2)
12
+ coderay (1.1.3)
13
13
  docile (1.3.2)
14
14
  gimme (0.5.0)
15
- method_source (0.9.2)
16
- minitest (5.14.0)
15
+ method_source (1.0.0)
16
+ minitest (5.14.1)
17
17
  parallel (1.19.1)
18
- parser (2.7.1.2)
18
+ parser (2.7.1.3)
19
19
  ast (~> 2.4.0)
20
- pry (0.12.2)
21
- coderay (~> 1.1.0)
22
- method_source (~> 0.9.0)
20
+ pry (0.13.1)
21
+ coderay (~> 1.1)
22
+ method_source (~> 1.0)
23
23
  rainbow (3.0.0)
24
24
  rake (13.0.1)
25
+ regexp_parser (1.7.0)
25
26
  rexml (3.2.4)
26
- rubocop (0.83.0)
27
+ rubocop (0.85.0)
27
28
  parallel (~> 1.10)
28
29
  parser (>= 2.7.0.1)
29
30
  rainbow (>= 2.2.2, < 4.0)
31
+ regexp_parser (>= 1.7)
30
32
  rexml
33
+ rubocop-ast (>= 0.0.3)
31
34
  ruby-progressbar (~> 1.7)
32
35
  unicode-display_width (>= 1.4.0, < 2.0)
33
- rubocop-performance (1.5.2)
36
+ rubocop-ast (0.0.3)
37
+ parser (>= 2.7.0.1)
38
+ rubocop-performance (1.6.0)
34
39
  rubocop (>= 0.71.0)
35
40
  ruby-progressbar (1.10.1)
36
- simplecov (0.18.2)
41
+ simplecov (0.18.5)
37
42
  docile (~> 1.1)
38
43
  simplecov-html (~> 0.11)
39
- simplecov-html (0.12.0)
44
+ simplecov-html (0.12.2)
40
45
  unicode-display_width (1.7.0)
41
46
 
42
47
  PLATFORMS
data/README.md CHANGED
@@ -211,6 +211,7 @@ if you've used StandardJS.)
211
211
  * [Level UP Solutions](https://levups.com)
212
212
  * [Honeybadger](https://www.honeybadger.io)
213
213
  * [Amazon Web Services](https://aws.amazon.com/)
214
+ * [Envoy](https://www.envoy.com)
214
215
  * And that's about it so far!
215
216
 
216
217
  If your team starts using Standard, [send a pull
@@ -160,7 +160,6 @@ Layout/FirstHashElementIndentation:
160
160
 
161
161
  Layout/HeredocIndentation:
162
162
  Enabled: true
163
- EnforcedStyle: squiggly
164
163
 
165
164
  Layout/IndentationConsistency:
166
165
  Enabled: true
@@ -339,6 +338,9 @@ Lint/Debugger:
339
338
  Lint/DeprecatedClassMethods:
340
339
  Enabled: true
341
340
 
341
+ Lint/DeprecatedOpenSSLConstant:
342
+ Enabled: true
343
+
342
344
  Lint/DuplicateCaseCondition:
343
345
  Enabled: true
344
346
 
@@ -409,6 +411,9 @@ Lint/MissingCopEnableDirective:
409
411
  Enabled: true
410
412
  MaximumRangeSize: .inf
411
413
 
414
+ Lint/MixedRegexpCaptureTypes:
415
+ Enabled: true
416
+
412
417
  Lint/MultipleComparison:
413
418
  Enabled: true
414
419
 
@@ -537,12 +542,6 @@ Lint/Void:
537
542
  Migration/DepartmentName:
538
543
  Enabled: true
539
544
 
540
- Naming/AsciiIdentifiers:
541
- Enabled: true
542
-
543
- Naming/BinaryOperatorParameterName:
544
- Enabled: true
545
-
546
545
  Naming/ClassAndModuleCamelCase:
547
546
  Enabled: true
548
547
 
@@ -553,10 +552,6 @@ Naming/HeredocDelimiterCase:
553
552
  Enabled: true
554
553
  EnforcedStyle: uppercase
555
554
 
556
- Naming/MethodName:
557
- Enabled: true
558
- EnforcedStyle: snake_case
559
-
560
555
  Naming/BlockParameterName:
561
556
  Enabled: true
562
557
  MinNameLength: 1
@@ -568,6 +563,9 @@ Naming/VariableName:
568
563
  Enabled: true
569
564
  EnforcedStyle: snake_case
570
565
 
566
+ Performance/BindCall:
567
+ Enabled: true
568
+
571
569
  Performance/Caller:
572
570
  Enabled: true
573
571
 
@@ -577,6 +575,12 @@ Performance/CompareWithBlock:
577
575
  Performance/Count:
578
576
  Enabled: true
579
577
 
578
+ Performance/DeletePrefix:
579
+ Enabled: true
580
+
581
+ Performance/DeleteSuffix:
582
+ Enabled: true
583
+
580
584
  Performance/Detect:
581
585
  Enabled: true
582
586
 
@@ -586,8 +590,6 @@ Performance/DoubleStartEndWith:
586
590
 
587
591
  Performance/EndWith:
588
592
  Enabled: true
589
- SafeAutoCorrect: false
590
- AutoCorrect: false
591
593
 
592
594
  Performance/FixedSize:
593
595
  Enabled: true
@@ -622,8 +624,6 @@ Performance/Size:
622
624
 
623
625
  Performance/StartWith:
624
626
  Enabled: true
625
- SafeAutoCorrect: false
626
- AutoCorrect: false
627
627
 
628
628
  Performance/StringReplacement:
629
629
  Enabled: true
@@ -938,6 +938,12 @@ Style/RedundantFreeze:
938
938
  Style/RedundantParentheses:
939
939
  Enabled: true
940
940
 
941
+ Style/RedundantRegexpCharacterClass:
942
+ Enabled: true
943
+
944
+ Style/RedundantRegexpEscape:
945
+ Enabled: true
946
+
941
947
  Style/RedundantReturn:
942
948
  Enabled: true
943
949
  AllowMultipleReturnValues: false
@@ -17,6 +17,10 @@ module Standard
17
17
  @any_uncorrected_offenses = false
18
18
  end
19
19
 
20
+ def started(_target_files)
21
+ print_todo_warning
22
+ end
23
+
20
24
  def file_finished(file, offenses)
21
25
  return unless (uncorrected_offenses = offenses.reject(&:corrected?)).any?
22
26
  @any_uncorrected_offenses = true
@@ -30,7 +34,6 @@ module Standard
30
34
  end
31
35
 
32
36
  def finished(_)
33
- print_todo_warning
34
37
  print_call_for_feedback if @any_uncorrected_offenses
35
38
  end
36
39
 
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("0.4.2")
2
+ VERSION = Gem::Version.new("0.4.7")
3
3
  end
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "rubocop", "~> 0.83.0"
23
- spec.add_dependency "rubocop-performance", "~> 1.5.2"
22
+ spec.add_dependency "rubocop", "~> 0.85.0"
23
+ spec.add_dependency "rubocop-performance", "~> 1.6.0"
24
24
 
25
25
  spec.add_development_dependency "bundler"
26
26
  spec.add_development_dependency "minitest", "~> 5.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-18 00:00:00.000000000 Z
11
+ date: 2020-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.83.0
19
+ version: 0.85.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.83.0
26
+ version: 0.85.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.5.2
33
+ version: 1.6.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.5.2
40
+ version: 1.6.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement