standard-rubocop-lts 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bde59f8b70be887c11337c95695137ef329e7dcc4f62f570f05863dfde430a2
4
- data.tar.gz: 7fe3919dd5f0aa28ddbf2ef7cbdad5a1bf825648e06f9868b9ed172dfd7ca10c
3
+ metadata.gz: dab86808ecdb1b134185591f86073a4b4b7628b0629793f5b93d4387e323b262
4
+ data.tar.gz: 0a9c2342cb8a386dc97442b8a3bec8ae80b230ff0b10301d2e9fdc16db4f43d5
5
5
  SHA512:
6
- metadata.gz: ab0d10694f3d52aa30952122045f98cea2e2a306e492633701fea9e154ec57887cb4c5c3745c283c807604d01d4f550a02790975b4d71c93232e9daec832ff57
7
- data.tar.gz: e0d7fed25e83b66f11ea0a119c071f0d4e08a2cb7e1911c2c0100c15524797d9541c8c604b37730c83b49ffacf282dcc21f4587a86b89bb142fe348e37ff5874
6
+ metadata.gz: 2b2acb57b6c225ee9b77d0b324a6a1e64a02585e7c4eaf781c5f033a21fb3e0449ff3abce650ec911613c01ff8e9eb9a458a24fa5741e53cc3da2c5f8e75a2c5
7
+ data.tar.gz: a97404ee901c9f3585bbdb4e20f8a678b25727585b7d439a29c3d33164951a72ed016828bfc68476749f4e16d761f376e4a635d4013aa83ee560b1361fc040cc
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -10,6 +10,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
  ### Fixed
11
11
  ### Removed
12
12
 
