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

First attempt at linter #83

Merged
merged 3 commits into from
Apr 17, 2023
Merged

First attempt at linter #83

merged 3 commits into from
Apr 17, 2023

Conversation

gsnedders
Copy link
Member

@gsnedders gsnedders commented Jul 3, 2016

This probably needs work. And might not work. And should probably have some Travis script first. (i.e., don't merge it)

Probably good enough.

@gsnedders
Copy link
Member Author

I don't know if the only reason to vendor funcpaserlib was vlasovskikh/funcparserlib#44, or whether this was to avoid external deps.

@gsnedders gsnedders requested review from jgraham and Ms2ger April 3, 2023 15:39
lint_lib/parser.py Outdated Show resolved Hide resolved
@gsnedders gsnedders force-pushed the linter branch 2 times, most recently from 12e7141 to 0d5c740 Compare April 6, 2023 12:30
@gsnedders
Copy link
Member Author

I don't know if the only reason to vendor funcpaserlib was vlasovskikh/funcparserlib#44, or whether this was to avoid external deps.

Pretty sure it was avoiding external deps.

@gsnedders
Copy link
Member Author

FWIW: if nobody reviews this and nobody objects, I'm just going to land this in a week so we avoid regressing these things yet again.

lint_lib/lint.py Outdated
Comment on lines 249 to 255
if not parsed:
return
Copy link
Contributor

Choose a reason for hiding this comment

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

If this does something, it should do it in a less cryptic way

Copy link
Member Author

Choose a reason for hiding this comment

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

@Ms2ger PTAL at the comments that are there now

lint_lib/parser.py Outdated Show resolved Hide resolved
lint_lib/parser.py Outdated Show resolved Hide resolved
gsnedders and others added 2 commits April 14, 2023 22:33
This checks that we have the right headers, in the right order, and
checks for both duplicate headers and duplicate tests.
lint_lib/lint.py Outdated Show resolved Hide resolved
Copy link
Contributor

@Ms2ger Ms2ger left a comment

Choose a reason for hiding this comment

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

wfm

@gsnedders gsnedders merged commit be416cd into html5lib:master Apr 17, 2023
@gsnedders gsnedders deleted the linter branch April 17, 2023 15:57
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