Skip to content

Commit

Permalink
Merge pull request #1 from conekta/fix/options
Browse files Browse the repository at this point in the history
fix options parse base branch
  • Loading branch information
fcarrero authored Mar 7, 2022
2 parents fba6f6d + 538a805 commit adebf04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
.byebug_history

*.gem
.idea
2 changes: 1 addition & 1 deletion lib/rubocop/changes/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def parse_auto_correct!(opts)
end

def parse_base_branch!(opts)
opts.on('-b', '--base_branch', 'Base branch to compare') do |v|
opts.on('-b', '--base_branch [BRANCH]', 'Base branch to compare') do |v|
args.base_branch = v
end
end
Expand Down
3 changes: 2 additions & 1 deletion spec/rubocop/changes/checker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
format: :simple,
quiet: false,
commit: commit,
auto_correct: auto_correct
auto_correct: auto_correct,
base_branch: 'master'
).run
end

Expand Down

0 comments on commit adebf04

Please sign in to comment.