Avoid more than 3 levels of block nesting. Open
if opts[:dry_run] puts " **** This is a dry-run, nothing updated, skipping. ****" else service.add_resource!(matching_stack) reconnected += 1
This cop checks for excessive nesting of conditional and looping constructs.
You can configure if blocks are considered using the
option. When set to
false (the default) blocks are not counted
towards the nesting level. Set to
true to count blocks as well.
The maximum level of nesting allowed is configurable.