From c50b592c4d19fc3619e25f38c05a49957671888b Mon Sep 17 00:00:00 2001 From: Jason York Date: Fri, 29 May 2020 19:24:41 -0500 Subject: [PATCH] Set default for NewCops (#125) * Set default for NewCops * v0.23.0 --- Gemfile.lock | 2 +- default.yml | 1 + lib/ramsey_cop/version.rb | 2 +- spec/ramsey_cop_spec.rb | 5 +++++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 8f3d7a1..1c4b912 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - ramsey_cop (0.22.0) + ramsey_cop (0.23.0) rubocop (>= 0.82) rubocop-performance (>= 1.5.2) diff --git a/default.yml b/default.yml index c84c98b..cc76306 100644 --- a/default.yml +++ b/default.yml @@ -5,6 +5,7 @@ AllCops: - db/schema.rb - vendor/**/* - node_modules/**/* + NewCops: disable Layout/AccessModifierIndentation: EnforcedStyle: outdent diff --git a/lib/ramsey_cop/version.rb b/lib/ramsey_cop/version.rb index 5d271b8..8df54a4 100644 --- a/lib/ramsey_cop/version.rb +++ b/lib/ramsey_cop/version.rb @@ -1,3 +1,3 @@ module RamseyCop - VERSION = "0.22.0".freeze + VERSION = "0.23.0".freeze end diff --git a/spec/ramsey_cop_spec.rb b/spec/ramsey_cop_spec.rb index 66adb68..ba361c7 100644 --- a/spec/ramsey_cop_spec.rb +++ b/spec/ramsey_cop_spec.rb @@ -1,7 +1,12 @@ require "spec_helper" +require "rubocop" RSpec.describe RamseyCop do it "has a version number" do expect(RamseyCop::VERSION).not_to be nil end + + it "has a valid config" do + expect { RuboCop::ConfigLoader.load_file("./default.yml") }.to_not raise_error + end end