This commit is contained in:
Dominik Richter 2015-10-26 04:18:06 +01:00
parent b58a4b3f43
commit 090281fb0b
2 changed files with 1 additions and 3 deletions

View file

@ -138,12 +138,10 @@ end
module Inspec::DSLHelper module Inspec::DSLHelper
def self.bind_dsl(scope) def self.bind_dsl(scope)
# rubocop:disable Lint/NestedMethodDefinition
(class << scope; self; end).class_exec do (class << scope; self; end).class_exec do
include Inspec::DSL include Inspec::DSL
include Inspec::GlobalDSL include Inspec::GlobalDSL
end end
# rubocop:enable all
end end
end end

View file

@ -70,7 +70,7 @@ module Inspec
def check # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity def check # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
no_errors = true no_errors = true
no_warnings = true no_warnings = true
warn = lamba { |msg| warn = lambda { |msg|
@logger.warn(msg) @logger.warn(msg)
no_warnings = false no_warnings = false
} }