standard-rubocop-lts 1.0.4 → 1.0.6

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: 2b834cd74e025029f69f4c2b53d76c21f0f8936cdc9b6a495e6a7388217bf4c6
4
- data.tar.gz: dfd0b2b0256bc6a225efb647a416b6cd0d2b991ec9275123e36bb42abc792c31
3
+ metadata.gz: 90d1f7cf1346192558e6810e5f4194a1f5c18114aa7f75059632875d2aecb792
4
+ data.tar.gz: 3f3b67c73f54664f70d7a30522237026435f9485e7ee7046645d29500d010697
5
5
  SHA512:
6
- metadata.gz: e71e6ccba80923481e536338fb6c812869ec5e82bac23a3f3975ab9b1a00882dbf8972db19855e61eb0b786faf16e786dd835e73a976f4172a35929c559cf916
7
- data.tar.gz: c6c94e6665fb558ba47adb5eb41bfd0d0c5d0cae6c8b7da2e6c5042cf4d2a8a00dbab9d7d50c184ed91416a88f87f6d7c0a1a30ae83c70628b72fb7063803d0e
6
+ metadata.gz: 7e15618e715e3a3ea41c67f243cbc7281f3e16071e0ff5f6468959e1ab301046a09832fa296c84473b188d0bdc2d881e5b6c2109862740dd6b39d5c43f9472d2
7
+ data.tar.gz: 59529f89fa87bf9fbeac216c835b1efb9d224bae9eb26ad2797441d815f398fca956dabbb82ff9717946f27d923fc75603103a87dc27363ed62bca929d551600
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -10,6 +10,14 @@ 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.6] 2023-06-03
14
+ ### Fixed
15
+ - ship internal configs with gem
16
+
17
+ ## [1.0.5] 2023-06-03
18
+ ### Fixed
19
+ - require deps for configs 1.9 - 3.3
20
+
13
21
  ## [1.0.4] 2023-06-03
14
22
  ### Fixed
15
23
  - rubocop-shopify > standard gem family of rules
@@ -56,6 +64,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
56
64
  ### Added
57
65
  - Initial release
58
66
 
59
- [Unreleased]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.0...HEAD
67
+ [Unreleased]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.5...HEAD
68
+ [1.0.5]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.4...v1.0.5
69
+ [1.0.4]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.3...v1.0.4
70
+ [1.0.3]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.2...v1.0.3
71
+ [1.0.2]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.1...v1.0.2
60
72
  [1.0.1]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/v1.0.0...v1.0.1
61
73
  [1.0.0]: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/compare/0c0f82c0eeda184afb5c2c7a3d6b43c10f2d4c1c...v1.0.0
data/README.md CHANGED
@@ -161,29 +161,32 @@ 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.
179
182
  # Rules are overridden in a LIFO stack.
180
183
  # If rubocop-performance is loaded first, and standard-performance after it,
181
184
  # then rubocop-performance's rules will take precedence.
182
185
  # This is the opposite of what you might expect.
183
- # Below: standard's rule disablement overrides rubocop-performance's config/default.yml
186
+ # Below: standard's rules override rubocop-performance's (mostly disabling rules)
184
187
  inherit_gem:
185
- standard: config/base.yml
186
- standard-performance: config/base.yml
188
+ standard: config/ruby-1.8.yml
189
+ standard-performance: config/ruby-1.8.yml
187
190
  standard-custom: config/base.yml
188
191
  rubocop-performance: config/default.yml
189
192
 
