rubocop-katalyst 2.0.2 → 2.0.3

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: 36ba8278b8c5a7f5029936127ede1df6d2ce0bba060a147fff84d0065f456d20
4
- data.tar.gz: ab76377879e0638dfd66d99b8255764b8aa63a974e512bcbe9c35915ea8ae054
3
+ metadata.gz: 15379c61db94f6b0bcb7fa10b5274455e9c781a10272586204f272c4a57cb9c8
4
+ data.tar.gz: 4d7fab26e2eb6e790903fbddaa597f2facf110fc87da09dd5d0af00096635572
5
5
  SHA512:
6
- metadata.gz: 36c78b67171c2d243d96703548f99c2a377b08f71a8414745f842217eb05d36fb513d35990b8214734fafdf6118bfc5a9c92e2e9165b4e643447e50b52776489
7
- data.tar.gz: 58ede43e22f71d6e0c97fe769e60b577b0c56b76707d717c8e7679c3ec9d0f78382fc2877230f62ae8593cca19f998102199e6cde54e97b4a7db892c9b7eb022
6
+ metadata.gz: 623ee0ea36c9fb1afe780d9ad3fd57bea902ba036ba29fd91a1ee0df22a110c4e7de20f620a58ddb876c88efc68086868db9e5c1138e8f83bad0d0e3840f0137
7
+ data.tar.gz: 20e7d433e184db8e119a0b214f2c688db518cc5bb2baa9a13014c6be4829479d3a46ca498dff323abd2e2b2937a6fa7bf425b416269d672f1da1b0718e2b14dc
data/README.md CHANGED
@@ -28,6 +28,10 @@ Add the following to your `.rubocop.yml` file:
28
28
  ```yml
29
29
  require:
30
30
  - rubocop-katalyst
31
+
32
+ inherit_mode:
33
+ merge:
34
+ - Exclude
31
35
  ```
32
36
 
33
37
  You can integrate this gem with Rake by adding the following to your `Rakefile`:
@@ -8,9 +8,7 @@ module RuboCop
8
8
  # bit of our configuration.
9
9
  module Inject
10
10
  def self.defaults!
11
- project_root = Pathname.new(__dir__).parent.parent.parent.expand_path
12
- config_default = project_root.join("config", "default.yml")
13
- path = config_default.to_s
11
+ path = CONFIG_DEFAULT.to_s
14
12
  hash = ConfigLoader.send(:load_file, File.new(path))
15
13
  config = RuboCop::Config.new(hash, path)
16
14
  puts "configuration from #{path}" if ConfigLoader.debug?
@@ -1,9 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rubocop"
4
+ require "rubocop-performance"
5
+ require "rubocop-rails"
6
+ require "rubocop-rake"
7
+ require "rubocop-rspec"
8
+
9
+ require_relative "katalyst/inject"
10
+
3
11
  module RuboCop
4
12
  module Katalyst
5
13
  class Error < StandardError; end
6
- # Your code goes here...
7
14
  PROJECT_ROOT = Pathname.new(__dir__).parent.parent.expand_path.freeze
8
15
  CONFIG_DEFAULT = PROJECT_ROOT.join("config", "default.yml").freeze
9
16
  CONFIG = YAML.safe_load(CONFIG_DEFAULT.read).freeze
@@ -11,3 +18,5 @@ module RuboCop
11
18
  private_constant(:CONFIG_DEFAULT, :PROJECT_ROOT)
12
19
  end
13
20
  end
21
+
22
+ RuboCop::Katalyst::Inject.defaults!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-katalyst
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-05 00:00:00.000000000 Z
11
+ date: 2024-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -146,8 +146,6 @@ files:
146
146
  - config/rubocop-rspec.yml
147
147
  - config/rubocop-security.yml
148
148
  - config/rubocop-style.yml
149
- - lib/rubocop-katalyst.rb
150
- - lib/rubocop/cop/katalyst_cops.rb
151
149
  - lib/rubocop/katalyst.rb
152
150
  - lib/rubocop/katalyst/erb_lint_task.rb
153
151
  - lib/rubocop/katalyst/inject.rb
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RuboCop
4
- module Cop
5
- module Katalyst; end
6
- end
7
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "rubocop"
4
- require "rubocop-performance"
5
- require "rubocop-rails"
6
- require "rubocop-rake"
7
- require "rubocop-rspec"
8
-
9
- require_relative "rubocop/katalyst"
10
- require_relative "rubocop/katalyst/inject"
11
-
12
- RuboCop::Katalyst::Inject.defaults!
13
-
14
- require_relative "rubocop/cop/katalyst_cops"