tools/reconnect_service_orchestration_stacks.rb
Avoid more than 3 levels of block nesting. Open
Open
if opts[:dry_run]
puts " **** This is a dry-run, nothing updated, skipping. ****"
else
service.add_resource!(matching_stack)
reconnected += 1
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Checks for excessive nesting of conditional and looping constructs.
You can configure if blocks are considered using the CountBlocks
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.