-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reporting incorrect line number #5
Comments
what I get # doc class agent( $group = '', ){ } == Example run == $ puppet-lint init.pp ERROR: agent not in autoload module layout on line 2 WARNING: indent should be 2 chars and is 0 on line 3 closing worksforme |
Can you re-open the issue? It seems that line number is reported incorrectly: === Original file ===
== Example run ==
Interesting thing - when I run puppet-lint -f on this file it's being fixed correctly. |
From what I can see in the code, using |
line 3 is |
I'm really sorry - wrong c&p:
I have the same issue with the following file:
|
could you give me your include puppet-lint version and ruby version for testing |
|
Tested also on
|
Thank you for creating this plug-in. Line number is off by one on all my files ERROR: agent not in autoload module layout on line 2
|
thanks for the reports, i've been able to locate the source of the issue. token.line for a newline token changed from puppet-lint 1.0.1 to 1.1.0, causing this issue. I'll be releasing an updated gem to fix it. |
released 2.0.4 to fix this |
Thank you! Line numbers are reported correctly with 2.0.4. |
=== Original file ===
== Example run ==
The text was updated successfully, but these errors were encountered: