Skip to content

Commit

Permalink
Merge pull request #20 from wundertax/bump-config
Browse files Browse the repository at this point in the history
Allow rubocop to 1.8.1
  • Loading branch information
mhenrixon authored Jan 25, 2021
2 parents 6cdeafb + 6571e51 commit 3b8cdf6
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ Gemfile.lock
_yardoc
doc/
.DS_Store
/vendor/
29 changes: 29 additions & 0 deletions bin/rubocop
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/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.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

bundle_binstub = File.expand_path("../bundle", __FILE__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rubocop", "rubocop")
3 changes: 2 additions & 1 deletion config/default.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require:
- rubocop-performance
- rubocop-rake
- rubocop-rails
- rubocop-rspec

Expand All @@ -9,7 +10,7 @@ inherit_mode:

AllCops:
NewCops: enable
TargetRubyVersion: 2.5
TargetRubyVersion: 2.6

# =============== #
# Layout Cops #
Expand Down
5 changes: 3 additions & 2 deletions rubocop-wundertax.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ Gem::Specification.new do |s|

s.files = Dir['README.md', 'LICENSE', 'config/*.yml']

s.add_dependency 'rubocop', '~> 0.89'
s.add_dependency 'rubocop'
s.add_dependency 'rubocop-performance'
s.add_dependency 'rubocop-rails'
s.add_dependency 'rubocop-rake'
s.add_dependency 'rubocop-rspec'

s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'yamllint'

s.required_ruby_version = '>= 2.5.0'
s.required_ruby_version = '>= 2.6.0'

s.email = '[email protected]'
s.authors = 'Wundertax'
Expand Down

0 comments on commit 3b8cdf6

Please sign in to comment.