Skip to content

Conversation

heroinbob
Copy link

What's New?
This adds support for specifying a path, or paths you wish to restrict the diff to. For example, to run rubocop on a single file, you can now use the "-p" or "--paths" option.

rubocop-git --paths 'path/to/foo.rb' develop master

You can also specify multiple paths.

rubocop-git --paths 'path/to/models path/to/controllers' develop master

What's Changed?
Building the diff command args has been abstracted into it's own method, simplifying the git_diff method.

… Also moved diff arg building to its own concern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant