cqfn / pdd

Command line toolkit for collecting TODO markers from your code, known as Puzzle Driven Development (PDD)
https://www.0pdd.com
MIT License
76 stars 25 forks source link

Puzzle description should be supposed to be ended in case of empty line presented #234

Closed pnatashap closed 7 months ago

pnatashap commented 7 months ago

Example of the comment

# @todo #1054 Extract list of exclusions to a common profile
#
# Full list of autoconfiguration classes:
# https://docs.spring.io/spring-boot/docs/2.2.x/reference/html/appendix-auto-configuration-classes.html
# The difference between test profile is that we don't need H2ConsoleAutoConfiguration`

Expected result (example - https://github.com/php-coder/mystamps/issues/1138): One puzzle with text from the first line only Extract list of exclusions to a common profile Real result (example https://github.com/php-coder/mystamps/issues/1594): One puzzle with text from all comment: " Extract list of exclusions to a common profile Full list of autoconfiguration classes: https://docs.spring.io/spring-boot/docs/2.2.x/reference/html/appendix-auto-configuration-classes.html The difference between test profile is that we don't need H2ConsoleAutoConfiguration

Originally created in https://github.com/yegor256/0pdd/issues/379

php-coder commented 7 months ago

Thanks for opening the issue!

pnatashap commented 7 months ago

@yegor256 do you agree with the title?

yegor256 commented 7 months ago

@pnatashap yes, I agree

php-coder commented 7 months ago

BTW there is #163 that looks related.

pnatashap commented 7 months ago

Will take a look in both of them

pnatashap commented 7 months ago

BTW this was a feature, as there is a test that empty line is legal https://github.com/cqfn/pdd/blob/master/test_assets/puzzles/44-660e9d6f