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
CaseIndentation:
IndentWhenRelativeTo: end
TrivialAccessors:
ExactNameMatch: true

View file

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

View file

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

View file

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