Skip to content

Commit

Permalink
Add a HEREDOC example
Browse files Browse the repository at this point in the history
When the last parameter is HEREDOC the solution to this linter
is really not obvious.

Add an explicit example.
  • Loading branch information
traylenator committed Jun 4, 2024
1 parent fbf287d commit 90299d5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ file { '/etc/sudoers':
}
```

```puppet
file { '/etc/file':
ensure => file,
content => @(EOF)
Content
| EOF
}
```


#### What you should have done

```puppet
Expand All @@ -48,6 +58,14 @@ file { '/etc/sudoers':
}
```

```puppet
file { '/etc/file':
ensure => file,
content => @(EOF),
Content
| EOF
}
```

#### Disabling the check

Expand Down

0 comments on commit 90299d5

Please sign in to comment.