diff --git a/lib/inspec/dsl.rb b/lib/inspec/dsl.rb index 31a0cda56..cd40995f2 100644 --- a/lib/inspec/dsl.rb +++ b/lib/inspec/dsl.rb @@ -138,12 +138,10 @@ end module Inspec::DSLHelper def self.bind_dsl(scope) - # rubocop:disable Lint/NestedMethodDefinition (class << scope; self; end).class_exec do include Inspec::DSL include Inspec::GlobalDSL end - # rubocop:enable all end end diff --git a/lib/inspec/profile.rb b/lib/inspec/profile.rb index 5ce6ecbaf..8ae4d6da7 100644 --- a/lib/inspec/profile.rb +++ b/lib/inspec/profile.rb @@ -70,7 +70,7 @@ module Inspec def check # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity no_errors = true no_warnings = true - warn = lamba { |msg| + warn = lambda { |msg| @logger.warn(msg) no_warnings = false }