Skip to content
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

Fix JSDoc comments for @param tags so that there is a hypen before description #6634

Merged
merged 4 commits into from
May 20, 2020

Conversation

ShukantPal
Copy link
Member

@ShukantPal ShukantPal commented May 19, 2020

Our code had a lot of

@param {ParamType} paramName description

documentations. However, there should be a hyphen before the description (see https://github.com/microsoft/tsdoc & open the TSDoc playground and try removing the hyphen, a warning will be logged).

I wanted to do this change so that webdoc would stop logging warnings. Also, @bigtimebuddy said that we should follow the TSDoc standard.

Description of change

I used /(@param)( )+\{([^}])+\}( )+(\[([\S ])+\]( )+)?\w+([ ])+[ \w]/g to find all the instances of these inconsistencies.

Reviewers

Make sure I didn't make a change to any code and/or incorrectly changed the docs.

Pre-Merge Checklist
  • Tests and/or benchmarks are included
  • Documentation is changed or added
  • Lint process passed (npm run lint)
  • Tests passed (npm run test)

…n b/w the closing bracket and the description.

NOTE: I used this (@param)( )+\{([^}])+\}( )+(\[([\S ])+\]( )+)?\w+([ ])+[ \w] to search for em.
@codecov-commenter
Copy link

codecov-commenter commented May 19, 2020

Codecov Report

Merging #6634 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #6634   +/-   ##
=======================================
  Coverage   82.34%   82.34%           
=======================================
  Files          37       37           
  Lines        1897     1897           
=======================================
  Hits         1562     1562           
  Misses        335      335           
Impacted Files Coverage Δ
packages/interaction/src/InteractionData.js 97.36% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f0b123...14ac897. Read the comment docs.

@bigtimebuddy
Copy link
Member

Not sure what's up with the GitHub Actions. 🤷‍♂️

@bigtimebuddy bigtimebuddy added the ✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t label May 20, 2020
@bigtimebuddy bigtimebuddy merged commit ef8f397 into dev May 20, 2020
@bigtimebuddy bigtimebuddy deleted the dev-comments branch May 20, 2020 16:23
@bigtimebuddy
Copy link
Member

Thanks @SukantPal!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants