-
Notifications
You must be signed in to change notification settings - Fork 61
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
cache rule name with error message for reporters to use as they need #264
cache rule name with error message for reporters to use as they need #264
Conversation
I don't know actually, they seem to overlap somewhat. I think we either should make the distinction clear ( @wojciechczerniak WRT this change, huge 👍 A test would be nice here, though. And I'm really looking forward to the plugin! 😄 |
i'm cool with merging them, or really with whatever you guys want to do. everything kind of just grew organically, so i'm sure there's tons of room for improvement. |
Cool, made #269 to list any other potential breakage we might want. @wojciechczerniak A test here, then I'm happy with this PR at least 😄 |
I'm not sure if commit triggered notification so just letting you know about added test. BTW. JetBrains plugin is released now: stylint-plugin |
LGTM. Unsure why the build is failing now, though... Rebase on master? I'll test out the plugin asap! Really cool that you made it |
My test fails on node v4 and below in getFiles.js. I'll investigate. |
033b3f4
to
e9eccb6
Compare
No problem here. Rebase was the right way to go, thanks. |
@wojciechczerniak now it failed only on node 4... Something weird is going on |
My mistake was to change node version only. I've reproduced Travis step by step. Deleting With When |
run |
It's weird. But probably not for us to fix. We deal with async call here which is messed up by configuration change. IMO this exposed problem with this.config writes which I address in #272 |
Just like ESLint and sass-lint expose rule name with error message cache. Not every reporter need to use it but will be useful to display it in editor like ESLint do. Possible future use: find automatic fix by rule name and apply it inline (alt+enter inspections in Webstorm IDE).
BTW. What's the difference between state and cache objects? Some warning message properties are on state (severity) and some are on cache (lineNo, msg, etc). Did I choose the right one?