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 cwd option #5721
Add cwd option #5721
Conversation
Resolves #5720 - Adds `cwd` to `LinterOptions` to allow specifying the working directory from which Stylelint should search for files - Adds `cwd` to `LinterResult` to allow formatters to format results using the same working directory used in the lint run
I'm curious, why does this drop coveralls coverage to zero? Is it just a CI problem, or something from this feature itself (the latter seems unlikely?). |
Genuinely no clue. Coverage was getting reported just fine by Jest. |
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.
@adalinesimonian Thank you for creating PR!
I locally checked lcov.info
content, but there are no problems. Strange. 🤔
Coveralls is reporting 0% coverage again: if coverage data is getting reported by Jest correctly, should we open an issue with Coveralls? |
I wonder if it has to do with the |
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.
I've suggested a small refactoring, but LGTM! 👍🏼
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.
LGTM, thank you!
Changelog entry added:
|
Resolves #5720
cwd
toLinterOptions
to allow specifying the working directory from which Stylelint should search for filescwd
toLinterResult
to allow formatters to format results using the same working directory used in the lint run