From 1c1bcd253ae0e07fcf50b3b177c8f13fa472b4b2 Mon Sep 17 00:00:00 2001 From: cn Date: Fri, 25 Dec 2020 18:04:59 +0100 Subject: [PATCH] gems: include rubocop-rake and fix linting --- .rubocop.yml | 3 +++ Rakefile | 1 + dyndnsd.gemspec | 1 + 3 files changed, 5 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 134a604..55170a0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,6 @@ +require: +- rubocop-rake + AllCops: TargetRubyVersion: '2.5' NewCops: enable diff --git a/Rakefile b/Rakefile index 996dfda..c183ea3 100644 --- a/Rakefile +++ b/Rakefile @@ -28,4 +28,5 @@ end task default: [:rubocop, :spec, 'bundle:audit', :solargraph] +desc 'Run all tasks desired for CI' task ci: ['solargraph:init', :default, :hadolint] diff --git a/dyndnsd.gemspec b/dyndnsd.gemspec index 26a74b5..c115bdc 100644 --- a/dyndnsd.gemspec +++ b/dyndnsd.gemspec @@ -41,5 +41,6 @@ Gem::Specification.new do |s| s.add_development_dependency 'rake' s.add_development_dependency 'rspec' s.add_development_dependency 'rubocop', '~> 1.6.1' + s.add_development_dependency 'rubocop-rake', '~> 0.5.1' s.add_development_dependency 'solargraph', '~> 0.40.0' end