13
+ ## [1.0.5] 2023-06-03
14
+ ### Fixed
15
+ - require deps for configs 1.9 - 3.3
16
+
17
+ ## [1.0.4] 2023-06-03
18
+ ### Fixed
19
+ - rubocop-shopify > standard gem family of rules
20
+ - v1.0.0 intended for rubocop-shopify to override standard's rules, now it actually does
21
+ - override mechanism in rubocop.yml config is counter-intuitive :(
22
+ - Stop doubly loading style libs and configs with more careful config structure
23
+ ### Changed
24
+ - disable several rubocop-performance cops that are bad cops
25
+
13
26
  ## [1.0.3] 2023-05-29
14
27
  ### Added
15
28
  - Gem releases are now signed!
@@ -47,6 +60,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
47
60
  ### Added
48
61
  - Initial release
49
62
 
50
- [Unreleased]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.0...HEAD
63
+ [Unreleased]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.5...HEAD
64
+ [1.0.5]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.4...v1.0.5
65
+ [1.0.4]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.3...v1.0.4
66
+ [1.0.3]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.2...v1.0.3
67
+ [1.0.2]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.1...v1.0.2
51
68
  [1.0.1]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.0...v1.0.1
52
69
  [1.0.0]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/0c0f82c0eeda184afb5c2c7a3d6b43c10f2d4c1c...v1.0.0
data/README.md CHANGED
@@ -84,7 +84,7 @@ It will enable your Ruby style rules to keep pace with whatever version of Ruby
84
84
  Extended [standard (Standard Ruby)][standardrb] config shims for all your finely-aged rubies,
85
85
  back to Ruby version 1.8. Compatible with the `rubocop-lts` [gem family](#a-gem-family).
86
86
 
87
- Use the rules standard gives you, and then add more,
87
+ Use the rules standard gives you, and then add more,
88
88
  to increase your code's compatibility across multiple versions of Ruby.
89
89
 
90
90
  Only reach as far back as you need to go!
@@ -161,31 +161,62 @@ inherit_gem:
161
161
  <details>
162
162
  <summary>What will this do for me?</summary>
163
163
 
164
- Among other settings specific to your chosen minimum version of ruby, the above results in the following config:
164
+ Among other settings specific to your chosen minimum version of ruby,
165
+ the above _effectively_ results in the following config (& more):
165
166
 
166
167
  ```yaml
167
- # We want Exclude directives from different
168
+ # We want Exclude and Include directives from different
168
169
  # config files to get merged, not overwritten
169
170
  inherit_mode:
170
171
  merge:
171
172
  - Exclude
173
+ - Include
172
174
 
173
175
  require:
174
- - rubocop-performance
175
176
  - standard
176
177
  - standard-performance
177
178
  - standard-custom
179
+ - rubocop-performance
178
180
 
181
+ # Load basic rules for this version of Ruby from standard.
182
+ # Rules are overridden in a LIFO stack.
183
+ # If rubocop-performance is loaded first, and standard-performance after it,
184
+ # then rubocop-performance's rules will take precedence.
185
+ # This is the opposite of what you might expect.
186
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
179
187
  inherit_gem:
180
- rubocop-performance: config/default.yml
181
- standard: config/base.yml
182
- standard-performance: config/base.yml
188
+ standard: config/ruby-1.8.yml
189
+ standard-performance: config/ruby-1.8.yml
183
190
  standard-custom: config/base.yml
184
- # Plus: Any ruby-version-specific configs provided by any of the standard gems
185
- # Plus+: Many ruby-version-specific configs that standard does not have
191
+ rubocop-performance: config/default.yml
186
192
 
187
193
  AllCops:
188
194
  NewCops: enable
195
+
196
+ # See:
197
+ # https://github.com/rubocop/rubocop-performance/issues/240
198
+ # https://github.com/rubocop/rubocop-performance/pull/241
199
+ Performance/Casecmp:
200
+ Enabled: false
201
+
202
+ # See: https://github.com/rubocop/rubocop-performance/issues/329#issuecomment-1375527811
203
+ Performance/BlockGivenWithExplicitBlock:
204
+ Enabled: false
205
+
206
+ # See: https://github.com/rubocop/rubocop-performance/issues/329#issuecomment-1451511402
207
+ Performance/ArraySemiInfiniteRangeSlice:
208
+ Enabled: false
209
+
210
+ # See: https://github.com/rubocop/rubocop-performance/issues/329#issuecomment-1451511402
211
+ Performance/BigDecimalWithNumericArgument:
212
+ Enabled: false
213
+
214
+ # See: https://github.com/rubocop/rubocop-performance/issues/329#issuecomment-1451511402
215
+ Performance/IoReadlines:
216
+ Enabled: false
217
+
218
+ # Plus: Ruby-version-specific configs provided by "standard" family of gems
219
+ # Plus+: Ruby-version-specific configs that standard does not have
189
220
  ```
190
221
  </details>
191
222
 
data/config/base.yml CHANGED
@@ -1,20 +1,2 @@
1
- # We want Exclude directives from different
2
- # config files to get merged, not overwritten
3
- inherit_mode:
4
- merge:
5
- - Exclude
6
-
7
- require:
8
- - rubocop-performance
9
- - standard
10
- - standard-performance
11
- - standard-custom
12
-
13
- inherit_gem:
14
- rubocop-performance: config/default.yml
15
- standard: config/base.yml
16
- standard-performance: config/base.yml
17
- standard-custom: config/base.yml
18
-
19
1
  AllCops:
20
- NewCops: enable
2
+ NewCops: enable
data/config/ruby-1.8.yml CHANGED
@@ -1,26 +1,28 @@
1
- inherit_from: ./ruby-1.9.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
2
7
 
3
- # NOTE: The lowest TargetRubyVersion that can be declared is 2.0
4
- # AllCops:
5
- # TargetRubyVersion: 1.8
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-1.8.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
6
17
 
7
18
  # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
8
24
  inherit_gem:
9
25
  standard: config/ruby-1.8.yml
10
-
11
- ##############################################################################
12
- # Additional rules that allow preservation of ruby 1.8.7 / ree compatibility #
13
- # These are not in standard, and are the primary reason this gem exists. #
14
- ##############################################################################
15
-
16
- # Ruby 1.8.7 needs the . on chain of method calls at the end of a line
17
- # This cop is disabled for Ruby 1.8 in Standard, which is doesn't help
18
- # RuboCop/Standard users ensure their codebase remains compatible with Ruby 1.8
19
- # As such we override here!
20
- # See: https://github.com/standardrb/standard/issues/561
21
- Layout/DotPosition:
22
- EnforcedStyle: trailing
23
-
24
- # Disabled in standard's base.yml. Keeping here in case it is removed from base.
25
- Style/Documentation:
26
- Enabled: false
26
+ standard-performance: config/ruby-1.8.yml
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-1.9.yml CHANGED
@@ -1,42 +1,28 @@
1
- inherit_from: ./ruby-2.0.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
2
7
 
3
- # NOTE: The lowest TargetRubyVersion that can be declared is 2.0
4
- # AllCops:
5
- # TargetRubyVersion: 1.9
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-1.9.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
6
17
 
7
18
  # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
8
24
  inherit_gem:
9
25
  standard: config/ruby-1.9.yml
10
-
11
- # Standard's rules in base.yml do not work with Ruby < 2.0, so overriding.
12
- # See: https://github.com/standardrb/standard/pull/563
13
- # Percent delimiters are not supported until Ruby 2.0
14
- Style/PercentLiteralDelimiters:
15
- Enabled: false
16
-
17
- Style/SymbolArray:
18
- EnforcedStyle: brackets
19
-
20
- Style/WordArray:
21
- EnforcedStyle: brackets
22
-
23
- ##############################################################################
24
- # Additional rules that allow preservation of ruby 1.8.7 / ree compatibility #
25
- # These are not in standard, and are a secondary reason this gem exists. #
26
- ##############################################################################
27
-
28
- # Disabled in standard's base.yml, which allows magic encoding comments to live on.
29
- # Reproducing here, in case Standard Ruby drops the config.
30
- #
31
- Style/Encoding:
32
- Enabled: false
33
- # The encoding comments can be removed once a project drops Ruby 1.9 support.
34
- # Whole file UTF-8 Encoding is default in Ruby 2+, so the Encoding comment is usually not needed there.
35
- # See:
36
- # * https://www.rubydoc.info/gems/rubocop/0.49.0/RuboCop/Cop/Style/Encoding
37
- # * https://rubydoc.info/gems/rubocop/RuboCop/Cop/Style/Encoding
38
- # Unfortunately in latest RuboCop there is only a "never" style enforced (i.e. encodings are always bad).
39
- # TODO: Consider bringing back this rule as a new Cop (extracted from old RuboCop)
40
- #Style/Encoding:
41
- # Enabled: true
42
- # EnforcedStyle: always
26
+ standard-performance: config/ruby-1.9.yml
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-2.0.yml CHANGED
@@ -1,5 +1,28 @@
1
- inherit_from: ./ruby-2.1.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
7
+
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-2.0.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
2
17
 
3
18
  # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
4
24
  inherit_gem:
5
25
  standard: config/ruby-2.0.yml
26
+ standard-performance: config/ruby-2.0.yml
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-2.1.yml CHANGED
@@ -1,5 +1,28 @@
1
- inherit_from: ./ruby-2.2.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
7
+
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-2.1.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
2
17
 
3
18
  # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
4
24
  inherit_gem:
5
25
  standard: config/ruby-2.1.yml
26
+ standard-performance: config/ruby-2.1.yml
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-2.2.yml CHANGED
@@ -1,20 +1,28 @@
1
- inherit_from: ./ruby-2.3.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
7
+
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-2.2.yml
2
11
 
3
12
  require:
4
- - rubocop-performance
5
13
  - standard
6
14
  - standard-performance
7
15
  - standard-custom
16
+ - rubocop-performance
8
17
 
9
18
  # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
10
24
  inherit_gem:
11
- # Duplicated from config/base.yml because of the yaml hierarchy.
12
- rubocop-performance: config/default.yml
13
- # Ruby version-specific overrides for specific additional gems.
14
25
  standard: config/ruby-2.2.yml
15
26
  standard-performance: config/ruby-2.2.yml
16
-
17
- # Disabled in standard's base.yml. Keeping here in case removed from base.
18
- # As of Ruby 3, string literals are frozen in all files.
19
- Style/FrozenStringLiteralComment:
20
- Enabled: false
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-2.3.yml CHANGED
@@ -1,5 +1,28 @@
1
- inherit_from: ./ruby-2.4.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
7
+
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-2.3.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
2
17
 
3
18
  # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
4
24
  inherit_gem:
5
25
  standard: config/ruby-2.3.yml
26
+ standard-performance: config/base.yml
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-2.4.yml CHANGED
@@ -1,5 +1,28 @@
1
- inherit_from: ./ruby-2.5.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
7
+
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-2.4.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
2
17
 
3
18
  # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
4
24
  inherit_gem:
5
25
  standard: config/ruby-2.4.yml
26
+ standard-performance: config/base.yml
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-2.5.yml CHANGED
@@ -1,5 +1,28 @@
1
- inherit_from: ./ruby-2.6.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
7
+
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-2.5.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
2
17
 
3
18
  # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
4
24
  inherit_gem:
5
25
  standard: config/ruby-2.5.yml
26
+ standard-performance: config/base.yml
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-2.6.yml CHANGED
@@ -1,5 +1,28 @@
1
- inherit_from: ./ruby-2.7.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
7
+
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-2.6.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
2
17
 
3
18
  # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
4
24
  inherit_gem:
5
25
  standard: config/ruby-2.6.yml
26
+ standard-performance: config/base.yml
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-2.7.yml CHANGED
@@ -1,5 +1,28 @@
1
- inherit_from: ./ruby-3.0.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
7
+
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-2.7.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
2
17
 
3
18
  # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
4
24
  inherit_gem:
5
25
  standard: config/ruby-2.7.yml
26
+ standard-performance: config/base.yml
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-3.0.yml CHANGED
@@ -1,5 +1,28 @@
1
- inherit_from: ./ruby-3.1.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
7
+
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-3.0.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
2
17
 
3
18
  # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
4
24
  inherit_gem:
5
25
  standard: config/ruby-3.0.yml
26
+ standard-performance: config/base.yml
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-3.1.yml CHANGED
@@ -1,5 +1,28 @@
1
- inherit_from: ./ruby-3.2.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
7
+
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-3.1.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
2
17
 
3
18
  # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
4
24
  inherit_gem:
5
25
  standard: config/ruby-3.1.yml
26
+ standard-performance: config/base.yml
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-3.2.yml CHANGED
@@ -1,4 +1,28 @@
1
- inherit_from: ./ruby-3.3.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
2
7
 
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-3.2.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
18
+ # Load basic rules for this version of Ruby from standard.
19
+ # Rules are overridden in a LIFO stack.
20
+ # If rubocop-performance is loaded first, and standard-performance after it,
21
+ # then rubocop-performance's rules will take precedence.
22
+ # This is the opposite of what you might expect.
23
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
3
24
  inherit_gem:
4
25
  standard: config/ruby-3.2.yml
26
+ standard-performance: config/base.yml
27
+ standard-custom: config/base.yml
28
+ rubocop-performance: config/default.yml
data/config/ruby-3.3.yml CHANGED
@@ -1,6 +1,31 @@
1
- inherit_from: ./base.yml
1
+ # We want Exclude and Include directives from different
2
+ # config files to get merged, not overwritten
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+ - Include
7
+
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-3.3.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
2
17
 
3
18
  # TODO: Load basic rules for this version of Ruby from standard, once Standard includes it!
4
19
  # See: https://github.com/standardrb/standard/pull/560
5
20
  # inherit_gem:
6
21
  # standard: config/ruby-3.3.yml
22
+ # Rules are overridden in a LIFO stack.
23
+ # If rubocop-performance is loaded first, and standard-performance after it,
24
+ # then rubocop-performance's rules will take precedence.
25
+ # This is the opposite of what you might expect.
26
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
27
+ inherit_gem:
28
+ standard: config/base.yml
29
+ standard-performance: config/base.yml
30
+ standard-custom: config/base.yml
31
+ rubocop-performance: config/default.yml
@@ -3,8 +3,11 @@
3
3
  module Standard
4
4
  module Rubocop
5
5
  module Lts
6
+ # Version is introspectable via version_gem
6
7
  module Version
7
- VERSION = "1.0.3"
8
+ # Bump VERSION manually for each new release!
9
+ # See: CONTRIBUTING.md
10
+ VERSION = "1.0.5"
8
11
  end
9
12
  end
10
13
  end
@@ -5,11 +5,15 @@ require "version_gem"
5
5
 
6
6
  require_relative "lts/version"
7
7
 
8
+ # Namespace for this library
8
9
  module Standard
10
+ # Configure / override standard's rules for use with rubocop-lts
9
11
  module Rubocop
12
+ # Lts indicates support for Ruby style linting back to Ruby 1.8 & 1.9
13
+ # rubocop itself stops at Ruby 2.0
10
14
  module Lts
15
+ # So far, the Error class is unused.
11
16
  class Error < StandardError; end
12
- # Your code goes here...
13
17
  end
14
18
  end
15
19
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard-rubocop-lts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -36,7 +36,7 @@ cert_chain:
36
36
  gwGrEXGQGDZ0NIgBcmvMOqlXjkGQwQvugKycJ024z89+fz2332vdZIKTrSxJrXGk
37
37
  4/bR9A==
38
38
  -----END CERTIFICATE-----
39
- date: 2023-05-29 00:00:00.000000000 Z
39
+ date: 2023-06-03 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: version_gem
@@ -64,7 +64,7 @@ dependencies:
64
64
  requirements:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: 1.28.4
67
+ version: '1.29'
68
68
  - - "<"
69
69
  - !ruby/object:Gem::Version
70
70
  version: '2'
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - ">="
76
76
  - !ruby/object:Gem::Version
77
- version: 1.28.4
77
+ version: '1.29'
78
78
  - - "<"
79
79
  - !ruby/object:Gem::Version
80
80
  version: '2'
@@ -84,7 +84,7 @@ dependencies:
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: '1.0'
87
+ version: '1.1'
88
88
  - - "<"
89
89
  - !ruby/object:Gem::Version
90
90
  version: '2'
@@ -94,7 +94,7 @@ dependencies:
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '1.0'
97
+ version: '1.1'
98
98
  - - "<"
99
99
  - !ruby/object:Gem::Version
100
100
  version: '2'
@@ -118,6 +118,62 @@ dependencies:
118
118
  - - "<"
119
119
  - !ruby/object:Gem::Version
120
120
  version: '2'
121
+ - !ruby/object:Gem::Dependency
122
+ name: rspec
123
+ requirement: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - "~>"
126
+ - !ruby/object:Gem::Version
127
+ version: '3.10'
128
+ type: :development
129
+ prerelease: false
130
+ version_requirements: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - "~>"
133
+ - !ruby/object:Gem::Version
134
+ version: '3.10'
135
+ - !ruby/object:Gem::Dependency
136
+ name: rspec-block_is_expected
137
+ requirement: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: '1.0'
142
+ type: :development
143
+ prerelease: false
144
+ version_requirements: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - "~>"
147
+ - !ruby/object:Gem::Version
148
+ version: '1.0'
149
+ - !ruby/object:Gem::Dependency
150
+ name: rake
151
+ requirement: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - "~>"
154
+ - !ruby/object:Gem::Version
155
+ version: '13.0'
156
+ type: :development
157
+ prerelease: false
158
+ version_requirements: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - "~>"
161
+ - !ruby/object:Gem::Version
162
+ version: '13.0'
163
+ - !ruby/object:Gem::Dependency
164
+ name: pry
165
+ requirement: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
170
+ type: :development
171
+ prerelease: false
172
+ version_requirements: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
121
177
  - !ruby/object:Gem::Dependency
122
178
  name: rubocop-gradual
123
179
  requirement: !ruby/object:Gem::Requirement
@@ -189,33 +245,33 @@ dependencies:
189
245
  - !ruby/object:Gem::Version
190
246
  version: '2.22'
191
247
  - !ruby/object:Gem::Dependency
192
- name: rubocop-thread_safety
248
+ name: rubocop-shopify
193
249
  requirement: !ruby/object:Gem::Requirement
194
250
  requirements:
195
251
  - - "~>"
196
252
  - !ruby/object:Gem::Version
197
- version: '0.5'
253
+ version: '2.13'
198
254
  type: :development
199
255
  prerelease: false
200
256
  version_requirements: !ruby/object:Gem::Requirement
201
257
  requirements:
202
258
  - - "~>"
203
259
  - !ruby/object:Gem::Version
204
- version: '0.5'
260
+ version: '2.13'
205
261
  - !ruby/object:Gem::Dependency
206
- name: rspec-block_is_expected
262
+ name: rubocop-thread_safety
207
263
  requirement: !ruby/object:Gem::Requirement
208
264
  requirements:
209
265
  - - "~>"
210
266
  - !ruby/object:Gem::Version
211
- version: '1.0'
267
+ version: '0.5'
212
268
  type: :development
213
269
  prerelease: false
214
270
  version_requirements: !ruby/object:Gem::Requirement
215
271
  requirements:
216
272
  - - "~>"
217
273
  - !ruby/object:Gem::Version
218
- version: '1.0'
274
+ version: '0.5'
219
275
  description: Extended Standard Ruby Configs for Finely Aged Rubies; Compatible with
220
276
  rubocop-lts
221
277
  email:
@@ -253,10 +309,10 @@ licenses:
253
309
  - MIT
254
310
  metadata:
255
311
  homepage_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts
256
- source_code_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/tree/v1.0.3
257
- changelog_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/blob/v1.0.3/CHANGELOG.md
312
+ source_code_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/tree/v1.0.5
313
+ changelog_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/blob/v1.0.5/CHANGELOG.md
258
314
  bug_tracker_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/issues
259
- documentation_uri: https://www.rubydoc.info/gems/standard-rubocop-lts/1.0.3
315
+ documentation_uri: https://www.rubydoc.info/gems/standard-rubocop-lts/1.0.5
260
316
  wiki_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/wikis/home
261
317
  funding_uri: https://liberapay.com/pboling
262
318
  rubygems_mfa_required: 'true'
metadata.gz.sig CHANGED
Binary file