You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What it tries to do is set the next token in a "linked list" but on the first element that doesn't work. Interestingly there is a case if the whitespace is the last, but not the first.
I've opened #82 but this doesn't have tests yet so it's a draft.
Describe the Bug
Puppet lint will crash when attempting to fix the first line, if it contains only whitespace
Expected Behavior
This should be treated like a standard
trailing_whitespace
linter violation.Steps to Reproduce
Environment
Additional Context
puppet-lint version: 3.0.1
ruby version: 3.0.4-p208
platform: x86_64-linux-gnu
file path: file.pp
file contents:
error:
The text was updated successfully, but these errors were encountered: