mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
lint
This commit is contained in:
parent
b58a4b3f43
commit
090281fb0b
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue