Skip to content

Wrap words #10

@gajus

Description

@gajus

The auto-wrapping functionality should be able to wrap lines respecting word barriers.

In the current output, string is chunked into rows simply using length delimiter, e.g.

║ Message                                                ║
╟────────────────────────────────────────────────────────╢
║ Definition for rule 'jsdoc/check-returns-types' wa     ║
║ s not found                                            ║
╟────────────────────────────────────────────────────────╢
║ Definition for rule 'jsdoc/check-types' was not fo     ║
║ und                                                    ║
╟────────────────────────────────────────────────────────╢
║ Definition for rule 'jsdoc/require-param' was not      ║
║ found                                                  ║
╟────────────────────────────────────────────────────────╢
║ Definition for rule 'jsdoc/require-returns-descrip     ║
║ tion' was not found                                    ║
╟────────────────────────────────────────────────────────╢
║ Definition for rule 'jsdoc/require-returns-types'      ║
║ was not found                                          ║
╟────────────────────────────────────────────────────────╢
║ Variables within the same declaration block should     ║
║ be sorted alphabetically                               ║
╟────────────────────────────────────────────────────────╢
║ "lintFiles" is defined but never used                  ║
╟────────────────────────────────────────────────────────╢
║ Missing JSDoc @returns for function                    ║

It should use word (space) or special character barrier when possible, e.g.

║ Message                                                ║
╟────────────────────────────────────────────────────────╢
║ Definition for rule 'jsdoc/check-returns-types'        ║
║ was not found                                          ║
╟────────────────────────────────────────────────────────╢
║ Definition for rule 'jsdoc/check-types' was not        ║
║ found                                                  ║
╟────────────────────────────────────────────────────────╢
║ Definition for rule 'jsdoc/require-param' was not      ║
║ found                                                  ║
╟────────────────────────────────────────────────────────╢
║ Definition for rule                                    ║
║ 'jsdoc/require-returns-description' was not found      ║
╟────────────────────────────────────────────────────────╢
║ Definition for rule 'jsdoc/require-returns-types'      ║
║ was not found                                          ║
╟────────────────────────────────────────────────────────╢
║ Variables within the same declaration block should     ║
║ be sorted alphabetically                               ║
╟────────────────────────────────────────────────────────╢
║ "lintFiles" is defined but never used                  ║
╟────────────────────────────────────────────────────────╢
║ Missing JSDoc @returns for function                    ║

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions