-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
feat: Custom reporters support #1643
feat: Custom reporters support #1643
Conversation
Cool. I'll take a look at it. |
I'm impressed. You put a lot of work into it. I like the idea of having multiple reporters. Then it can work with custom loggers. |
Thank you for all the effort! |
Thanks for CR, I'll try to fix the issues this week. What do you think of additional testing? Do I need to add any unit tests before this can be merged? |
It took a lot of effort to get the code coverage as high as it is. I would like to keep it that way. If you want some help with tests, I can help out by breaking out some of the independent stuff and getting it landed. |
873c9ec
to
9607d70
Compare
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.
Almost there!
packages/cspell-json-reporter/src/utils/validateSettings.test.ts
Outdated
Show resolved
Hide resolved
f7c73cf
to
cc431d3
Compare
packages/cspell-json-reporter/src/__snapshots__/index.test.ts.snap
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,42 @@ | |||
{ | |||
"issues": [ |
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.
Is this a sample file? Or a result of running a test?
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.
this a result of running example, I've forgotten to put in in gitignore
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.
Ahh, it is best to write it into temp
, some of the other packages do the same thing.
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.
Almost there. Would you like some help with the last bit?
I think it's complete? |
Great! I'll land it. |
Hi Jason!
This PR proposes custom reporters support which allows implementing things like #21 in the future.
It definitly needs better documentation and tests, could you review it and discuss if you find the way I implemented is ok?