esrefactor icon indicating copy to clipboard operation
esrefactor copied to clipboard

Fix #7 and #8 - Detect function declaration as renamables AND make tests pass

Open wolframkriesing opened this issue 10 years ago • 8 comments

I actually needed #7 to work, so I figured it was a good idea to also make #8 pass. By doing so I refactored a bit and tried to improve readability.

wolframkriesing avatar Oct 06 '14 13:10 wolframkriesing

ariya won't merge your commits unless you squash them, and even then might not merge them. He still hasn't merged #9 which already fixed #7 and #8, and would have saved you from duplicating efforts.

cakesmith avatar Oct 06 '14 13:10 cakesmith

Would have saved some effort. Thanks :)

wolframkriesing avatar Oct 06 '14 13:10 wolframkriesing

@cakesmith Do you know if this repo is still maintained? (Your last comment somehow reads like PR wont get merged)

wolframkriesing avatar Oct 06 '14 13:10 wolframkriesing

ariya only responded to my pull request asking me to squash commits 14 days ago but has never merged. I forked the repo and just used my own fork instead of waiting for him to fix his own code to pass his own tests. I also agree with making the tests standardized (maybe jasmine?)

On Mon, Oct 6, 2014 at 9:23 AM, Wolfram Kriesing [email protected] wrote:

@cakesmith https://github.com/cakesmith Do you know if this repo is still maintained? (Your last comment somehow reads like PR wont get merged)

— Reply to this email directly or view it on GitHub https://github.com/ariya/esrefactor/pull/10#issuecomment-58015778.

cakesmith avatar Oct 06 '14 14:10 cakesmith

regarding jasmine - that would such a good thing. I just didn't want to make too big changes in one go :) so I did stick to existing the integration tests.

wolframkriesing avatar Oct 06 '14 14:10 wolframkriesing

Also, the code should be rewritten to allow multiple refactors in one pass. I ended up just implementing another version of the same thing but an order of magnitude faster in another project, but I haven't had the time to rewrite this (which wouldn't be too hard, it's pretty small) yet. Especially if the owner is not willing to merge commits that fix his broken codebase.

cakesmith avatar Oct 06 '14 14:10 cakesmith

I am in :) Let me know where we can work together on it and I am in. Just for your info, my actually feature requirement is only what the identify method does, imho rename should go into a separate thing.

wolframkriesing avatar Oct 06 '14 14:10 wolframkriesing

I am currently using it in https://github.com/uxebu/ace-with-plugins which is part of https://github.com/uxebu/tddbin-frontend in order to implement a renaming refactoring feature for ace (and used in tddbin.com once implemented).

wolframkriesing avatar Oct 06 '14 14:10 wolframkriesing