Skip to content

Lint: Improve logic for validating algorithm steps. - #727

Merged
fdwr merged 2 commits into
webmachinelearning:mainfrom
inexorabletash:lint-step-endings
Jul 17, 2024
Merged

Lint: Improve logic for validating algorithm steps.#727
fdwr merged 2 commits into
webmachinelearning:mainfrom
inexorabletash:lint-step-endings

Conversation

@inexorabletash

@inexorabletash inexorabletash commented Jul 16, 2024

Copy link
Copy Markdown
Contributor

Previously, the test ensuring that algorithm steps end in '.' or ':' looked at the Bikeshed source. This didn't handle word wrapping. While we prefer not to word wrap, that shouldn't cause this test to fail.

Make the test analyse the DOM instead.

Also, fix some unrelated Bikeshed/lint failures introduced in f08f9f7


Preview | Diff

@inexorabletash
inexorabletash requested review from fdwr and huningxin July 16, 2024 20:55
@inexorabletash

Copy link
Copy Markdown
Contributor Author

Oops - I let some lint failures sneak in f5fb055 by following WebIDL's source style rather than our source style.

But the lint logic should be improved anyway, so improve that.

@huningxin & @fdwr - could you please review and merge if it looks okay? I'll work on getting the lint tool hooked up as a github action.

Previously, the test ensuring that algorithm steps end in '.' or ':'
looked at the Bikeshed source. This didn't handle word wrapping. While
we prefer not to word wrap, that shouldn't cause this test to fail.

Make the test analyse the DOM instead.

@huningxin huningxin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@fdwr fdwr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍

@fdwr
fdwr merged commit ac83a20 into webmachinelearning:main Jul 17, 2024
github-actions Bot added a commit that referenced this pull request Jul 17, 2024
SHA: ac83a20
Reason: push, by fdwr

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@inexorabletash
inexorabletash deleted the lint-step-endings branch July 17, 2024 16:37
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.

3 participants