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
fix(utils): support passing data
and suggestions
individually for each error
#491
fix(utils): support passing data
and suggestions
individually for each error
#491
Conversation
data
and suggestions
individually for each error
02ba534
to
7cbecb4
Compare
Nx Cloud ReportCI ran the following commands for commit e6aa98e. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch Sent with 💌 from NxCloud. |
82308a6
to
53e4915
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.
@rafaelss95 Thanks for working on this, but you have mixed in a number of subjective and unrelated changes (particularly to rule messages) to the core purpose of the PR.
Please revert them, and if you feel strongly about them, apply them in other PRs because it is impractical to review this in its current form
@JamesHenry Ok, let me try to explain why there are so many changes in this PR... When I changed the implementation of So when I started to fill the I tried to separate the changes to the maximum in each rule by the commits to facilitate the review proccess, but it seems that it isn't easy yet 😞 . I confess that thought about not messing with the non That being said, do you still think that we should revert all changes in non |
@rafaelss95 I definitely think it's a good change overall, but it does mean we have to discuss a few changes to those messages before this can be merged. Based on what you have said I will do that here |
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.
Many thanks!
a701819
to
13413ad
Compare
13413ad
to
94a64fd
Compare
Completed another full pass and left effectively the same comment twice |
LGTM, anything more to be done on this branch @rafaelss95? |
I think we're done here 🚀. |
Great, thanks! |
With this PR we can now test
data
andsuggestions
individually for each error. Now, the test fail if we try to test something that usesdata
properties without passingdata
.In addition, it improves the types, making it mandatory and mutually exclusive to pass one of the two properties:
messageId
ormessages
, so there is no longer a need to throw a compile-time error.