Skip to content

Commit 8fabe3d

Browse files
committed
update rubocop
1 parent 9308e43 commit 8fabe3d

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.rubocop.yml

+6
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ inherit_gem:
44
AllCops:
55
DisplayCopNames: true
66
TargetRubyVersion: 2.5
7+
8+
Naming/UncommunicativeMethodParamName:
9+
AllowedNames: ["x", "y", "z"]
10+
11+
RSpec/EmptyLineAfterHook:
12+
Enabled: false

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
source "https://rubygems.org"
44
gemspec
5+
6+
gem "rubocop-config-umbrellio", github: "umbrellio/code-style"

memery.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
lib = File.expand_path("../lib", __FILE__)
3+
lib = File.expand_path("lib", __dir__)
44
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
55
require "memery/version"
66

spec/memery_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ class << self
7878
end
7979

8080
RSpec.describe Memery do
81+
subject(:a) { A.new }
82+
8183
before { CALLS.clear }
8284
before { B_CALLS.clear }
8385

84-
subject(:a) { A.new }
85-
8686
context "methods without args" do
8787
specify do
8888
values = [ a.m, a.m_nil, a.m, a.m_nil ]

0 commit comments

Comments
 (0)