Skip to content

add spell check to markdown files #239

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

Merged
merged 4 commits into from
Feb 7, 2020
Merged

add spell check to markdown files #239

merged 4 commits into from
Feb 7, 2020

Conversation

juancarlostong
Copy link
Contributor

@juancarlostong juancarlostong commented Feb 6, 2020

Summary

  • Adds spellchecker to *.md

This is what it looks like when it finds a spelling error (aborts build):
https://travis-ci.org/optimizely/ruby-sdk/jobs/647067279

install:
- npm i -g markdown-spellcheck
before_script:
- wget --quiet https://gist.githubusercontent.com/juancarlostong/dad02feeebc8763af35b4fdc717cf7a2/raw/29e085302a9418edbefba15d8f790fa76e0a89d5/.spelling
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opting for a simple wget rather than the more expensive cloning of an entire repo. we only need this one file anyway and there's no secrets in it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it have to be node? Is there a more performant platform we can use?

Also, I'd prefer if we can run this in parallel to the other stages so we don't have to wait for it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it runs in parallel within the 'Lint markdown files' stage. in practice:
Screen Shot 2020-02-07 at 10 36 26 AM

here you can see it finishes in 39 seconds, which is faster than the other job that ran in parallel (43s) meaning that it does not add to the existing build time

@juancarlostong juancarlostong requested a review from jaeopt February 6, 2020 21:44
@juancarlostong
Copy link
Contributor Author

if this PR looks good, i will create similar PRs on all the remaining SDK repos

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.471% when pulling ddbd143 on jctong/mdspell into 44d5859 on master.

Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! I have some questions below, not blocking though.

install:
- npm i -g markdown-spellcheck
before_script:
- wget --quiet https://gist.githubusercontent.com/juancarlostong/dad02feeebc8763af35b4fdc717cf7a2/raw/29e085302a9418edbefba15d8f790fa76e0a89d5/.spelling
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it have to be node? Is there a more performant platform we can use?

Also, I'd prefer if we can run this in parallel to the other stages so we don't have to wait for it

@juancarlostong juancarlostong merged commit 7ee6c64 into master Feb 7, 2020
@juancarlostong juancarlostong deleted the jctong/mdspell branch February 7, 2020 19:59
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.

4 participants