-
-
Notifications
You must be signed in to change notification settings - Fork 930
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
Warnings are logged multiple times on a single run #978
Comments
Removing |
@declandewet Just a note to say this is the first issue we've had concerning the new SugarSS syntax and stylelint. It's kind of fascinating to see. Can I ask a question or two about how SugarSS and stylelint are working out for you? I see you're using I see you're using stylelint as a PostCSS plugin (through Roots). Is that because using the PostCSS plugin is your preferred method, or because the SugarSS syntax isn't yet available when using the CLI or Node API? Would you use either of these the CLI or Node API if a SugarSS syntax option was added? Thanks for your in-depth bug report btw. I'm glad you were able to resolve the issue yourself. |
Yes.
So far, that's the only rule I've found to be incompatible with SugarSS. However, I don't think it should be removed from
The PostCSS way is the easiest to manage within the Roots stack, as Roots extensions and Accord (the transpiler engine powering Roots) are first-class citizens of the setup (if that makes sense). While it's possible to use the Node API, it would be rather awkward. That being said:
Personally, I would not - but I do have a hunch other people might, so it might be worth exploring. |
Thanks for taking the time out to reply. It's much appreciated.
FYI, the
Agreed. However, there's a breaking release of the config pending and so we might roll it into that. We've been adding more "catching subtle mistakes" rules (like shorthand property overrides) to the config recently while removing the divisive stylistic stuff. Thanks for your thoughts on the matter though and I'll reference them in the discussion issue over in the config repo.
Agreed. I'll raise a separate issue for that. |
Didn't notice that. That's good to know. That changes my viewpoint slightly - which makes me agree with your second point.
Perhaps this is where one should assume the YAGNI principle pending further discussion & agreement among users. |
That sounds like a plan. It's unlikely that this feature will be added until someone comes along who needs it and sends a PR. |
Note:
Forgive me if I'm putting this in the wrong place - I'm unaware if this bug originates from
stylelint
orpostcss-reporter
.Bug Report:
Linter warnings are reported multiple times for each file on a single run:
I have set postcss-reporter's
clearMessages
option to true, and triedfalse
- the bug is consistent both times.None.
5.2.0
Consumed as a PostCSS plugin in the asset pipeline for Roots. Example Roots config
app.coffee
:Yes, syntax is SugarSS, with precss.
Warnings should have only been reported once.
Warnings were reported three times.
The text was updated successfully, but these errors were encountered: