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

Add missing tests for custom_lint #35

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Add missing tests for custom_lint #35

merged 1 commit into from
Aug 10, 2023

Conversation

n-bernat
Copy link
Contributor

@n-bernat n-bernat commented Aug 10, 2023

// expect_lint allows us to specify that on the following line there should be a match. It returns an error if the line below that is not matched. If it's matched then this line is ignored.

Comment on lines +36 to +40
reporter.reportErrorForOffset(
code,
node.firstTokenAfterCommentAndMetadata.offset,
node.end,
);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need a custom match for a specific offset, because otherwise in this case it would also match a comment above it

Copy link
Collaborator

@solid-yuriiprykhodko solid-yuriiprykhodko left a comment

Choose a reason for hiding this comment

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

LGTM, good find

@solid-yuriiprykhodko solid-yuriiprykhodko merged commit dd98c87 into solid-software:release-v0.1.0 Aug 10, 2023
1 check passed
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