Skip to content

Commit

Permalink
update rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed Aug 31, 2018
1 parent 9308e43 commit 8fabe3d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ inherit_gem:
AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.5

Naming/UncommunicativeMethodParamName:
AllowedNames: ["x", "y", "z"]

RSpec/EmptyLineAfterHook:
Enabled: false
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

source "https://rubygems.org"
gemspec

gem "rubocop-config-umbrellio", github: "umbrellio/code-style"
2 changes: 1 addition & 1 deletion memery.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

lib = File.expand_path("../lib", __FILE__)
lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "memery/version"

Expand Down
4 changes: 2 additions & 2 deletions spec/memery_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ class << self
end

RSpec.describe Memery do
subject(:a) { A.new }

before { CALLS.clear }
before { B_CALLS.clear }

subject(:a) { A.new }

context "methods without args" do
specify do
values = [ a.m, a.m_nil, a.m, a.m_nil ]
Expand Down

0 comments on commit 8fabe3d

Please sign in to comment.