Disable rubocop for begin block

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
Vasu1105 2021-03-25 22:00:12 +05:30
parent edf8d4d7ed
commit a2d3218536

View file

@ -170,7 +170,7 @@ module Inspec::Reporters
end end
def all_unique_controls def all_unique_controls
@unique_controls ||= begin @unique_controls ||= begin # rubocop:disable Style/RedundantBegin
run_data[:profiles].flat_map do |profile| run_data[:profiles].flat_map do |profile|
profile[:controls] profile[:controls]
end.uniq end.uniq