-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reflow long lines which don't end with period
$ cat x.go package main // Unlike the above comment block, only the current line in this comment block has length greater than the // target maximum line length // but since the previous line doesn't end with a period, it should be reflown with this line // despite both the lines being shorter than the target maximum line length. $ golines --shorten-comments x.go package main // Unlike the above comment block, only the current line in this comment block has length greater // than the // target maximum line length // but since the previous line doesn't end with a period, it should be reflown with this line // despite both the lines being shorter than the target maximum line length. The modified behavior is to reflow long lines which don't end with period with the consecutive lines, irrespective of the latter being long or not. $ golines --shorten-comments x.go package main // Unlike the above comment block, only the current line in this comment block has length greater // than the target maximum line length but since the previous line doesn't end with a period, it // should be reflown with this line despite both the lines being shorter than the target maximum // line length.
- Loading branch information
Showing
3 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters