-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Access current file name/path in custom rule #30
Comments
Seems like you could add a 4th rule(reporter, cheerioParsed, ast, { path: this.path }) |
As mentioned in another issue (#11) I'm unfortunately unable to dedicate any real time to svglint. I'll have a bit of time at the end of the month, but otherwise plan to rewrite the programmatic interface a fair bit once my schedule clears up in a few months. If you'd like this before then, I'd be happy to review a PR. |
No worries, I completely understand that your time is limited and open source often has to take a backseat! I'll see if i can whip up a PR. Should be pretty easy if you're happy with the approach i outlined above? |
Sounds good. Your approach seems reasonable, I'd be happy with it in a PR (plus a test to avoid regressions during the upcoming rewrite). |
🎉 This issue has been resolved in version 1.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Is there some way to access the name/path for the current file in a custom rule? It doesn't seem to be available on any of the arguments passed to the function.
The text was updated successfully, but these errors were encountered: