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 ce6c209
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ file { '/etc/sudoers':
}
```

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

#### What you should have done

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

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

#### Disabling the check

Expand Down

0 comments on commit ce6c209

Please sign in to comment.