-
-
Notifications
You must be signed in to change notification settings - Fork 942
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 ranges for warnings #5725
Add ranges for warnings #5725
Conversation
You're doing amazing work extending the capabilities of both PostCSS and Stylelint with this range stuff! |
I was running into issues trying to determine the end position for functions and other nodes provided by postcss-value-parser. I've opened up a PR there that will resolve this problem: TrySound/postcss-value-parser#83 |
All the rules have not been supported yet, but this pull request is ready to review. 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ybiquitous Thank you so much for picking this up! You've done fantastic work on top of @adalinesimonian's.
All the code LGTM. Let's update our docs too. I think we have a couple of examples that need updating here, here and here.
I think once that's done we can merge and release.
All the rules have not been supported yet, but this pull request is ready to review.
I agree. When it comes to the other rules, I don't think we need to add end positions for all the reject tests. We should add just enough of them to be confident that the extra endIndex
logic is working.
Ah, thanks for suggesting updating the docs. I'll do it soon. 👍🏼 |
Updating the docs was done via 13030a9. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic work, thank you!
LGTM.
Feel free to merge. Any idea for the changelog entry? Perhaps:
- Added: ranges for warnings that can be used by formatters and integrations
@jeddy3 Thanks for the review and suggestion! I'll do it. |
Done.
|
Partially addresses #5694
Adds range support for warnings.
Tasks:
Warning
typeProblem
typereport
function