mirror of
https://github.com/inspec/inspec
synced 2024-11-10 23:24:18 +00:00
Ignore Rubocop checks
Signed-off-by: Miah Johnson <miah@chia-pet.org>
This commit is contained in:
parent
c579ed3097
commit
68e540a15a
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue