Ignore Rubocop checks

Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
Miah Johnson 2019-06-03 23:21:26 -07:00 committed by Ryan Davis
parent c579ed3097
commit 68e540a15a
3 changed files with 4 additions and 4 deletions

View file

@ -108,7 +108,7 @@ module Inspec
@command_class = command_class
end
def get_bindings # rubocop:disable Style/AccessorMethodName
def get_bindings # rubocop:disable Naming/AccessorMethodName
binding
end

View file

@ -6,7 +6,7 @@ require "inspec/utils/deprecation"
module Inspec
class Attribute
# This only exists to create the Inspec::Attribute::DEFAULT_ATTRIBUTE symbol with a class
class DEFAULT_ATTRIBUTE; end # rubocop: disable Style/ClassAndModuleCamelCase
class DEFAULT_ATTRIBUTE; end # rubocop: disable Naming/ClassAndModuleCamelCase
end
end
@ -82,7 +82,7 @@ module Inspec
# This special class is used to represent the value when an input has
# not been assigned a value. This allows a user to explicitly assign nil
# to an input.
class NO_VALUE_SET # rubocop: disable Style/ClassAndModuleCamelCase
class NO_VALUE_SET # rubocop: disable Naming/ClassAndModuleCamelCase
def initialize(name)
@name = name

View file

@ -45,7 +45,7 @@ describe Inspec::Input do
ruby_code_for_eval = ruby_code.sub(/attribute\(/, "Inspec::Input.new(")
# This will throw exceptions if there is a problem
new_attr = eval(ruby_code_for_eval) # Could use ripper!
new_attr = eval(ruby_code_for_eval) # rubocop:disable Security/Eval # Could use ripper!
new_attr.value.must_equal 80
end
end