This rule ensures that there are no extra blank lines.
// file start with blank lines.
resource "null_resource" "foo" {
}
resource "null_resource" "foo" {
}
// file start with more than one blank lines.
resource "null_resource" "foo" {
}
// more than two blank lines between blocks.
resource "null_resource" "bar" {
}
resource "null_resource" "null" {
// block start with blank line
trigger {
foo = "bar"
}
}
resource "null_resource" "null" {
trigger {
foo = "bar"
}
// block end with blank line
}