-
-
Notifications
You must be signed in to change notification settings - Fork 288
Issues are sorted for all formatters #348
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
Issues are sorted for all formatters #348
Conversation
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.
Nice, I really like this and the implementation is clean.
Think this could help a lot of people figuring out what errors they are getting.
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.
👏 Looks great !
Do you think you could add some tests, especially for DetailComparator class ?
@Jibbarth Should I add more test cases ? |
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.
👍 Thank you @bastien-phi
@bastien-phi Really nice! Could you add a test for the comparison order described in the PR, after that I'll say it is ready for merging 👍 |
@olivernybroe is ee87ed0 what you wanted ? |
@bastien-phi Yep, it was something like that I had in mind, thanks a lot! ❤️ |
I use a lot phpinsights and we keep a
phpinsights.txt
file inside our project repositories (basically just the output ofphp artisan insights --no-interaction -v
). It helps us to see which issues are solved or created when we develop features.Unfortunately, diffs are sometimes very hard to read because order in insights details can change between platforms (linux or macos) or for any other obscure reason.
Moreover, the fact that details are not sorted by file makes more difficult find the issue and fix then in batch. For example, a sample of what I got :
This PR fixes this, sorting details of each insights, firstly by file, then line, function and finally message.