Repository navigation
Add /* autoprefixer: ignore next warning */ control comment - #1560
Merged
Merged
Conversation
ai
reviewed
Oct 5, 2026
Instead of testing every comment in the stylesheet and marking the next node, the warning filter walks back from each warned node over the prefixed copies inserted before it and checks the comment there.
ai
reviewed
Oct 5, 2026
| }) | ||
|
|
||
| // Remove warnings hidden by ignore next warning control comments | ||
| result.messages = result.messages.filter(i => { |
Member
There was a problem hiding this comment.
It is a dirty way—why we add warning if we don't need it?
It is better to add warn() function which will do the check on its one.
Contributor
Author
There was a problem hiding this comment.
added a warn() helper to utils that checks for the comment before calling result.warn, all warnings go through it now so nothing gets added and filtered out later
Member
|
Thanks. I will release it later this month with some other features. Am I right, that you do not need this feature, and it is just LLM contribution. |
Contributor
Author
|
i picked it from the issue tracker, not from my own project. i use AI tools for parts of the work, but i read, test and stand behind every change myself |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hides warnings for the next node only, prefixes are still added. the
ignore nextregex also matched this text, so it skipsignore next warningnow, otherwise the new comment would turn prefixing off tooFixes #1386