Change AccessModifierIndentation cop preference

This commit is contained in:
John Backus 2016-03-19 12:35:50 -07:00
parent c813abaf14
commit a36fd4f88c
4 changed files with 6 additions and 12 deletions

View file

@ -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:

View file

@ -24,7 +24,7 @@ module Mutant
text
end
private
private # rubocop:disable AccessModifierIndentation
# Initialize null color
#

View file

@ -33,7 +33,7 @@ module Mutant
super()
end
private
private
# Emit instance variable as attribute send
#

View file

@ -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