Skip to content

Dart: use bullet points to document parameters in comments#1765

Merged
pwrobeldev merged 6 commits into
masterfrom
pwrobeldev/dart-adjust-comments-for-params
Jun 13, 2025
Merged

Dart: use bullet points to document parameters in comments#1765
pwrobeldev merged 6 commits into
masterfrom
pwrobeldev/dart-adjust-comments-for-params

Conversation

@pwrobeldev

Copy link
Copy Markdown
Contributor

The rendered comments for constructors of structures contained
redundant white-spaces. Because of that DartDoc was not able to
render the description of parameters properly.

Moreover, the generated description of parameters did not contain
bullet points -- they were only separated with new lines.

This change:

  • removes the redundant white-spaces
  • introduces usage of bullet points for comments of params to improve
    readability

The additional whitespaces caused problems for DartDoc.
The rendered comments were invalid -- parameters were
not properly listed.

This commit removes redundant whitespaces and aligns the
behavior with rendering of function comments.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
DartDoc uses markdown. The bullet points should be used
for describing parameters of constructors and functions.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
DartDoc uses markdown. The bullet points should be used
for describing parameters of constructors and functions.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
DartDoc uses markdown. The bullet points should be used
for describing parameters of constructors and functions.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
DartDoc uses markdown. The bullet points should be used
for describing parameters of constructors and functions.

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
@pwrobeldev
pwrobeldev requested a review from Hsilgos June 12, 2025 12:52
@pwrobeldev
pwrobeldev merged commit e134af5 into master Jun 13, 2025
11 checks passed
@pwrobeldev
pwrobeldev deleted the pwrobeldev/dart-adjust-comments-for-params branch June 13, 2025 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants