Change AccessModifierIndentation
cop preference
This commit is contained in:
parent
c813abaf14
commit
a36fd4f88c
4 changed files with 6 additions and 12 deletions
|
@ -17,14 +17,8 @@ CollectionMethods:
|
|||
find: 'detect'
|
||||
find_all: 'select'
|
||||
|
||||
# Do not force public/protected/private keyword to be indented at the same
|
||||
# level as the def keyword. My personal preference is to outdent these keywords
|
||||
# because I think when scanning code it makes it easier to identify the
|
||||
# sections of code and visually separate them. When the keyword is at the same
|
||||
# level I think it sort of blends in with the def keywords and makes it harder
|
||||
# to scan the code and see where the sections are.
|
||||
AccessModifierIndentation:
|
||||
Enabled: false
|
||||
EnforcedStyle: outdent
|
||||
|
||||
# Limit line length
|
||||
LineLength:
|
||||
|
|
|
@ -24,7 +24,7 @@ module Mutant
|
|||
text
|
||||
end
|
||||
|
||||
private
|
||||
private # rubocop:disable AccessModifierIndentation
|
||||
|
||||
# Initialize null color
|
||||
#
|
||||
|
|
|
@ -33,7 +33,7 @@ module Mutant
|
|||
super()
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
# Emit instance variable as attribute send
|
||||
#
|
||||
|
|
|
@ -16,17 +16,17 @@ RSpec.describe Mutant::Matcher::Methods::Instance, '#call' do
|
|||
|
||||
private :method_d
|
||||
|
||||
public
|
||||
public
|
||||
|
||||
def method_a
|
||||
end
|
||||
|
||||
protected
|
||||
protected
|
||||
|
||||
def method_b
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
def method_c
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue