-
-
Notifications
You must be signed in to change notification settings - Fork 288
[Feature] autofixer #337
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
[Feature] autofixer #337
Conversation
Nothing to say about the code, sounds good to me. Can I test this already locally? |
ps: @Jibbarth Very very good job. |
@nunomaduro Sure ! To test it on an other project, add this in {
//...
"repositories": [
{
"type": "vcs",
"url": "https://github.com/jibbarth/phpinsights"
}
]
} Then require phpinsights on correct branch :
To get the code locally on your phpinsights folder, you could also add a remote on git:
And I think you can even push on my branch if you want, github allow edit for mainteners in PR 🙂 |
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.
The code looks great! Amazing work @Jibbarth
So how does the result look when using the other formatters? I guess the result is just as it normally looks when running without fixing?
@Jibbarth @nunomaduro regarding creating a new branch for v2.0 stuff, I think we should consider making a branch for v.1 stuff instead and keep master for v2 stuff. |
@Jibbarth @olivernybroe For now, I don't see any breaking change here. |
Hi! What about finish and relise this feature? |
@zolotov88 I'll try to work on this this weekend 😉 |
Yahoorei! =) |
Hi) Bro, we are really looking forward to this release) You will have time to finish before the end of the week?) |
Co-Authored-By: Oliver Nybroe <[email protected]>
f8da6e2
to
05da8e0
Compare
@olivernybroe I added a "fixed issues" count in summary of Json Formatter. For other, I don't think it's necessary (and I also don't know where to place it 😅) WDYT ? |
I think that is fine for now :) If somebody says they can see a use-case in another formatter, a small pr can always be created. |
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! 👍
Just some small cleanup comments and I think we are there.
Any chance we can get this under the |
Co-Authored-By: Oliver Nybroe <[email protected]>
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.
Amazing!
I would say this is ready now 👍
@Jibbarth if this is ready, then let's resolve the conflicts and get it merged 😄 |
@olivernybroe I'll try to finish my pendings PRs tonight or during the weekend 😉 |
@olivernybroe Conflicts fixed ! Could you redo a slight review ? 🙏 |
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! 👍
You can merge it in :)
Freaking fantastic 👏🏻👏🏻 |
Hey! I worked on autofix feature. It's not totally ready yet, but I wanted to create a PR to at least show you.
It add a
--fix
option to analyse command to apply check where it's possible during a complete analyze.I also add a
phpinsights fix
command to don't get full report, but only apply fixes.@caneco do you have idea on how improve the output ?
It's look like this for now:
TODO:
I'm also wondering if we should create a next branch for aggregate developments on v2.0 ? What do you think @nunomaduro @olivernybroe ?