-
Notifications
You must be signed in to change notification settings - Fork 26
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
Use blank lines instead of indentation as issue body markers #163
Comments
@mbao01 WDYT? |
Thanks so much, @firedev. I think it is a good idea, currently, this behaviour works following our marker formatting (i.e space after the beginning of the todo marker. This works ✅
Output:
This proposal will require us to rework how we parse next-line content for a puzzle. It looks good @yegor256 Desired Output:
What do you think @firedev? |
When you convert a block of code to a ticket you need to add spaces manually, you can't just slap a todo market and move on as you normally would: # TODO #1 Refactor the following
# xspecify "failing test" do
# here too? or keep 2 spaces.
# oops, 3 spaces here, whatever
# end I believe "significant whitespace in comments" is a brittle concept. I personally strip all extra whitespace from code. All double spaces, and double empty lines are replaces with a single newline or space. Maybe this is why I had issues adding todos. If you use blank line or the beginning of code as end markers the process becomes frictionless. You work as you've used to and |
@yegor256 I am trying to implement this and actually went through the code and fixed all todos. And then instructed my teammates to add a blank line after @0pdd is not creating issues yet though yegor256/0pdd#304 |
@yegor256 please see comment above |
@mbao01 which one exactly? |
@yegor256 I want to confirm if we are going in this direction for puzzle markers. Based on the thread, is this something we feel confident about? |
@mbao01 I think that the idea is good. Let's try to implement it and see how our tests will react to it. If there won't be a lot of damage to them, let's release. |
Guys, please, could you introduce such changes in backward-compatible format? It requires users to update their code base. Sometimes, it's impossible and, anyway, how users of pdd/0pdd would know that such changes will happen soon? When 0pdd gets updated, we just have a new version and only because something is broken, I found that there was such a change :-( It seems like, at least couple of the newly created duplicated issues are caused by this change. See yegor256/0pdd#366 |
@php-coder @yegor256 I couldn't make it work with the double space after the marker. I don't see my editors formatting text like this when commenting code. |
Indented lines after the first comment are being removed by automatic code for matters like
standardrb
andrubocop
.Here is a proposal. White space and indentation is not reliable. Treat non-interrupted comment blocks starting with an issue marker as the issue body. Until the first empty line or the beginning of the next code block:
Note: The body should not start with the blank line in this example. Like with
git commit
the resulting body should start with the first meaningful line.Originally posted by @firedev in #96 (comment)
The text was updated successfully, but these errors were encountered: