Skip to content

Commit 4940529

Browse files
authored
Merge pull request #49 from msalway/update_readme
Update README for recent changes
2 parents a548083 + af8b208 commit 4940529

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,15 @@ puppet-lint -l chars_per_indent_4.rb puppet-mysql/manifests/init.pp
3535

3636
## Acceptable Identation
3737

38-
* indent should increase by one step the line after each opened brace (square, curly, paren)
38+
* indent should increase by one step the line after each opened brace (square, curly, paren).
3939
* indent should decrease by one step the line of every closed brace.
40+
* if multiple pairs of braces are opened and closed on the same two lines the indent should only increase once.
4041
* indent should increase by one step the line after a resource title, unless it already increased due to a bracket.
4142
* indent should decrease by one step the line after the end of a resource due to semicolon, if it was indented for resource title.
43+
* if the semicolon is the only element on the line then the indent decreases on the semicolon line instead of the line after.
4244
* indent should decrease by one step the line of the end of a resource due to right curly brace, if it was indented for resource title, and not ended by a semicolon.
4345
* indent should increase by one step the line after an equals `=` or farrow `=>` that ends a line, but only for that one line.
46+
* heredoc contents should be indented by one step.
4447

4548
see `spec/fixtures/pass/` for good indentation examples.
4649

0 commit comments

Comments
 (0)