diff --git a/.rubocop.yml b/.rubocop.yml index 62d4b5b..ebdd5a0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,6 +3,7 @@ inherit_from: AllCops: TargetRubyVersion: 2.0 + TargetRailsVersion: 4.2 Rails: Enabled: true diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 9445d4a..e55f38c 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -8,6 +8,12 @@ Lint/RescueException: Exclude: - 'lib/foreman_xen/vnc_tunnel.rb' +# Offense count: 9 +Lint/RescueWithoutErrorClass: + Exclude: + - 'app/models/foreman_xen/xenserver.rb' + - 'lib/foreman_xen/engine.rb' + # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments. diff --git a/Gemfile b/Gemfile index 3c20a52..355917c 100644 --- a/Gemfile +++ b/Gemfile @@ -3,4 +3,4 @@ source 'https://rubygems.org' gemspec gem 'nokogiri', '< 1.7', require: false if RUBY_VERSION.start_with? '2.0.' -gem 'rubocop', '~> 0.49.1', require: false +gem 'rubocop', '~> 0.50.0', require: false diff --git a/foreman_xen.gemspec b/foreman_xen.gemspec index 92e13d3..a1fb896 100644 --- a/foreman_xen.gemspec +++ b/foreman_xen.gemspec @@ -1,5 +1,3 @@ -# encoding: utf-8 - $LOAD_PATH.push File.expand_path('../lib', __FILE__) # Maintain your gem's version: