Skip to content

Commit

Permalink
Set default for NewCops (#125)
Browse files Browse the repository at this point in the history
* Set default for NewCops

* v0.23.0
  • Loading branch information
jasonyork authored May 30, 2020
1 parent 7b44778 commit c50b592
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
1 change: 1 addition & 0 deletions default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ AllCops:
- db/schema.rb
- vendor/**/*
- node_modules/**/*
NewCops: disable

Layout/AccessModifierIndentation:
EnforcedStyle: outdent
Expand Down
2 changes: 1 addition & 1 deletion lib/ramsey_cop/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RamseyCop
VERSION = "0.22.0".freeze
VERSION = "0.23.0".freeze
end
5 changes: 5 additions & 0 deletions spec/ramsey_cop_spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c50b592

Please sign in to comment.