rubocop-changes 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.rubocop.yml +2 -0
- data/.travis.yml +10 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +56 -0
- data/LICENSE.txt +21 -0
- data/README.md +70 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/rubocop-changes +9 -0
- data/lib/rubocop/changes.rb +8 -0
- data/lib/rubocop/changes/check.rb +45 -0
- data/lib/rubocop/changes/checker.rb +100 -0
- data/lib/rubocop/changes/shell.rb +11 -0
- data/lib/rubocop/changes/version.rb +5 -0
- data/rubocop-changes.gemspec +41 -0
- metadata +165 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3418a7faaf54f2badc919df11d3dfd5f17e47ec13fba028601969bf656eb8914
|
4
|
+
data.tar.gz: 663ee14253cc36da82dfe424403f46e86c3aa982e9b63f11c6bdb540a4f0c5e8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4085342a0463a1ed252ce253405ab8784c2cb9b4e60d1d167c5c570a16446ed911cdd50ef1d97fca0089647e061223d9a72c51d3dd2dd57c01c3f6212bc54385
|
7
|
+
data.tar.gz: e9789e521c3b1e55408d4bce90945fe2a3869a42b0508d251b6cabc599ac90fe14929b3b90e4fa8f1a6b971ff2c553c892c301bf68f7c34c53281ac5ea8a60f2
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at fcsonline@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rubocop-changes (0.1.0)
|
5
|
+
rubocop (~> 0.59)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ast (2.4.0)
|
11
|
+
byebug (10.0.2)
|
12
|
+
diff-lcs (1.3)
|
13
|
+
git_diff_parser (3.2.0)
|
14
|
+
jaro_winkler (1.5.4)
|
15
|
+
parallel (1.19.1)
|
16
|
+
parser (2.6.5.0)
|
17
|
+
ast (~> 2.4.0)
|
18
|
+
rainbow (3.0.0)
|
19
|
+
rake (10.5.0)
|
20
|
+
rspec (3.9.0)
|
21
|
+
rspec-core (~> 3.9.0)
|
22
|
+
rspec-expectations (~> 3.9.0)
|
23
|
+
rspec-mocks (~> 3.9.0)
|
24
|
+
rspec-core (3.9.0)
|
25
|
+
rspec-support (~> 3.9.0)
|
26
|
+
rspec-expectations (3.9.0)
|
27
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
+
rspec-support (~> 3.9.0)
|
29
|
+
rspec-mocks (3.9.0)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.9.0)
|
32
|
+
rspec-support (3.9.0)
|
33
|
+
rubocop (0.76.0)
|
34
|
+
jaro_winkler (~> 1.5.1)
|
35
|
+
parallel (~> 1.10)
|
36
|
+
parser (>= 2.6)
|
37
|
+
rainbow (>= 2.2.2, < 4.0)
|
38
|
+
ruby-progressbar (~> 1.7)
|
39
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
40
|
+
ruby-progressbar (1.10.1)
|
41
|
+
unicode-display_width (1.6.0)
|
42
|
+
|
43
|
+
PLATFORMS
|
44
|
+
ruby
|
45
|
+
|
46
|
+
DEPENDENCIES
|
47
|
+
bundler (~> 2.0)
|
48
|
+
byebug (~> 10.0)
|
49
|
+
git_diff_parser (~> 3.2)
|
50
|
+
rake (~> 10.0)
|
51
|
+
rspec (~> 3.0)
|
52
|
+
rubocop (~> 0.59)
|
53
|
+
rubocop-changes!
|
54
|
+
|
55
|
+
BUNDLED WITH
|
56
|
+
2.0.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Ferran Basora
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
# Rubocop::Changes
|
2
|
+
|
3
|
+
[![Gem Version](http://img.shields.io/gem/v/rubocop-changes.svg?style=flat)](http://badge.fury.io/rb/rubocop-changes)
|
4
|
+
[![Build Status](http://img.shields.io/travis/fcsonline/rubocop-changes/master.svg?style=flat)](https://travis-ci.org/fcsonline/rubocop-changes)
|
5
|
+
|
6
|
+
`rubocop-changes` runs rubocop and shows only the offenses you introduced since
|
7
|
+
the fork point of your git branch. Will not complain about existing offenses in
|
8
|
+
your main branch.
|
9
|
+
|
10
|
+
This is useful for CI checks for your pull requests but it could be useful too
|
11
|
+
for you daily work, to know new offenses created by you.
|
12
|
+
|
13
|
+
Internally `rubocop-changes` runs `rubocop` and a `git diff` and does the
|
14
|
+
intersection of line numbers to know the new offenses you are introducing to
|
15
|
+
you master branch.
|
16
|
+
|
17
|
+
## Installation
|
18
|
+
|
19
|
+
Add this line to your application's Gemfile:
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
gem 'rubocop-changes'
|
23
|
+
```
|
24
|
+
|
25
|
+
And then execute:
|
26
|
+
|
27
|
+
$ bundle
|
28
|
+
|
29
|
+
Or install it yourself as:
|
30
|
+
|
31
|
+
$ gem install rubocop-changes
|
32
|
+
|
33
|
+
## Usage
|
34
|
+
|
35
|
+
$ bundle exec rubocop-changes
|
36
|
+
|
37
|
+
## Alternatives
|
38
|
+
|
39
|
+
There are similar projects out there, but all of them show all Rubocop offenses for all changes files:
|
40
|
+
|
41
|
+
- https://github.com/m4i/rubocop-git
|
42
|
+
- https://github.com/packsaddle/rubocop-select
|
43
|
+
- https://github.com/mcgain/rubocop-diff
|
44
|
+
- https://github.com/yohira0616/diffcop
|
45
|
+
- https://github.com/SimpleNexus/nexocop
|
46
|
+
|
47
|
+
## Ideas
|
48
|
+
|
49
|
+
Those are some ideas to improve `rubocop-changes`:
|
50
|
+
|
51
|
+
- [ ] Let users specify which formatter to use for the output
|
52
|
+
- [ ] Let users specify the rubocop config file
|
53
|
+
|
54
|
+
## Development
|
55
|
+
|
56
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
57
|
+
|
58
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
59
|
+
|
60
|
+
## Contributing
|
61
|
+
|
62
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/fcsonline/rubocop-changes. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
63
|
+
|
64
|
+
## License
|
65
|
+
|
66
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
67
|
+
|
68
|
+
## Code of Conduct
|
69
|
+
|
70
|
+
Everyone interacting in the Rubocop::Changes project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/fcsonline/rubocop-changes/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "rubocop/changes"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/exe/rubocop-changes
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Rubocop
|
4
|
+
module Changes
|
5
|
+
class Check
|
6
|
+
def initialize(analysis, patch)
|
7
|
+
@analysis = analysis
|
8
|
+
@patch = patch
|
9
|
+
end
|
10
|
+
|
11
|
+
def offenses
|
12
|
+
analysis.offenses.select do |offense|
|
13
|
+
line_numbers.include?(line(offense))
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def path
|
18
|
+
analysis.path
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
attr_reader :analysis, :patch
|
24
|
+
|
25
|
+
def line_numbers
|
26
|
+
lines_from_diff & lines_from_rubocop
|
27
|
+
end
|
28
|
+
|
29
|
+
def lines_from_diff
|
30
|
+
patch.changed_line_numbers
|
31
|
+
end
|
32
|
+
|
33
|
+
def lines_from_rubocop
|
34
|
+
analysis
|
35
|
+
.offenses
|
36
|
+
.map(&method(:line))
|
37
|
+
.uniq
|
38
|
+
end
|
39
|
+
|
40
|
+
def line(offense)
|
41
|
+
offense.location.line
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'git_diff_parser'
|
4
|
+
require 'byebug'
|
5
|
+
require 'rubocop'
|
6
|
+
require 'json'
|
7
|
+
|
8
|
+
require 'rubocop/changes/check'
|
9
|
+
require 'rubocop/changes/shell'
|
10
|
+
|
11
|
+
module Rubocop
|
12
|
+
module Changes
|
13
|
+
class UnknownForkPointError < StandardError; end
|
14
|
+
|
15
|
+
class Checker
|
16
|
+
def run
|
17
|
+
raise UnknownForkPointError if fork_point.empty?
|
18
|
+
|
19
|
+
# TODO: Let users choose the formatter
|
20
|
+
formatter = RuboCop::Formatter::SimpleTextFormatter.new($stdout)
|
21
|
+
|
22
|
+
formatter.started('')
|
23
|
+
|
24
|
+
print_offenses(formatter)
|
25
|
+
|
26
|
+
formatter.finished(ruby_changed_files)
|
27
|
+
|
28
|
+
checks.map(&:offenses).flatten
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def fork_point
|
34
|
+
@fork_point ||= Shell.run('git merge-base HEAD origin/master')
|
35
|
+
end
|
36
|
+
|
37
|
+
def diff
|
38
|
+
Shell.run("git diff #{fork_point}")
|
39
|
+
end
|
40
|
+
|
41
|
+
def patches
|
42
|
+
@patches ||= GitDiffParser.parse(diff)
|
43
|
+
end
|
44
|
+
|
45
|
+
def changed_files
|
46
|
+
patches.map(&:file)
|
47
|
+
end
|
48
|
+
|
49
|
+
def ruby_changed_files
|
50
|
+
changed_files.select { |changed_file| changed_file =~ /.rb$/ }
|
51
|
+
end
|
52
|
+
|
53
|
+
def rubocop
|
54
|
+
Shell.run("bundle exec rubocop -f j #{ruby_changed_files.join(' ')}")
|
55
|
+
end
|
56
|
+
|
57
|
+
def rubocop_json
|
58
|
+
@rubocop_json ||= JSON.parse(rubocop, object_class: OpenStruct)
|
59
|
+
end
|
60
|
+
|
61
|
+
def checks
|
62
|
+
@checks ||= ruby_changed_files.map do |file|
|
63
|
+
analysis = rubocop_json.files.find { |item| item.path == file }
|
64
|
+
patch = patches.find { |item| item.file == file }
|
65
|
+
|
66
|
+
next unless analysis
|
67
|
+
|
68
|
+
Check.new(analysis, patch)
|
69
|
+
end.compact
|
70
|
+
end
|
71
|
+
|
72
|
+
def offended_lines
|
73
|
+
checks.map(&:offended_lines).flatten.compact
|
74
|
+
end
|
75
|
+
|
76
|
+
def total_offenses
|
77
|
+
checks.map { |check| check.offended_lines.size }.inject(0, :+)
|
78
|
+
end
|
79
|
+
|
80
|
+
def print_offenses(formatter)
|
81
|
+
checks.each do |check|
|
82
|
+
print_offenses_for_check(formatter, check)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
def print_offenses_for_check(formatter, check)
|
87
|
+
offenses = check.offenses.map do |offense|
|
88
|
+
RuboCop::Cop::Offense.new(
|
89
|
+
offense.severity,
|
90
|
+
offense.location,
|
91
|
+
offense.message,
|
92
|
+
offense.cop_name
|
93
|
+
)
|
94
|
+
end
|
95
|
+
|
96
|
+
formatter.file_finished(check.path, offenses)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "rubocop/changes/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "rubocop-changes"
|
7
|
+
spec.version = Rubocop::Changes::VERSION
|
8
|
+
spec.platform = Gem::Platform::RUBY
|
9
|
+
spec.required_ruby_version = '>= 2.3.0'
|
10
|
+
spec.authors = ["Ferran Basora"]
|
11
|
+
spec.email = ["fcsonline@gmail.com"]
|
12
|
+
|
13
|
+
spec.summary = "Rubocop on changed lines"
|
14
|
+
spec.description = "Run rubocop on changed lines from forked point"
|
15
|
+
spec.homepage = 'https://rubygems.org/gems/rubocop-changes'
|
16
|
+
spec.license = "MIT"
|
17
|
+
|
18
|
+
spec.metadata = {
|
19
|
+
'source_code_uri' => spec.homepage,
|
20
|
+
'bug_tracker_uri' => 'https://github.com/fcsonline/rubocop-changes/issues'
|
21
|
+
}
|
22
|
+
|
23
|
+
# Specify which files should be added to the gem when it is released.
|
24
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
26
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
27
|
+
end
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
|
+
spec.extra_rdoc_files = ['LICENSE.txt', 'README.md']
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_runtime_dependency 'rubocop', '~> 0.59'
|
34
|
+
|
35
|
+
spec.add_development_dependency 'rubocop', '~> 0.59'
|
36
|
+
spec.add_development_dependency 'byebug', '~> 10.0'
|
37
|
+
spec.add_development_dependency 'git_diff_parser', '~> 3.2'
|
38
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
39
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
40
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
41
|
+
end
|
metadata
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubocop-changes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ferran Basora
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-11-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.59'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.59'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.59'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.59'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: byebug
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: git_diff_parser
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.0'
|
111
|
+
description: Run rubocop on changed lines from forked point
|
112
|
+
email:
|
113
|
+
- fcsonline@gmail.com
|
114
|
+
executables:
|
115
|
+
- rubocop-changes
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files:
|
118
|
+
- LICENSE.txt
|
119
|
+
- README.md
|
120
|
+
files:
|
121
|
+
- ".gitignore"
|
122
|
+
- ".rspec"
|
123
|
+
- ".rubocop.yml"
|
124
|
+
- ".travis.yml"
|
125
|
+
- CODE_OF_CONDUCT.md
|
126
|
+
- Gemfile
|
127
|
+
- Gemfile.lock
|
128
|
+
- LICENSE.txt
|
129
|
+
- README.md
|
130
|
+
- Rakefile
|
131
|
+
- bin/console
|
132
|
+
- bin/setup
|
133
|
+
- exe/rubocop-changes
|
134
|
+
- lib/rubocop/changes.rb
|
135
|
+
- lib/rubocop/changes/check.rb
|
136
|
+
- lib/rubocop/changes/checker.rb
|
137
|
+
- lib/rubocop/changes/shell.rb
|
138
|
+
- lib/rubocop/changes/version.rb
|
139
|
+
- rubocop-changes.gemspec
|
140
|
+
homepage: https://rubygems.org/gems/rubocop-changes
|
141
|
+
licenses:
|
142
|
+
- MIT
|
143
|
+
metadata:
|
144
|
+
source_code_uri: https://rubygems.org/gems/rubocop-changes
|
145
|
+
bug_tracker_uri: https://github.com/fcsonline/rubocop-changes/issues
|
146
|
+
post_install_message:
|
147
|
+
rdoc_options: []
|
148
|
+
require_paths:
|
149
|
+
- lib
|
150
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: 2.3.0
|
155
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
requirements: []
|
161
|
+
rubygems_version: 3.0.1
|
162
|
+
signing_key:
|
163
|
+
specification_version: 4
|
164
|
+
summary: Rubocop on changed lines
|
165
|
+
test_files: []
|