@@ -0,0 +1,21 @@
1
+ # See:
2
+ # https://github.com/rubocop/rubocop-performance/issues/240
3
+ # https://github.com/rubocop/rubocop-performance/pull/241
4
+ Performance/Casecmp:
5
+ Enabled: false
6
+
7
+ # See: https://github.com/rubocop/rubocop-performance/issues/329#issuecomment-1375527811
8
+ Performance/BlockGivenWithExplicitBlock:
9
+ Enabled: false
10
+
11
+ # See: https://github.com/rubocop/rubocop-performance/issues/329#issuecomment-1451511402
12
+ Performance/ArraySemiInfiniteRangeSlice:
13
+ Enabled: false
14
+
15
+ # See: https://github.com/rubocop/rubocop-performance/issues/329#issuecomment-1451511402
16
+ Performance/BigDecimalWithNumericArgument:
17
+ Enabled: false
18
+
19
+ # See: https://github.com/rubocop/rubocop-performance/issues/329#issuecomment-1451511402
20
+ Performance/IoReadlines:
21
+ Enabled: false
@@ -0,0 +1,22 @@
1
+ inherit_from: ./ruby-1.9.yml
2
+
3
+ # NOTE: The lowest TargetRubyVersion that can be declared is 2.0
4
+ # AllCops:
5
+ # TargetRubyVersion: 1.8
6
+
7
+ ##############################################################################
8
+ # Additional rules that allow preservation of ruby 1.8.7 / ree compatibility #
9
+ # These are not in standard, and are the primary reason this gem exists. #
10
+ ##############################################################################
11
+
12
+ # Ruby 1.8.7 needs the . on chain of method calls at the end of a line
13
+ # This cop is disabled for Ruby 1.8 in Standard, which is doesn't help
14
+ # RuboCop/Standard users ensure their codebase remains compatible with Ruby 1.8
15
+ # As such we override here!
16
+ # See: https://github.com/standardrb/standard/issues/561
17
+ Layout/DotPosition:
18
+ EnforcedStyle: trailing
19
+
20
+ # Disabled in standard's base.yml. Keeping here in case it is removed from base.
21
+ Style/Documentation:
22
+ Enabled: false
@@ -0,0 +1,38 @@
1
+ inherit_from: ./ruby-2.0.yml
2
+
3
+ # NOTE: The lowest TargetRubyVersion that can be declared is 2.0
4
+ # AllCops:
5
+ # TargetRubyVersion: 1.9
6
+
7
+ # Standard's rules in base.yml do not work with Ruby < 2.0, so overriding.
8
+ # See: https://github.com/standardrb/standard/pull/563
9
+ # Percent delimiters are not supported until Ruby 2.0
10
+ Style/PercentLiteralDelimiters:
11
+ Enabled: false
12
+
13
+ Style/SymbolArray:
14
+ EnforcedStyle: brackets
15
+
16
+ Style/WordArray:
17
+ EnforcedStyle: brackets
18
+
19
+ ##############################################################################
20
+ # Additional rules that allow preservation of ruby 1.8.7 / ree compatibility #
21
+ # These are not in standard, and are a secondary reason this gem exists. #
22
+ ##############################################################################
23
+
24
+ # Disabled in standard's base.yml, which allows magic encoding comments to live on.
25
+ # Reproducing here, in case Standard Ruby drops the config.
26
+ #
27
+ Style/Encoding:
28
+ Enabled: false
29
+ # The encoding comments can be removed once a project drops Ruby 1.9 support.
30
+ # Whole file UTF-8 Encoding is default in Ruby 2+, so the Encoding comment is usually not needed there.
31
+ # See:
32
+ # * https://www.rubydoc.info/gems/rubocop/0.49.0/RuboCop/Cop/Style/Encoding
33
+ # * https://rubydoc.info/gems/rubocop/RuboCop/Cop/Style/Encoding
34
+ # Unfortunately in latest RuboCop there is only a "never" style enforced (i.e. encodings are always bad).
35
+ # TODO: Consider bringing back this rule as a new Cop (extracted from old RuboCop)
36
+ #Style/Encoding:
37
+ # Enabled: true
38
+ # EnforcedStyle: always
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-2.1.yml
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-2.2.yml
@@ -0,0 +1,6 @@
1
+ inherit_from: ./ruby-2.3.yml
2
+
3
+ # Disabled in standard's base.yml. Keeping here in case removed from base.
4
+ # As of Ruby 3, string literals are frozen in all files.
5
+ Style/FrozenStringLiteralComment:
6
+ Enabled: false
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-2.4.yml
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-2.5.yml
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-2.6.yml
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-2.7.yml
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-3.0.yml
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-3.1.yml
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-3.2.yml
@@ -0,0 +1 @@
1
+ inherit_from: ./ruby-3.3.yml
@@ -0,0 +1 @@
1
+ inherit_from: ./base.yml
data/config/ruby-1.8.yml CHANGED
@@ -1,7 +1,3 @@
1
- inherit_from:
2
- - ./base.yml
3
- - ./internal/ruby-1.8.yml
4
-
5
1
  # We want Exclude and Include directives from different
