-
Notifications
You must be signed in to change notification settings - Fork 536
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
Remove Extra NewLines between Comments and Inputs/Outputs to fix MarkDownLint Warnings #66
Conversation
@@ -27,6 +27,9 @@ func Print(document *doc.Doc, settings settings.Settings) (string, error) { | |||
} | |||
|
|||
if document.HasOutputs() { | |||
if document.HasInputs() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this block down between the sorting and the call to printOutputs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@X-Guardian thanks for providing this fix 👍 Have you run |
@metmajer, the markdown tests fail for me, but I think it is because I am running them on Windows and it is a \r\n issue. Can you confirm? |
@X-Guardian I've run the tests on my machine and some tests fail. Good news, there's a pattern: the comment in This reminds me that CircleCI should actually run a pipeline that shows the test execution to you in this pull request. I'll try to have this fixed. |
@X-Guardian CircleCI should now run a pipeline when you add to this pull request. Want to give it a try? |
Cheers @metmajer, I added another commit, but no CircleCI was triggered... |
Thanks for the update @X-Guardian and your continued support. I've contacted to look into this since I don't have admin rights. |
@metmajer, I wonder if your CircleCI change will only trigger on a new pull request? Shall I create one to test? |
@X-Guardian I haven't thought about this, while I would strongly assume that the pipeline is triggered by a commit, it's worth a try. Thanks! |
@X-Guardian we've been able to fix the missing CircleCI builds for pull requests in #71. If you take a look, you should now an indicator (a green check mark or a red cross) indicating the status of your commit. By clicking on the indicator, you'll see an overlay where you can inspect the stages of the build. Beware that, for looking at the tests, I had to scroll down in the overlay. |
@metmajer, CircleCI now working on commits, and I've fixed all the spurious blank lines from the tests. |
@X-Guardian thanks for staying on it. Appreciate your contribution! |
Prerequisites
Put an
x
into the box(es) that apply:For more information, see the Contributing Guide.
Description
Currently, if a main.tf has comments and the module has inputs and/or outputs, an additional newline is added between the comments and the inputs/outputs in the markdown. This is reported by MarkDownLint as a warning:
This pull request removes those additional newlines.
Checklist
Put an
x
into all boxes that apply:Tests
make test
.I've modified the markdown golden test files, but the markdown tests fail for me, but I think it is because I am running them on Windows and it is a \r\n issue. Can someone confirm?
Documentation
Code Style