standard 1.32.0 → 1.33.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: 06be5bec519e9ecb1ce36e61736d8e23ac6290f46c9c7f28a49e75e615377491
4
- data.tar.gz: e2a4ecedee742279718f8709ac7e99aa4898a2a4707a44de85a89a89dd83b897
3
+ metadata.gz: d2d9b2d176cfaf42632e3007ae0520736726fe7bf4d0b8cf2bbfcace98bffbc3
4
+ data.tar.gz: 4f200b152f0d8bee0cce4540d3b19b4270180598fe4f534563875736f2beff9d
5
5
  SHA512:
6
- metadata.gz: a47ae405579c9c39605cc0fe583b725923d71839c5344277140c45f0b8987404e3641553d9d084f239de17118eea08a729cee6003a14c684fd8f028f1199c5d2
7
- data.tar.gz: e5fb5f657b7f41155707be28e77975683a97a7f02056d5d4d99ac442876c6a922d56ed7986b4cfee7bee0660719cb1611dc1dc8e27084efc648d27e744847042
6
+ metadata.gz: 93430778d9de63b32a445825e4d68ad9fe9f7d4afc86b090482d1459ecd3c4a440326688287c3148ddec14a17755b82b9dfd119476d09737e62e1e5e1791aa92
7
+ data.tar.gz: e0d6055c79a0e81d236183f30a50edf4b4136c37525d182747155da6a67c29444477583fd223f72a2c54aa26f5fe94cc1326d4b9f6899b510d5aa0a2564872b4
@@ -16,7 +16,7 @@ jobs:
16
16
  strategy:
17
17
  matrix:
18
18
  os: [ubuntu-latest]
19
- ruby-version: [2.7, '3.0', 3.1, 3.2, head]
19
+ ruby-version: [2.7, '3.0', 3.1, 3.2, 3.3]
20
20
 
21
21
  runs-on: ${{ matrix.os }}
22
22
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.33.0
4
+
5
+ * Updates rubocop to [1.59.0](https://github.com/rubocop/rubocop/releases/tag/v1.59.0)
6
+ * Updates standard-performance to [1.3.0](https://github.com/standardrb/standard-performance/releases/tag/v1.3.0)
7
+
8
+ ## 1.32.1
9
+
10
+ * Fixes regeneration of TODO files ot avoid missing already-ignored rules [#587](https://github.com/standardrb/standard/pull/587)
11
+
3
12
  ## 1.32.0
4
13
 
5
14
  * Updates rubocop to [1.57.2](https://github.com/rubocop/rubocop/releases/tag/v1.57.2)
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.32.0)
4
+ standard (1.33.0)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  lint_roller (~> 1.0)
7
- rubocop (~> 1.57.2)
7
+ rubocop (~> 1.59.0)
8
8
  standard-custom (~> 1.0.0)
9
- standard-performance (~> 1.2)
9
+ standard-performance (~> 1.3)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
@@ -31,7 +31,7 @@ GEM
31
31
  rake (13.0.6)
32
32
  regexp_parser (2.8.2)
33
33
  rexml (3.2.6)
34
- rubocop (1.57.2)
34
+ rubocop (1.59.0)
35
35
  json (~> 2.3)
36
36
  language_server-protocol (>= 3.17.0)
37
37
  parallel (~> 1.10)
@@ -39,14 +39,14 @@ GEM
39
39
  rainbow (>= 2.2.2, < 4.0)
40
40
  regexp_parser (>= 1.8, < 3.0)
41
41
  rexml (>= 3.2.5, < 4.0)
42
- rubocop-ast (>= 1.28.1, < 2.0)
42
+ rubocop-ast (>= 1.30.0, < 2.0)
43
43
  ruby-progressbar (~> 1.7)
44
44
  unicode-display_width (>= 2.4.0, < 3.0)
45
- rubocop-ast (1.29.0)
45
+ rubocop-ast (1.30.0)
46
46
  parser (>= 3.2.1.0)
47
- rubocop-performance (1.19.1)
48
- rubocop (>= 1.7.0, < 2.0)
49
- rubocop-ast (>= 0.4.0)
47
+ rubocop-performance (1.20.1)
48
+ rubocop (>= 1.48.1, < 2.0)
49
+ rubocop-ast (>= 1.30.0, < 2.0)
50
50
  ruby-progressbar (1.13.0)
51
51
  simplecov (0.22.0)
52
52
  docile (~> 1.1)
@@ -57,9 +57,9 @@ GEM
57
57
  standard-custom (1.0.2)
58
58
  lint_roller (~> 1.0)
59
59
  rubocop (~> 1.50)
60
- standard-performance (1.2.1)
60
+ standard-performance (1.3.0)
61
61
  lint_roller (~> 1.1)
62
- rubocop-performance (~> 1.19.1)
62
+ rubocop-performance (~> 1.20.1)
63
63
  unicode-display_width (2.5.0)
64
64
 
65
65
  PLATFORMS
@@ -76,4 +76,4 @@ DEPENDENCIES
76
76
  standard!
77
77
 
78
78
  BUNDLED WITH
79
- 2.4.21
79
+ 2.4.12
data/README.md CHANGED
@@ -494,9 +494,11 @@ Here are a few examples of Ruby Standard-compliant teams & projects:
494
494
  * [Rebase Interactive](https://www.rebaseinteractive.com/)
495
495
  * [Renuo](https://www.renuo.ch/)
496
496
  * [RubyCI](https://ruby.ci)
497
+ * [SearchApi](https://www.searchapi.io/)
497
498
  * [Spinal](https://spinalcms.com/)
498
499
  * [Teamtailor](https://www.teamtailor.com/)
499
500
  * [thoughtbot](https://thoughtbot.com/)
501
+ * [University of Wisconsin-Eau Claire](https://www.uwec.edu/)
500
502
 
501
503
  Does your team use Standard? [Add your name to the list](https://github.com/standardrb/standard/edit/main/README.md)!
502
504
 
data/config/base.yml CHANGED
@@ -586,12 +586,18 @@ Lint/InheritException:
586
586
  Lint/InterpolationCheck:
587
587
  Enabled: true
588
588
 
589
+ Lint/ItWithoutArgumentsInBlock:
590
+ Enabled: true
591
+
589
592
  Lint/LambdaWithoutLiteralBlock:
590
593
  Enabled: false
591
594
 
592
595
  Lint/LiteralAsCondition:
593
596
  Enabled: true
594
597
 
598
+ Lint/LiteralAssignmentInCondition:
599
+ Enabled: true
600
+
595
601
  Lint/LiteralInInterpolation:
596
602
  Enabled: true
597
603
 
@@ -977,6 +983,9 @@ Style/ArgumentsForwarding:
977
983
  Style/ArrayCoercion:
978
984
  Enabled: false
979
985
 
986
+ Style/ArrayFirstLast:
987
+ Enabled: false
988
+
980
989
  Style/ArrayIntersect:
981
990
  Enabled: false
982
991
 
@@ -1712,6 +1721,9 @@ Style/Strip:
1712
1721
  Style/StructInheritance:
1713
1722
  Enabled: false
1714
1723
 
1724
+ Style/SuperWithArgsParentheses:
1725
+ Enabled: true
1726
+
1715
1727
  Style/SwapValues:
1716
1728
  Enabled: false
1717
1729
 
@@ -15,7 +15,13 @@ module Standard
15
15
 
16
16
  def call(argv, search_path = Dir.pwd)
17
17
  standard_yaml_path = @resolves_yaml_option.call(argv, search_path, "--config", ".standard.yml")
18
- todo_yaml_path = @resolves_yaml_option.call(argv, search_path, "--todo", ".standard_todo.yml")
18
+
19
+ # Don't load the existing todo file when generating a new todo file. Otherwise the
20
+ # new todo file won't have the ignore rules in the existing file.
21
+ todo_yaml_path = unless argv.include?("--generate-todo")
22
+ @resolves_yaml_option.call(argv, search_path, "--todo", ".standard_todo.yml")
23
+ end
24
+
19
25
  standard_config = @loads_yaml_config.call(standard_yaml_path, todo_yaml_path)
20
26
 
21
27
  settings = @merges_settings.call(argv, standard_config)
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.32.0")
2
+ VERSION = Gem::Version.new("1.33.0")
3
3
  end
data/standard.gemspec CHANGED
@@ -23,11 +23,11 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = ["lib"]
24
24
  spec.metadata["rubygems_mfa_required"] = "true"
25
25
 
26
- spec.add_dependency "rubocop", "~> 1.57.2"
26
+ spec.add_dependency "rubocop", "~> 1.59.0"
27
27
 
28
28
  spec.add_dependency "lint_roller", "~> 1.0"
29
29
  spec.add_dependency "standard-custom", "~> 1.0.0"
30
- spec.add_dependency "standard-performance", "~> 1.2"
30
+ spec.add_dependency "standard-performance", "~> 1.3"
31
31
 
32
32
  # not semver: first three are lsp protocol version, last is patch
33
33
  spec.add_dependency "language_server-protocol", "~> 3.17.0.2"
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: 1.32.0
4
+ version: 1.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-07 00:00:00.000000000 Z
11
+ date: 2023-12-26 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: 1.57.2
19
+ version: 1.59.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: 1.57.2
26
+ version: 1.59.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: lint_roller
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.2'
61
+ version: '1.3'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.2'
68
+ version: '1.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: language_server-protocol
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 3.17.0.2
83
- description:
83
+ description:
84
84
  email:
85
85
  - searls@gmail.com
86
86
  executables:
@@ -168,7 +168,7 @@ metadata:
168
168
  source_code_uri: https://github.com/standardrb/standard
169
169
  changelog_uri: https://github.com/standardrb/standard/blob/main/CHANGELOG.md
170
170
  rubygems_mfa_required: 'true'
171
- post_install_message:
171
+ post_install_message:
172
172
  rdoc_options: []
173
173
  require_paths:
174
174
  - lib
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  version: '0'
185
185
  requirements: []
186
186
  rubygems_version: 3.1.6
187
- signing_key:
187
+ signing_key:
188
188
  specification_version: 4
189
189
  summary: Ruby Style Guide, with linter & automatic code fixer
190
190
  test_files: []