Make rubocop TrivialAccessors warnings less annoying

This commit is contained in:
Ben Hollis 2014-05-26 16:53:23 -07:00
parent 18884cac95
commit ce914e508a
4 changed files with 2 additions and 3 deletions

View file

@ -51,3 +51,5 @@ FormatString:
Enabled: false Enabled: false
CaseIndentation: CaseIndentation:
IndentWhenRelativeTo: end IndentWhenRelativeTo: end
TrivialAccessors:
ExactNameMatch: true

View file

@ -162,7 +162,6 @@ module Middleman
end end
# Whether or not there has been a value set beyond the default # Whether or not there has been a value set beyond the default
# rubocop:disable TrivialAccessors
def value_set? def value_set?
@value_set @value_set
end end

View file

@ -88,7 +88,6 @@ module Middleman
module ProxyResourceInstanceMethods module ProxyResourceInstanceMethods
# Whether this page is a proxy # Whether this page is a proxy
# @return [Boolean] # @return [Boolean]
# rubocop:disable TrivialAccessors
def proxy? def proxy?
@proxied_to @proxied_to
end end

View file

@ -47,7 +47,6 @@ module Middleman
# @api private # @api private
# @param [String] buf_was # @param [String] buf_was
# @return [void] # @return [void]
# rubocop:disable TrivialAccessors
def restore_buffer(buf_was) def restore_buffer(buf_was)
@_out_buf = buf_was @_out_buf = buf_was
end end