scope_hunter 0.1.1 → 0.1.2
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 +22 -0
- data/lib/scope_hunter/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 152b7ad3fe4ef80bd06512c3bf89c9251b062036b61d8594e30f3ed0c447e005
|
|
4
|
+
data.tar.gz: 469869fccbb1952f7ab62fe42f128d2cdcc9f824a400360f8bebec36b3ed8368
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ebc695af9654fd651e2e6ce8357af162225fd335e969a09b77f77759d6b705f19b1d59ebe7e5565e41dd50fdb5bbf11526a8907ed43aa162818cb6c8217114ca
|
|
7
|
+
data.tar.gz: a3ff44df8bb996cb3aa82ff4283e0fa2935b922463ed8315e700c40c6c611b78050969ead365a46c30b59f182f4117826635f452f10c597cb66ba9637a9dc629
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "lint_roller"
|
|
4
|
+
|
|
5
|
+
module ScopeHunter
|
|
6
|
+
class Plugin < LintRoller::Plugin
|
|
7
|
+
def name = "scope_hunter"
|
|
8
|
+
def version = ::ScopeHunter::VERSION
|
|
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
|
+
)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
data/lib/scope_hunter/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ajith kumar
|
|
@@ -89,6 +89,7 @@ files:
|
|
|
89
89
|
- lib/scope_hunter.rb
|
|
90
90
|
- lib/scope_hunter/ast_utils.rb
|
|
91
91
|
- lib/scope_hunter/canonicalizer.rb
|
|
92
|
+
- lib/scope_hunter/plugin.rb
|
|
92
93
|
- lib/scope_hunter/scope_index.rb
|
|
93
94
|
- lib/scope_hunter/version.rb
|
|
94
95
|
- sig/scope_hunter.rbs
|