rubocop-lts 4.2.0 → 4.3.1

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.
data/RUBOCOP.md ADDED
@@ -0,0 +1,71 @@
1
+ # RuboCop Usage Guide
2
+
3
+ ## Overview
4
+
5
+ A tale of two RuboCop plugin gems.
6
+
7
+ ### RuboCop Gradual
8
+
9
+ This project uses `rubocop_gradual` instead of vanilla RuboCop for code style checking. The `rubocop_gradual` tool allows for gradual adoption of RuboCop rules by tracking violations in a lock file.
10
+
11
+ ### RuboCop LTS
12
+
13
+ This project uses `rubocop-lts` to ensure, on a best-effort basis, compatibility with Ruby >= 1.9.2.
14
+ RuboCop rules are meticulously configured by the `rubocop-lts` family of gems to ensure that a project is compatible with a specific version of Ruby. See: https://rubocop-lts.gitlab.io for more.
15
+
16
+ ## Checking RuboCop Violations
17
+
18
+ To check for RuboCop violations in this project, always use:
19
+
20
+ ```bash
21
+ bundle exec rake rubocop_gradual:check
22
+ ```
23
+
24
+ **Do not use** the standard RuboCop commands like:
25
+ - `bundle exec rubocop`
26
+ - `rubocop`
27
+
28
+ ## Understanding the Lock File
29
+
30
+ The `.rubocop_gradual.lock` file tracks all current RuboCop violations in the project. This allows the team to:
31
+
32
+ 1. Prevent new violations while gradually fixing existing ones
33
+ 2. Track progress on code style improvements
34
+ 3. Ensure CI builds don't fail due to pre-existing violations
35
+
36
+ ## Common Commands
37
+
38
+ - **Check violations**
39
+ - `bundle exec rake rubocop_gradual`
40
+ - `bundle exec rake rubocop_gradual:check`
41
+ - **(Safe) Autocorrect violations, and update lockfile if no new violations**
42
+ - `bundle exec rake rubocop_gradual:autocorrect`
43
+ - **Force update the lock file (w/o autocorrect) to match violations present in code**
44
+ - `bundle exec rake rubocop_gradual:force_update`
45
+
46
+ ## Workflow
47
+
48
+ 1. Before submitting a PR, run `bundle exec rake rubocop_gradual:autocorrect`
49
+ a. or just the default `bundle exec rake`, as autocorrection is a pre-requisite of the default task.
50
+ 2. If there are new violations, either:
51
+ - Fix them in your code
52
+ - Run `bundle exec rake rubocop_gradual:force_update` to update the lock file (only for violations you can't fix immediately)
53
+ 3. Commit the updated `.rubocop_gradual.lock` file along with your changes
54
+
55
+ ## Never add inline RuboCop disables
56
+
57
+ Do not add inline `rubocop:disable` / `rubocop:enable` comments anywhere in the codebase (including specs, except when following the few existing `rubocop:disable` patterns for a rule already being disabled elsewhere in the code). We handle exceptions in two supported ways:
58
+
59
+ - Permanent/structural exceptions: prefer adjusting the RuboCop configuration (e.g., in `.rubocop.yml`) to exclude a rule for a path or file pattern when it makes sense project-wide.
60
+ - Temporary exceptions while improving code: record the current violations in `.rubocop_gradual.lock` via the gradual workflow:
61
+ - `bundle exec rake rubocop_gradual:autocorrect` (preferred; will autocorrect what it can and update the lock only if no new violations were introduced)
62
+ - If needed, `bundle exec rake rubocop_gradual:force_update` (as a last resort when you cannot fix the newly reported violations immediately)
63
+
64
+ In general, treat the rules as guidance to follow; fix violations rather than ignore them. For example, RSpec conventions in this project expect `described_class` to be used in specs that target a specific class under test.
65
+
66
+ ## Benefits of rubocop_gradual
67
+
68
+ - Allows incremental adoption of code style rules
69
+ - Prevents CI failures due to pre-existing violations
70
+ - Provides a clear record of code style debt
71
+ - Enables focused efforts on improving code quality over time
data/SECURITY.md CHANGED
@@ -2,40 +2,20 @@
2
2
 
3
3
  ## Supported Versions
4
4
 
5
- Major even versions are supported.
5
+ | Version | Supported |
6
+ |----------|-----------|
7
+ | 4.3.latest | ✅ |
6
8
 
7
- Major odd versions are not supported, and no further odd major releases are planned.
9
+ ## Security contact information
8
10
 
9
- | Version | Supported |
10
- |-----------|-----------|
11
- | 0.latest | ✅ |
12
- | 1.latest | ❌ |
13
- | 2.latest | ✅ |
14
- | 3.latest | ❌ |
15
- | 4.latest | ✅ |
16
- | 5.latest | ❌ |
17
- | 6.latest | ✅ |
18
- | 7.latest | ❌ |
19
- | 8.latest | ✅ |
20
- | 9.latest | ❌ |
21
- | 10.latest | ✅ |
22
- | 11.latest | ❌ |
23
- | 12.latest | ✅ |
24
- | 13.latest | ❌ |
25
- | 14.latest | ✅ |
26
- | 15.latest | ❌ |
27
- | 16.latest | ✅ |
28
- | 17.latest | ❌ |
29
- | 18.latest | ✅ |
30
- | 19.latest | ❌ |
31
- | 20.latest | ✅ |
32
- | 21.latest | ❌ |
33
- | 22.latest | ✅ |
34
- | 23.latest | ❌ |
35
- | 24.latest | ✅ |
11
+ To report a security vulnerability, please use the
12
+ [Tidelift security contact](https://tidelift.com/security).
13
+ Tidelift will coordinate the fix and disclosure.
36
14
 
37
- ## Reporting a Vulnerability
15
+ ## Additional Support
38
16
 
39
- Peter Boling is the primary maintainer of this gem. Please find a way
40
- to [contact him directly](https://railsbling.com/contact) to report the issue. Include as much relevant information as
41
- possible.
17
+ If you are interested in support for versions older than the latest release,
18
+ please consider sponsoring the project / maintainer @ https://liberapay.com/pboling/donate,
19
+ or find other sponsorship links in the [README].
20
+
21
+ [README]: README.md
data/certs/pboling.pem ADDED
@@ -0,0 +1,27 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
3
+ ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
4
+ A2NvbTAeFw0yNTA1MDQxNTMzMDlaFw00NTA0MjkxNTMzMDlaMEMxFTATBgNVBAMM
5
+ DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
6
+ LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAruUoo0WA
7
+ uoNuq6puKWYeRYiZekz/nsDeK5x/0IEirzcCEvaHr3Bmz7rjo1I6On3gGKmiZs61
8
+ LRmQ3oxy77ydmkGTXBjruJB+pQEn7UfLSgQ0xa1/X3kdBZt6RmabFlBxnHkoaGY5
9
+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wsjVoOJTrYcff8pBZ8r2MvtAc54xfnnhGFzeRHfcltobgFxkAXdE6p
25
+ DVjBtqT23eugOqQ73umLcYDZkc36vnqGxUBSsXrzY9pzV5gGr2I8YUxMqf6ATrZt
26
+ L9nRqA==
27
+ -----END CERTIFICATE-----
data/config/rails.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  inherit_from: ./base.yml
2
2
 
3
3
  inherit_gem:
4
- rubocop-ruby2_0: rubocop-lts/rails.yml
4
+ rubocop-ruby1_8: rubocop-lts/rails.yml
@@ -2,4 +2,4 @@
2
2
  inherit_from: ./base.yml
3
3
 
4
4
  inherit_gem:
5
- rubocop-ruby2_0: rubocop-lts/rails_rspec.yml
5
+ rubocop-ruby1_8: rubocop-lts/rails_rspec.yml
data/config/rspec.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  inherit_from: ./base.yml
2
2
 
3
3
  inherit_gem:
4
- rubocop-ruby2_0: rubocop-lts/rspec.yml
4
+ rubocop-ruby1_8: rubocop-lts/rspec.yml
data/config/ruby.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  inherit_from: ./base.yml
2
2
 
3
3
  inherit_gem:
4
- rubocop-ruby2_0: rubocop-lts/ruby.yml
4
+ rubocop-ruby1_8: rubocop-lts/ruby.yml
@@ -2,4 +2,4 @@
2
2
  inherit_from: ./base.yml
3
3
 
4
4
  inherit_gem:
5
- rubocop-ruby2_0: rubocop-lts/ruby_rspec.yml
5
+ rubocop-ruby1_8: rubocop-lts/ruby_rspec.yml
data/config/rubygem.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  inherit_from: ./base.yml
2
2
 
3
3
  inherit_gem:
4
- rubocop-ruby2_0: rubocop-lts/rubygem.yml
4
+ rubocop-ruby1_8: rubocop-lts/rubygem.yml
@@ -2,4 +2,4 @@
2
2
  inherit_from: ./base.yml
3
3
 
4
4
  inherit_gem:
5
- rubocop-ruby2_0: rubocop-lts/rubygem_rspec.yml
5
+ rubocop-ruby1_8: rubocop-lts/rubygem_rspec.yml
@@ -3,7 +3,8 @@
3
3
  module Rubocop
4
4
  module Lts
5
5
  module Version
6
- VERSION = "4.2.0"
6
+ VERSION = "4.3.1"
7
7
  end
8
+ VERSION = Version::VERSION # Traditional Constant Location
8
9
  end
9
10
  end
data/lib/rubocop/lts.rb CHANGED
@@ -1,8 +1,9 @@
1
+ # encoding: utf-8
1
2
  # frozen_string_literal: true
2
3
 
3
4
  # external libs
4
5
  require "version_gem"
5
- require "rubocop/ruby2_0"
6
+ require "rubocop/ruby1_8"
6
7
 
7
8
  require_relative "lts/version"
8
9
 
@@ -11,7 +12,7 @@ module Rubocop
11
12
  class Error < StandardError; end
12
13
 
13
14
  module_function def install_tasks
14
- Rubocop::Ruby20.install_tasks
15
+ Rubocop::Ruby18.install_tasks
15
16
  end
16
17
  end
17
18
  end
@@ -0,0 +1,8 @@
1
+ module Rubocop
2
+ module Lts
3
+ module Version
4
+ VERSION: String
5
+ end
6
+ VERSION: String
7
+ end
8
+ end
data/sig/rubocop/lts.rbs CHANGED
@@ -1,7 +1,6 @@
1
1
  module Rubocop
2
2
  module Lts
3
3
  module Version
4
- VERSION: String
5
4
  # See the writing guide of rbs: https://github.com/ruby/rbs#guides
6
5
  end
7
6
  end
data.tar.gz.sig CHANGED
Binary file