rubocop_auto_corrector 0.1.0.beta1 → 0.4.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 +4 -4
- data/.coveralls.yml +1 -0
- data/.github/workflows/test.yml +115 -0
- data/.rubocop.yml +13 -8
- data/CHANGELOG.md +22 -1
- data/Gemfile +2 -0
- data/README.md +14 -2
- data/Rakefile +2 -0
- data/bin/console +1 -0
- data/exe/rubocop_auto_corrector +15 -3
- data/lib/rubocop_auto_corrector.rb +3 -0
- data/lib/rubocop_auto_corrector/cli.rb +15 -20
- data/lib/rubocop_auto_corrector/cop_finder.rb +61 -0
- data/lib/rubocop_auto_corrector/version.rb +3 -1
- data/rubocop_auto_corrector.gemspec +10 -3
- metadata +59 -16
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 509d6918b9fdfe52298f58bbe9be36931e3dd47115becd4e4fda20de29dec3ef
|
4
|
+
data.tar.gz: f65fd537d05dc43b5c7e33d525781a67f2941b4f77e63caad3edae309d15a29f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5096bf602e4f4158c9f4daeee6f02ceb7f1dd144bcc4d3a46d01afecc3bfe55ed5e3ee73aa909f4ef2e4765c829e86091d56b40038f1b5c1c85f1da80c576855
|
7
|
+
data.tar.gz: 228c3f22ecad65538f108e3218079866e2c7b1071cca78e6dc266ec6e297ff950a719610a73fd88b9c7a1555c18f4180f4fc374cc2fb156ffa41e8b59043667f
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
repo_token: Qeqfezb3pV4exGsEupqPmLm4jYYZYVciw
|
@@ -0,0 +1,115 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
types:
|
9
|
+
- opened
|
10
|
+
- synchronize
|
11
|
+
- reopened
|
12
|
+
schedule:
|
13
|
+
- cron: "0 10 * * 5" # JST 19:00 (Fri)
|
14
|
+
|
15
|
+
env:
|
16
|
+
CI: "true"
|
17
|
+
|
18
|
+
jobs:
|
19
|
+
test:
|
20
|
+
runs-on: ubuntu-latest
|
21
|
+
|
22
|
+
container: ${{ matrix.ruby }}
|
23
|
+
|
24
|
+
strategy:
|
25
|
+
fail-fast: false
|
26
|
+
|
27
|
+
matrix:
|
28
|
+
ruby:
|
29
|
+
- ruby:2.4
|
30
|
+
- ruby:2.5
|
31
|
+
- ruby:2.6
|
32
|
+
- ruby:2.7
|
33
|
+
- rubylang/ruby:master-nightly-bionic
|
34
|
+
include:
|
35
|
+
- ruby: rubylang/ruby:master-nightly-bionic
|
36
|
+
allow_failures: "true"
|
37
|
+
|
38
|
+
steps:
|
39
|
+
- uses: actions/checkout@v2
|
40
|
+
|
41
|
+
|
42
|
+
- name: Cache vendor/bundle
|
43
|
+
uses: actions/cache@v1
|
44
|
+
id: cache_gem
|
45
|
+
with:
|
46
|
+
path: vendor/bundle
|
47
|
+
key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
|
48
|
+
restore-keys: |
|
49
|
+
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
50
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
51
|
+
|
52
|
+
- name: bundle update
|
53
|
+
run: |
|
54
|
+
set -xe
|
55
|
+
bundle config path vendor/bundle
|
56
|
+
bundle update --jobs $(nproc) --retry 3
|
57
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
58
|
+
|
59
|
+
- name: Setup Code Climate Test Reporter
|
60
|
+
uses: aktions/codeclimate-test-reporter@v1
|
61
|
+
with:
|
62
|
+
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
63
|
+
command: before-build
|
64
|
+
if: matrix.ruby >= 'ruby:2.4'
|
65
|
+
continue-on-error: true
|
66
|
+
|
67
|
+
- name: Set up git
|
68
|
+
run: |
|
69
|
+
set -xe
|
70
|
+
git config --global user.email "github-runner@example.com"
|
71
|
+
git config --global user.name "github runner"
|
72
|
+
|
73
|
+
- name: Run test
|
74
|
+
run: |
|
75
|
+
set -xe
|
76
|
+
bundle exec rspec
|
77
|
+
bundle exec rubocop -P
|
78
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
79
|
+
|
80
|
+
- name: Teardown Code Climate Test Reporter
|
81
|
+
uses: aktions/codeclimate-test-reporter@v1
|
82
|
+
with:
|
83
|
+
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
84
|
+
command: after-build
|
85
|
+
if: matrix.ruby >= 'ruby:2.4' && always()
|
86
|
+
continue-on-error: true
|
87
|
+
|
88
|
+
- name: Slack Notification (not success)
|
89
|
+
uses: homoluctus/slatify@master
|
90
|
+
if: "! success()"
|
91
|
+
continue-on-error: true
|
92
|
+
with:
|
93
|
+
job_name: ${{ format('*build* ({0})', matrix.ruby) }}
|
94
|
+
type: ${{ job.status }}
|
95
|
+
icon_emoji: ":octocat:"
|
96
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
97
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
98
|
+
|
99
|
+
notify:
|
100
|
+
needs:
|
101
|
+
- test
|
102
|
+
|
103
|
+
runs-on: ubuntu-latest
|
104
|
+
|
105
|
+
steps:
|
106
|
+
- name: Slack Notification (success)
|
107
|
+
uses: homoluctus/slatify@master
|
108
|
+
if: always()
|
109
|
+
continue-on-error: true
|
110
|
+
with:
|
111
|
+
job_name: '*build*'
|
112
|
+
type: ${{ job.status }}
|
113
|
+
icon_emoji: ":octocat:"
|
114
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
115
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
data/.rubocop.yml
CHANGED
@@ -1,18 +1,23 @@
|
|
1
|
-
require: rubocop-rspec
|
2
|
-
|
3
1
|
AllCops:
|
4
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 2.4
|
5
3
|
|
6
4
|
Exclude:
|
7
|
-
- 'spec/dummy
|
5
|
+
- 'spec/dummy/**/*'
|
8
6
|
|
9
|
-
#
|
7
|
+
# c.f. https://github.com/rubocop-hq/rubocop/blob/v0.72.0/config/default.yml#L60-L63
|
10
8
|
- 'node_modules/**/*'
|
11
9
|
- 'vendor/**/*'
|
12
10
|
- '.git/**/*'
|
13
11
|
|
14
|
-
|
15
|
-
|
12
|
+
NewCops: enable
|
13
|
+
|
14
|
+
Metrics/BlockLength:
|
15
|
+
Exclude:
|
16
|
+
- '*.gemspec'
|
17
|
+
- 'spec/**/*_spec.rb'
|
18
|
+
|
19
|
+
Layout/LineLength:
|
20
|
+
Max: 110
|
16
21
|
|
17
|
-
|
22
|
+
Style/Documentation:
|
18
23
|
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.
|
2
|
+
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.4.0...master)
|
3
|
+
|
4
|
+
## v0.4.0
|
5
|
+
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.3.0...v0.4.0)
|
6
|
+
|
7
|
+
* Add `--all` option for `rubocop --auto-correct-all`
|
8
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/34
|
9
|
+
* When `--all` arg is passed to `rubocop_auto_corrector` (e.g. `rubocop_auto_corrector --all`), run `rubocop --auto-correct-all && git commit` with each cop.
|
10
|
+
* Upgrade rubocop and drop support ruby 2.3
|
11
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/31
|
12
|
+
|
13
|
+
## v0.3.0
|
14
|
+
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.2.0...v0.3.0)
|
15
|
+
|
16
|
+
* Support `rubocop-rails` gem (requires rubocop 0.72.0+ and ruby 2.3.0+)
|
17
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/18
|
18
|
+
|
19
|
+
## v0.2.0
|
20
|
+
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.1.0...v0.2.0)
|
21
|
+
|
22
|
+
* Support `rubocop-performance` gem
|
23
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/16
|
3
24
|
|
4
25
|
## v0.1.0
|
5
26
|
* first release
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,15 +2,26 @@
|
|
2
2
|
|
3
3
|
Run `rubocop --auto-correct && git commit` with each cop.
|
4
4
|
|
5
|
-
|
5
|
+
[](https://badge.fury.io/rb/rubocop_auto_corrector)
|
6
|
+
[](https://github.com/sue445/rubocop_auto_corrector/actions?query=workflow%3Atest)
|
7
|
+
[](https://codeclimate.com/github/sue445/rubocop_auto_corrector/maintainability)
|
8
|
+
[](https://coveralls.io/github/sue445/rubocop_auto_corrector?branch=master)
|
9
|
+
|
10
|
+
## Example
|
6
11
|
See https://github.com/sue445/rubocop_auto_corrector/pull/3/commits
|
7
12
|
|
13
|
+
## Requirements
|
14
|
+
* Ruby
|
15
|
+
* git
|
16
|
+
|
8
17
|
## Installation
|
9
18
|
|
10
19
|
Add this line to your application's Gemfile:
|
11
20
|
|
12
21
|
```ruby
|
13
|
-
|
22
|
+
group :development do
|
23
|
+
gem 'rubocop_auto_corrector', require: false
|
24
|
+
end
|
14
25
|
```
|
15
26
|
|
16
27
|
And then execute:
|
@@ -31,6 +42,7 @@ $ bundle exec rubocop_auto_corrector
|
|
31
42
|
$ bundle exec rubocop_auto_corrector --help
|
32
43
|
Usage: rubocop_auto_corrector [options]
|
33
44
|
--auto-correct-count COUNT Run `rubocop --auto-correct` and `git commit` for this number of times. (default. 2)
|
45
|
+
--all Whether run `rubocop` with `--auto-correct-all`. (default. run with `--auto-correct`)
|
34
46
|
```
|
35
47
|
|
36
48
|
## Development
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
data/exe/rubocop_auto_corrector
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require 'rubocop_auto_corrector/cli'
|
4
5
|
require 'rubocop_auto_corrector/version'
|
@@ -6,16 +7,27 @@ require 'optparse'
|
|
6
7
|
|
7
8
|
opt = OptionParser.new
|
8
9
|
params = {
|
9
|
-
auto_correct_count: 2
|
10
|
+
auto_correct_count: 2,
|
11
|
+
auto_correct_all: false
|
10
12
|
}
|
11
13
|
|
12
14
|
Version = RubocopAutoCorrector::VERSION
|
13
|
-
|
15
|
+
|
16
|
+
opt.on(
|
17
|
+
'--auto-correct-count COUNT',
|
18
|
+
'Run `rubocop --auto-correct` and `git commit` for this number of times. (default. 2)'
|
19
|
+
) do |v|
|
20
|
+
params[:auto_correct_count] = v.to_i
|
21
|
+
end
|
22
|
+
|
23
|
+
opt.on('--all', 'Whether run `rubocop` with `--auto-correct-all`. (default. run with `--auto-correct`)') do
|
24
|
+
params[:auto_correct_all] = true
|
25
|
+
end
|
14
26
|
|
15
27
|
opt.parse!(ARGV)
|
16
28
|
|
17
29
|
cli = RubocopAutoCorrector::CLI.new
|
18
30
|
|
19
31
|
params[:auto_correct_count].times do
|
20
|
-
cli.perform
|
32
|
+
cli.perform(params[:auto_correct_all])
|
21
33
|
end
|
@@ -1,7 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module RubocopAutoCorrector
|
2
4
|
require 'json'
|
3
5
|
require 'yaml'
|
4
6
|
require 'rubocop'
|
7
|
+
require 'rubocop_auto_corrector'
|
5
8
|
|
6
9
|
class CLI
|
7
10
|
DEFAULT_ORDER = 100
|
@@ -12,11 +15,11 @@ module RubocopAutoCorrector
|
|
12
15
|
@exclude_cops = data['exclude_cops']
|
13
16
|
end
|
14
17
|
|
15
|
-
def perform
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
def perform(auto_collect_all)
|
19
|
+
rubocop_option = auto_collect_all ? '--auto-correct-all' : '--auto-correct'
|
20
|
+
|
21
|
+
cop_names = collect_offense_cop_names.select { |cop_name| auto_correctable?(cop_name) }
|
22
|
+
.sort_by { |cop_name| [cop_order(cop_name), cop_name] }
|
20
23
|
|
21
24
|
cop_names.each do |cop_name|
|
22
25
|
if (reason = exclude_reason(cop_name))
|
@@ -24,7 +27,7 @@ module RubocopAutoCorrector
|
|
24
27
|
next
|
25
28
|
end
|
26
29
|
|
27
|
-
run_and_commit "rubocop
|
30
|
+
run_and_commit "rubocop #{rubocop_option} --only #{cop_name}"
|
28
31
|
end
|
29
32
|
end
|
30
33
|
|
@@ -38,21 +41,13 @@ module RubocopAutoCorrector
|
|
38
41
|
cop_names.uniq
|
39
42
|
end
|
40
43
|
|
44
|
+
# Whether this cop is auto correctable
|
45
|
+
#
|
46
|
+
# @param cop_name [String]
|
47
|
+
#
|
48
|
+
# @return [Boolean]
|
41
49
|
def auto_correctable?(cop_name)
|
42
|
-
|
43
|
-
plugin_name = "rubocop-#{cop_name.split('/').first.downcase}"
|
44
|
-
|
45
|
-
begin
|
46
|
-
Object.new.instance_eval <<-RUBY
|
47
|
-
begin
|
48
|
-
require '#{plugin_name}'
|
49
|
-
rescue LoadError
|
50
|
-
end
|
51
|
-
#{cop_class_name}.new.respond_to?(:autocorrect)
|
52
|
-
RUBY
|
53
|
-
rescue NameError
|
54
|
-
false
|
55
|
-
end
|
50
|
+
RubocopAutoCorrector::CopFinder.new(cop_name).auto_correctable?
|
56
51
|
end
|
57
52
|
|
58
53
|
private
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RubocopAutoCorrector
|
4
|
+
class CopFinder
|
5
|
+
attr_reader :cop_name
|
6
|
+
|
7
|
+
# @param cop_name [String] e.g. Metrics/AbcSize
|
8
|
+
def initialize(cop_name)
|
9
|
+
@cop_name = cop_name
|
10
|
+
end
|
11
|
+
|
12
|
+
# Whether this cop is auto correctable
|
13
|
+
# @return [Boolean]
|
14
|
+
def auto_correctable?
|
15
|
+
Object.new.instance_eval <<-RUBY, __FILE__, __LINE__ + 1
|
16
|
+
begin
|
17
|
+
require '#{gem_name}'
|
18
|
+
rescue LoadError
|
19
|
+
end
|
20
|
+
#{cop_class_name}.new.respond_to?(:autocorrect)
|
21
|
+
RUBY
|
22
|
+
rescue NameError
|
23
|
+
false
|
24
|
+
end
|
25
|
+
|
26
|
+
# @return [String]
|
27
|
+
def gem_name
|
28
|
+
gem_name, = rubocop_cop_info
|
29
|
+
gem_name
|
30
|
+
end
|
31
|
+
|
32
|
+
# @return [String]
|
33
|
+
def cop_class_name
|
34
|
+
_, cop_class = rubocop_cop_info
|
35
|
+
cop_class
|
36
|
+
end
|
37
|
+
|
38
|
+
private
|
39
|
+
|
40
|
+
# rubocop:disable Metrics/MethodLength
|
41
|
+
def rubocop_cop_info
|
42
|
+
cop_class_suffix = cop_name.gsub('/', '::')
|
43
|
+
|
44
|
+
case cop_name
|
45
|
+
when %r{^RSpec/}
|
46
|
+
['rubocop-rspec', "::RuboCop::Cop::#{cop_class_suffix}"]
|
47
|
+
when %r{^(FactoryBot|Capybara)/}, 'Rails/HttpStatus'
|
48
|
+
['rubocop-rspec', "::RuboCop::Cop::RSpec::#{cop_class_suffix}"]
|
49
|
+
when %r{^(Layout|Lint|Metrics|Naming|Security|Style|Bundler|Gemspec)/}
|
50
|
+
# Official cops
|
51
|
+
['rubocop', "::RuboCop::Cop::#{cop_class_suffix}"]
|
52
|
+
else
|
53
|
+
# Unknown cops
|
54
|
+
department_camel = cop_name.split('/').first
|
55
|
+
department_snake = department_camel.gsub(/(?<=.)([A-Z])/) { |s| "_#{s}" }.downcase
|
56
|
+
["rubocop-#{department_snake}", "::RuboCop::Cop::#{cop_class_suffix}"]
|
57
|
+
end
|
58
|
+
end
|
59
|
+
# rubocop:enable Metrics/MethodLength
|
60
|
+
end
|
61
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
lib = File.expand_path('lib', __dir__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
require 'rubocop_auto_corrector/version'
|
@@ -33,12 +35,17 @@ Gem::Specification.new do |spec|
|
|
33
35
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
34
36
|
spec.require_paths = ['lib']
|
35
37
|
|
36
|
-
spec.
|
38
|
+
spec.required_ruby_version = '>= 2.4.0'
|
39
|
+
|
40
|
+
spec.add_dependency 'rubocop', '>= 0.87.0'
|
37
41
|
|
38
|
-
spec.add_development_dependency 'bundler', '
|
39
|
-
spec.add_development_dependency '
|
42
|
+
spec.add_development_dependency 'bundler', '>= 1.17'
|
43
|
+
spec.add_development_dependency 'coveralls'
|
44
|
+
spec.add_development_dependency 'rake'
|
40
45
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
41
46
|
spec.add_development_dependency 'rspec-parameterized'
|
42
47
|
spec.add_development_dependency 'rspec-temp_dir', '>= 1.1.0'
|
43
48
|
spec.add_development_dependency 'rubocop-rspec'
|
49
|
+
spec.add_development_dependency 'simplecov', '< 0.18.0'
|
50
|
+
spec.add_development_dependency 'unparser', '>= 0.4.5'
|
44
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop_auto_corrector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,42 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.87.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.87.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.17'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.17'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: coveralls
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- - "
|
59
|
+
- - ">="
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
61
|
+
version: '0'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- - "
|
66
|
+
- - ">="
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rspec
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +122,34 @@ dependencies:
|
|
108
122
|
- - ">="
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: simplecov
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "<"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.18.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "<"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.18.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: unparser
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.4.5
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.4.5
|
111
153
|
description: Run `rubocop --auto-correct && git commit` with each cop.
|
112
154
|
email:
|
113
155
|
- sue445@sue445.net
|
@@ -116,10 +158,11 @@ executables:
|
|
116
158
|
extensions: []
|
117
159
|
extra_rdoc_files: []
|
118
160
|
files:
|
161
|
+
- ".coveralls.yml"
|
162
|
+
- ".github/workflows/test.yml"
|
119
163
|
- ".gitignore"
|
120
164
|
- ".rspec"
|
121
165
|
- ".rubocop.yml"
|
122
|
-
- ".travis.yml"
|
123
166
|
- CHANGELOG.md
|
124
167
|
- Gemfile
|
125
168
|
- LICENSE.txt
|
@@ -130,6 +173,7 @@ files:
|
|
130
173
|
- exe/rubocop_auto_corrector
|
131
174
|
- lib/rubocop_auto_corrector.rb
|
132
175
|
- lib/rubocop_auto_corrector/cli.rb
|
176
|
+
- lib/rubocop_auto_corrector/cop_finder.rb
|
133
177
|
- lib/rubocop_auto_corrector/data.yml
|
134
178
|
- lib/rubocop_auto_corrector/version.rb
|
135
179
|
- rubocop_auto_corrector.gemspec
|
@@ -148,15 +192,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
192
|
requirements:
|
149
193
|
- - ">="
|
150
194
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
195
|
+
version: 2.4.0
|
152
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
197
|
requirements:
|
154
|
-
- - "
|
198
|
+
- - ">="
|
155
199
|
- !ruby/object:Gem::Version
|
156
|
-
version:
|
200
|
+
version: '0'
|
157
201
|
requirements: []
|
158
|
-
|
159
|
-
rubygems_version: 2.7.6
|
202
|
+
rubygems_version: 3.1.2
|
160
203
|
signing_key:
|
161
204
|
specification_version: 4
|
162
205
|
summary: Run `rubocop --auto-correct && git commit` with each cop.
|