scope_hunter 0.1.2 → 0.1.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 +4 -4
- data/lib/scope_hunter/plugin.rb +4 -16
- data/lib/scope_hunter/version.rb +1 -1
- data/lib/scope_hunter.rb +2 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3dc71fdbbdac0fc521593f6ae2c3f3006fa9d6cab28432653c1f982bbd476541
|
|
4
|
+
data.tar.gz: b33a72d49edee3625dbb3d9955c8e6b7482ac4484df2ad41afe31f19524e9ada
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5de33a94ba2d2a9c23d4824a4e2434e7ee2a88c46501384dae555009058bf9a1184dca6c4647c5b9249c1d5fbc225d1cf23a85ea23c78ec4742c15ef595ffdf9
|
|
7
|
+
data.tar.gz: 84351ee02da5511979933a75af93a63f8631b8343002e9dfdc9b3d311d8afb2ecc31bcf69bb840039044604dcbeb4f7632dc19add22a9a2cc8ddeb1f1aea9bbb
|
data/lib/scope_hunter/plugin.rb
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "lint_roller"
|
|
4
|
-
|
|
5
3
|
module ScopeHunter
|
|
6
|
-
class
|
|
7
|
-
|
|
8
|
-
def
|
|
9
|
-
|
|
10
|
-
# Tell Standard/RuboCop how to load our cops + config
|
|
11
|
-
def rules
|
|
12
|
-
LintRoller::Rules.new(
|
|
13
|
-
rubocop: {
|
|
14
|
-
# require our gem so the injector runs and cops are available
|
|
15
|
-
require: ["scope_hunter"],
|
|
16
|
-
# point to the default config that enables the cop
|
|
17
|
-
config: File.expand_path("../../config/default.yml", __FILE__)
|
|
18
|
-
}
|
|
19
|
-
)
|
|
4
|
+
# RuboCop plugin class for gem integration
|
|
5
|
+
class Plugin < RuboCop::Plugin
|
|
6
|
+
def self.plugin_name
|
|
7
|
+
"scope_hunter"
|
|
20
8
|
end
|
|
21
9
|
end
|
|
22
10
|
end
|
data/lib/scope_hunter/version.rb
CHANGED
data/lib/scope_hunter.rb
CHANGED
|
@@ -5,11 +5,12 @@ require "scope_hunter/version" if File.exist?(File.join(__dir__, "scope_hunter/v
|
|
|
5
5
|
require "scope_hunter/ast_utils"
|
|
6
6
|
require "scope_hunter/canonicalizer"
|
|
7
7
|
require "scope_hunter/scope_index"
|
|
8
|
-
require "scope_hunter/plugin"
|
|
9
8
|
|
|
10
9
|
# When rubocop loads, inject our default config
|
|
11
10
|
begin
|
|
12
11
|
require "rubocop"
|
|
12
|
+
# Load the cop BEFORE inject to ensure it's registered
|
|
13
|
+
require "rubocop/cop/scope_hunter/use_existing_scope"
|
|
13
14
|
require "rubocop/scope_hunter/inject"
|
|
14
15
|
rescue LoadError
|
|
15
16
|
# rubocop not present (e.g., runtime only) — that's fine
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scope_hunter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ajith kumar
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -93,15 +93,15 @@ files:
|
|
|
93
93
|
- lib/scope_hunter/scope_index.rb
|
|
94
94
|
- lib/scope_hunter/version.rb
|
|
95
95
|
- sig/scope_hunter.rbs
|
|
96
|
-
homepage: https://github.com/
|
|
96
|
+
homepage: https://github.com/Ajithxolo/scope_hunter
|
|
97
97
|
licenses:
|
|
98
98
|
- MIT
|
|
99
99
|
metadata:
|
|
100
100
|
allowed_push_host: https://rubygems.org
|
|
101
|
-
homepage_uri: https://github.com/
|
|
102
|
-
source_code_uri: https://github.com/
|
|
103
|
-
changelog_uri: https://github.com/
|
|
104
|
-
|
|
101
|
+
homepage_uri: https://github.com/Ajithxolo/scope_hunter
|
|
102
|
+
source_code_uri: https://github.com/Ajithxolo/scope_hunter
|
|
103
|
+
changelog_uri: https://github.com/Ajithxolo/scope_hunter/blob/main/CHANGELOG.md
|
|
104
|
+
rubocop_plugin: ScopeHunter::Plugin
|
|
105
105
|
post_install_message:
|
|
106
106
|
rdoc_options: []
|
|
107
107
|
require_paths:
|