6
2
  # config files to get merged, not overwritten
7
3
  inherit_mode:
@@ -9,6 +5,10 @@ inherit_mode:
9
5
  - Exclude
10
6
  - Include
11
7
 
8
+ inherit_from:
9
+ - ./base.yml
10
+ - ./internal/ruby-1.8.yml
11
+
12
12
  require:
13
13
  - standard
14
14
  - standard-performance
data/config/ruby-1.9.yml CHANGED
@@ -1,7 +1,20 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
10
  - ./internal/ruby-1.9.yml
4
11
 
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
5
18
  # Load basic rules for this version of Ruby from standard.
6
19
  # Rules are overridden in a LIFO stack.
7
20
  # If rubocop-performance is loaded first, and standard-performance after it,
data/config/ruby-2.0.yml CHANGED
@@ -1,7 +1,20 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
10
  - ./internal/ruby-2.0.yml
4
11
 
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
5
18
  # Load basic rules for this version of Ruby from standard.
6
19
  # Rules are overridden in a LIFO stack.
7
20
  # If rubocop-performance is loaded first, and standard-performance after it,
data/config/ruby-2.1.yml CHANGED
@@ -1,7 +1,20 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
10
  - ./internal/ruby-2.1.yml
4
11
 
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
5
18
  # Load basic rules for this version of Ruby from standard.
6
19
  # Rules are overridden in a LIFO stack.
7
20
  # If rubocop-performance is loaded first, and standard-performance after it,
data/config/ruby-2.2.yml CHANGED
@@ -1,7 +1,20 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
10
  - ./internal/ruby-2.2.yml
4
11
 
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
5
18
  # Load basic rules for this version of Ruby from standard.
6
19
  # Rules are overridden in a LIFO stack.
7
20
  # If rubocop-performance is loaded first, and standard-performance after it,
data/config/ruby-2.3.yml CHANGED
@@ -1,7 +1,20 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
10
  - ./internal/ruby-2.3.yml
4
11
 
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
5
18
  # Load basic rules for this version of Ruby from standard.
6
19
  # Rules are overridden in a LIFO stack.
7
20
  # If rubocop-performance is loaded first, and standard-performance after it,
data/config/ruby-2.4.yml CHANGED
@@ -1,6 +1,19 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
- - ./internal/ruby-2.5.yml
10
+ - ./internal/ruby-2.4.yml
11
+
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
4
17
 
5
18
  # Load basic rules for this version of Ruby from standard.
6
19
  # Rules are overridden in a LIFO stack.
data/config/ruby-2.5.yml CHANGED
@@ -1,7 +1,20 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
10
  - ./internal/ruby-2.5.yml
4
11
 
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
5
18
  # Load basic rules for this version of Ruby from standard.
6
19
  # Rules are overridden in a LIFO stack.
7
20
  # If rubocop-performance is loaded first, and standard-performance after it,
data/config/ruby-2.6.yml CHANGED
@@ -1,7 +1,20 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
10
  - ./internal/ruby-2.6.yml
4
11
 
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
5
18
  # Load basic rules for this version of Ruby from standard.
6
19
  # Rules are overridden in a LIFO stack.
7
20
  # If rubocop-performance is loaded first, and standard-performance after it,
data/config/ruby-2.7.yml CHANGED
@@ -1,7 +1,20 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
10
  - ./internal/ruby-2.7.yml
4
11
 
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
5
18
  # Load basic rules for this version of Ruby from standard.
6
19
  # Rules are overridden in a LIFO stack.
