Make rubocop TrivialAccessors warnings less annoying
This commit is contained in:
parent
18884cac95
commit
ce914e508a
4 changed files with 2 additions and 3 deletions
|
@ -51,3 +51,5 @@ FormatString:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
CaseIndentation:
|
CaseIndentation:
|
||||||
IndentWhenRelativeTo: end
|
IndentWhenRelativeTo: end
|
||||||
|
TrivialAccessors:
|
||||||
|
ExactNameMatch: true
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue