README.md in puppet-lint-manifest_whitespace-check-0.1.2 vs README.md in puppet-lint-manifest_whitespace-check-0.1.4
- old
+ new
@@ -17,14 +17,22 @@
## Usage
This plugin provides a number of new checks to `puppet-lint`.
-### manifest_whitespace_class_opening_curly_brace
+### manifest_whitespace_opening_bracket_after
-> There should be a single space before the opening curly brace of a class body.
+> There should be a single space or single newline after an opening curly brace
+Exceptions: other brackets or comma's
+
+### manifest_whitespace_opening_bracket_before
+
+> There should be a single space before an opening bracket
+
+Exceptions: other brackets
+
Good examples:
```puppet
class myclass (
# the parameters
@@ -33,10 +41,18 @@
}
class myclass {
# the body
}
+
+class myclass {
+ $value = [{ 'key' => 'value' }]
+
+ if somecondition {
+ class { 'someclass': }
+ }
+}
```
Bad examples:
```puppet
@@ -54,9 +70,15 @@
}
class myclass
{
# the body
+}
+
+class myclass {
+ if somecondition{
+ class{ 'someclass': }
+ }
}
```
### manifest_whitespace_missing_newline_end_of_file