Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 623 Bytes

formatter_blank_line.md

File metadata and controls

52 lines (36 loc) · 623 Bytes

formatter_blank_line

This rule ensures that there are no extra blank lines.

Example

// 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

}