Sha256: 0431ce9f0c5cebd891856fdd0e1f2d8ff557ca8a64ac0182b9fe9531b0a95deb

Contents?: true

Size: 493 Bytes

Versions: 3

Compression:

Stored size: 493 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
# The application 'rubocop' is installed as part of a gem, and
# this file is here to facilitate running it.

def last_commit_id_of_base_branch
  `git log | sed -n 1p`.split(' ').last
end

puts "== Running rubocop with safe auto correct on modified files after #{last_commit_id_of_base_branch} commit =="
system("git diff #{last_commit_id_of_base_branch} --name-only | xargs bundle exec rubocop -A")

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
simple_request-0.1.5 bin/rubocop
simple_request-0.1.4 bin/rubocop
smart_error-1.0.3 bin/rubocop