diff --git a/.rubocop.yml b/.rubocop.yml index 14b9dd3..62ba652 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,5 @@ +inherit_from: .rubocop_todo.yml + require: rubocop-jekyll inherit_gem: rubocop-jekyll: .rubocop.yml @@ -7,23 +9,3 @@ AllCops: Exclude: - vendor/**/* - spec/*.rb - -Lint/IneffectiveAccessModifier: - Exclude: - - lib/jekyll-gist/gist_tag.rb - -Lint/ShadowedException: - Exclude: - - lib/jekyll-gist/gist_tag.rb - -Metrics/AbcSize: - Exclude: - - lib/jekyll-gist/gist_tag.rb - -Metrics/MethodLength: - Exclude: - - lib/jekyll-gist/gist_tag.rb - -Style/PreferredHashMethods: - Exclude: - - lib/jekyll-gist/gist_tag.rb diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml new file mode 100644 index 0000000..ccdfa8a --- /dev/null +++ b/.rubocop_todo.yml @@ -0,0 +1,31 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2018-10-26 17:08:37 +0200 using RuboCop version 0.60.0. +# The point is for the user to remove these configuration records +# one by one as the offenses are removed from the code base. +# Note that changes in the inspected code, or installation of new +# versions of RuboCop, may require this file to be generated again. + +# Offense count: 1 +Lint/IneffectiveAccessModifier: + Exclude: + - 'lib/jekyll-gist/gist_tag.rb' + +# Offense count: 1 +Lint/ShadowedException: + Exclude: + - 'lib/jekyll-gist/gist_tag.rb' + +# Offense count: 1 +# Configuration parameters: Max. +Metrics/AbcSize: + Exclude: + - 'lib/jekyll-gist/gist_tag.rb' + +# Offense count: 1 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle. +# SupportedStyles: short, verbose +Style/PreferredHashMethods: + Exclude: + - 'lib/jekyll-gist/gist_tag.rb' diff --git a/jekyll-gist.gemspec b/jekyll-gist.gemspec index 326f12d..b72f622 100644 --- a/jekyll-gist.gemspec +++ b/jekyll-gist.gemspec @@ -26,6 +26,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency "jekyll", ">= 3.0" spec.add_development_dependency "rake" spec.add_development_dependency "rspec" - spec.add_development_dependency "rubocop-jekyll", "~> 0.2" + spec.add_development_dependency "rubocop-jekyll", "~> 0.3" spec.add_development_dependency "webmock" end