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 for ALEs without blank lines between sections #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

reinecke
Copy link
Member

@reinecke reinecke commented Aug 2, 2023

The header parser used a blank line as its exit condition for the end of the section. This meant that if there was no blank line between the end of the Header section and the Column section, these ALEs would fail with the error Invalid Heading line: Column.

The new parser stops header processing when it detects a new section.

This PR also functionally decomposes the main processing loop a bit more in an attempt to make it more readable.

… explicit error if FPS is missing in header rather than letting an implicit NameError come up later

Signed-off-by: Eric Reinecke <[email protected]>
Signed-off-by: Eric Reinecke <[email protected]>
@reinecke reinecke force-pushed the fix/ales-without-blank-lines-beteen-sections branch from 71aa618 to b93bad4 Compare August 2, 2023 22:24
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.

1 participant