rubocop-activeadmin 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cc78e993b3f9932a04f0128e6426c3973e36807ef934913ccc11a5a3b13f73af
4
+ data.tar.gz: b8cad4f7f5788bffe95a5f530829e623585a7561c79f3178ff43927865080f94
5
+ SHA512:
6
+ metadata.gz: 7414e2beba54e7f8ca378daee2b216ada710bfc4667673d2a597904e094eafcace63eb28cc13ce8604257a05abaa3b8c23b63b19803cec6810397b0fcc39e8a6
7
+ data.tar.gz: 666e975ec9518ac35b406258b4ff292ae26b3247ed172f3be22cb56163ae5f2b3dd49a1047ed9a5c04d7a2c41ed5a928ecbd49373ec8a3ca124717fa2d924202
data/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # RuboCop::Activeadmin
2
+
3
+ An empty RuboCop plugin for future ActiveAdmin-specific cops.
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ ```bash
10
+ bundle add rubocop-activeadmin --require=false
11
+ ```
12
+
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
14
+
15
+ ```bash
16
+ gem install rubocop-activeadmin
17
+ ```
18
+
19
+ Add the plugin to `.rubocop.yml`:
20
+
21
+ ```yaml
22
+ plugins:
23
+ - rubocop-activeadmin
24
+ ```
25
+
26
+ ## Development
27
+
28
+ Run `bundle install`, then `bundle exec rake`.
@@ -0,0 +1 @@
1
+ --- {}
@@ -0,0 +1,28 @@
1
+ require 'lint_roller'
2
+
3
+ module RuboCop
4
+ module Activeadmin
5
+ class Plugin < LintRoller::Plugin
6
+ def about
7
+ LintRoller::About.new(
8
+ name: 'rubocop-activeadmin',
9
+ version: VERSION,
10
+ homepage: 'https://rubygems.org/gems/rubocop-activeadmin',
11
+ description: 'RuboCop plugin for ActiveAdmin-specific cops.'
12
+ )
13
+ end
14
+
15
+ def supported?(context)
16
+ context.engine == :rubocop
17
+ end
18
+
19
+ def rules(_context)
20
+ LintRoller::Rules.new(
21
+ type: :path,
22
+ config_format: :rubocop,
23
+ value: Pathname.new(__dir__).join('../../../config/default.yml')
24
+ )
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,5 @@
1
+ module RuboCop
2
+ module Activeadmin
3
+ VERSION = '0.1.0'.freeze
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ require_relative 'activeadmin/version'
2
+
3
+ module RuboCop
4
+ module Activeadmin
5
+ end
6
+ end
File without changes
@@ -0,0 +1,6 @@
1
+ require 'rubocop'
2
+
3
+ require_relative 'rubocop/activeadmin'
4
+ require_relative 'rubocop/activeadmin/plugin'
5
+
6
+ require_relative 'rubocop/cop/activeadmin_cops'
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-activeadmin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Anton Ivanov
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: lint_roller
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '1.1'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '1.1'
26
+ - !ruby/object:Gem::Dependency
27
+ name: rubocop
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.72.2
33
+ - - "<"
34
+ - !ruby/object:Gem::Version
35
+ version: '2.0'
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 1.72.2
43
+ - - "<"
44
+ - !ruby/object:Gem::Version
45
+ version: '2.0'
46
+ description: An empty RuboCop plugin for future ActiveAdmin-specific cops.
47
+ email:
48
+ - anton.i@hey.com
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - README.md
54
+ - config/default.yml
55
+ - lib/rubocop-activeadmin.rb
56
+ - lib/rubocop/activeadmin.rb
57
+ - lib/rubocop/activeadmin/plugin.rb
58
+ - lib/rubocop/activeadmin/version.rb
59
+ - lib/rubocop/cop/activeadmin_cops.rb
60
+ homepage: https://rubygems.org/gems/rubocop-activeadmin
61
+ licenses:
62
+ -
63
+ metadata:
64
+ allowed_push_host: https://rubygems.org
65
+ homepage_uri: https://rubygems.org/gems/rubocop-activeadmin
66
+ default_lint_roller_plugin: RuboCop::Activeadmin::Plugin
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 2.7.0
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubygems_version: 3.6.9
82
+ specification_version: 4
83
+ summary: RuboCop plugin for ActiveAdmin-specific cops.
84
+ test_files: []