rubocop-katalyst 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/rubocop/katalyst/inject.rb +1 -3
- data/lib/rubocop/katalyst.rb +10 -1
- metadata +2 -4
- data/lib/rubocop/cop/katalyst_cops.rb +0 -7
- data/lib/rubocop-katalyst.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15379c61db94f6b0bcb7fa10b5274455e9c781a10272586204f272c4a57cb9c8
|
4
|
+
data.tar.gz: 4d7fab26e2eb6e790903fbddaa597f2facf110fc87da09dd5d0af00096635572
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 623ee0ea36c9fb1afe780d9ad3fd57bea902ba036ba29fd91a1ee0df22a110c4e7de20f620a58ddb876c88efc68086868db9e5c1138e8f83bad0d0e3840f0137
|
7
|
+
data.tar.gz: 20e7d433e184db8e119a0b214f2c688db518cc5bb2baa9a13014c6be4829479d3a46ca498dff323abd2e2b2937a6fa7bf425b416269d672f1da1b0718e2b14dc
|
data/README.md
CHANGED
@@ -8,9 +8,7 @@ module RuboCop
|
|
8
8
|
# bit of our configuration.
|
9
9
|
module Inject
|
10
10
|
def self.defaults!
|
11
|
-
|
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?
|
data/lib/rubocop/katalyst.rb
CHANGED
@@ -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.
|
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-
|
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
|
data/lib/rubocop-katalyst.rb
DELETED
@@ -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"
|