7
20
  # If rubocop-performance is loaded first, and standard-performance after it,
data/config/ruby-3.0.yml CHANGED
@@ -1,7 +1,20 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
10
  - ./internal/ruby-3.0.yml
4
11
 
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
5
18
  # Load basic rules for this version of Ruby from standard.
6
19
  # Rules are overridden in a LIFO stack.
7
20
  # If rubocop-performance is loaded first, and standard-performance after it,
data/config/ruby-3.1.yml CHANGED
@@ -1,7 +1,20 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
10
  - ./internal/ruby-3.1.yml
4
11
 
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
5
18
  # Load basic rules for this version of Ruby from standard.
6
19
  # Rules are overridden in a LIFO stack.
7
20
  # If rubocop-performance is loaded first, and standard-performance after it,
data/config/ruby-3.2.yml CHANGED
@@ -1,7 +1,20 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
10
  - ./internal/ruby-3.2.yml
4
11
 
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
5
18
  # Load basic rules for this version of Ruby from standard.
6
19
  # Rules are overridden in a LIFO stack.
7
20
  # If rubocop-performance is loaded first, and standard-performance after it,
data/config/ruby-3.3.yml CHANGED
@@ -1,7 +1,20 @@
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
+
1
8
  inherit_from:
2
9
  - ./base.yml
3
10
  - ./internal/ruby-3.3.yml
4
11
 
12
+ require:
13
+ - standard
14
+ - standard-performance
15
+ - standard-custom
16
+ - rubocop-performance
17
+
5
18
  # TODO: Load basic rules for this version of Ruby from standard, once Standard includes it!
6
19
  # See: https://github.com/standardrb/standard/pull/560
7
20
  # inherit_gem:
@@ -7,7 +7,7 @@ module Standard
7
7
  module Version
8
8
  # Bump VERSION manually for each new release!
9
9
  # See: CONTRIBUTING.md
10
- VERSION = "1.0.4"
10
+ VERSION = "1.0.6"
11
11
  end
12
12
  end
13
13
  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.4
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -287,6 +287,21 @@ files:
287
287
  - README.md
288
288
  - SECURITY.md
289
289
  - config/base.yml
290
+ - config/internal/base.yml
291
+ - config/internal/ruby-1.8.yml
292
+ - config/internal/ruby-1.9.yml
293
+ - config/internal/ruby-2.0.yml
294
+ - config/internal/ruby-2.1.yml
295
+ - config/internal/ruby-2.2.yml
296
+ - config/internal/ruby-2.3.yml
297
+ - config/internal/ruby-2.4.yml
298
+ - config/internal/ruby-2.5.yml
299
+ - config/internal/ruby-2.6.yml
300
+ - config/internal/ruby-2.7.yml
301
+ - config/internal/ruby-3.0.yml
302
+ - config/internal/ruby-3.1.yml
303
+ - config/internal/ruby-3.2.yml
304
+ - config/internal/ruby-3.3.yml
290
305
  - config/ruby-1.8.yml
291
306
  - config/ruby-1.9.yml
292
307
  - config/ruby-2.0.yml
@@ -309,10 +324,10 @@ licenses:
309
324
  - MIT
310
325
  metadata:
311
326
  homepage_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts
312
- source_code_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/tree/v1.0.4
313
- changelog_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/blob/v1.0.4/CHANGELOG.md
327
+ source_code_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/tree/v1.0.6
328
+ changelog_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/blob/v1.0.6/CHANGELOG.md
314
329
  bug_tracker_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/issues
315
- documentation_uri: https://www.rubydoc.info/gems/standard-rubocop-lts/1.0.4
330
+ documentation_uri: https://www.rubydoc.info/gems/standard-rubocop-lts/1.0.6
316
331
  wiki_uri: https://gitlab.com/rubocop-lts/standard-rubocop-lts/-/wikis/home
317
332
  funding_uri: https://liberapay.com/pboling
318
333
  rubygems_mfa_required: 'true'
metadata.gz.sig CHANGED
Binary file