Skip to content

Commit

Permalink
fixup! Switch to the rubocop-shopify gem
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanahsmith committed Mar 25, 2021
1 parent a39346e commit e7ed0b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 4 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ source 'https://rubygems.org'
gemspec

gem 'graphql', ENV['GRAPHQL_VERSION'] if ENV['GRAPHQL_VERSION']
gem 'rubocop', '~> 1.12.0', require: false
gem "rubocop-shopify", '~> 1.0.7', require: false
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.4.0')
gem 'rubocop', '~> 1.12.0', require: false
gem "rubocop-shopify", '~> 1.0.7', require: false
end
14 changes: 9 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ Rake::TestTask.new(:test) do |t|
t.test_files = FileList['test/**/*_test.rb']
end

task :rubocop do
require 'rubocop/rake_task'
RuboCop::RakeTask.new
end
task(default: :test)

if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.4.0')
task :rubocop do
require 'rubocop/rake_task'
RuboCop::RakeTask.new
end

task(default: [:test, :rubocop])
task(default: :rubocop)
end

0 comments on commit e7ed0b7

Please sign in to comment.