in rules/resource_block.go [180:199]
func (b *ResourceBlock) gaped() bool {
ranges := []*hcl.Range{
b.HeadMetaArgs.GetRange(),
b.Args.GetRange(),
b.NestedBlocks.GetRange(),
b.TailMetaArgs.GetRange(),
b.TailMetaNestedBlocks.GetRange(),
}
lastEndLine := -2
for _, r := range ranges {
if r == nil {
continue
}
if r.Start.Line-lastEndLine < 2 {
return false
}
lastEndLine = r.End.Line
}
return true
}