Skip to content
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

Remove Copy/Paste Detector integration #262

Closed
stopfstedt opened this issue Dec 12, 2023 · 6 comments
Closed

Remove Copy/Paste Detector integration #262

stopfstedt opened this issue Dec 12, 2023 · 6 comments
Assignees
Labels
documentation Improvements or additions to documentation task Some task to complete

Comments

@stopfstedt
Copy link
Contributor

during composer install, i'm seeing this warning:

Package sebastian/phpcpd is abandoned, you should avoid using it. No replacement was suggested.

and true enough, the code repo has been flagged as abandoned. https://github.com/sebastianbergmann/phpcpd

i'm proposing the complete removal of this integration.

@stronk7
Copy link
Member

stronk7 commented Dec 14, 2023

Hi @stopfstedt ,

yeah, we were aware about the removal. Also, we have been monitoring how forks (of phpcpd) are evolving, with a couple of them that "may" be interesting to switch to.

Thanks for creating this and #263, we'll analyse this soon, because one of the things we need to carefully consider is how the (potential) removal is going to affect to all the plugins out there that are running the phpcpd command, maybe requiring it to stay, but warning about the deprecation of the command, instead of a sudden deletion.

Let's see how everything evolves... I'll keep both this and the PR open as a reminder... hope we can come with a decision soon (switch, deprecate, remove...).

Ciao :-)

@stopfstedt
Copy link
Contributor Author

@stronk7 thanks for the review.
i agree with your concerns - sudden removal might be a bit jarring.

i started with a new PR that deprecates this feature as an intermediary solution.

@stronk7
Copy link
Member

stronk7 commented Feb 5, 2024

Now that the deprecation has landed as part of #264 , I'll keep this open for whenever we make the next major version (5.0.0). Then, the phphpd command will be completely removed.

Ciao :-)

@stronk7 stronk7 added this to the Towards moodle-plugin-ci v5 milestone Feb 5, 2024
@jrchamp
Copy link
Contributor

jrchamp commented Feb 5, 2024

@stronk7 Now that phpcpd is deprecated, it seems like it should be removed from the sample workflow files. I understand that complete removal should happen in a major version (because it breaks backward compatibility), but the sample workflow files are more like "suggested best practices", which should probably be updated to stop using deprecated commands. With that said, whatever you decide, I'm fine either way.

@stronk7 stronk7 added the task Some task to complete label Feb 15, 2024
@stronk7 stronk7 added the documentation Improvements or additions to documentation label Mar 15, 2024
stronk7 added a commit to stronk7/moodle-plugin-ci that referenced this issue Mar 16, 2024
Better stop having the deprecated phpcpd command available
in the dist and explain docs, so newcomers won't enable it
by default. It's going to be removed in v5.

Part of moodlehq#262, credit goes to @jrchamp
@stronk7
Copy link
Member

stronk7 commented Mar 16, 2024

it seems like it should be removed from the sample workflow files.

Agreed, I've created #290 to remove it from dist and "explain" docs. Good idea!

Ciao :-)

@stronk7
Copy link
Member

stronk7 commented Mar 16, 2024

Ok, I' think that this can be considered done.

The complete removal has happened as part of the https://github.com/moodlehq/moodle-plugin-ci/milestone/1 , and now it's part of the https://github.com/moodlehq/moodle-plugin-ci/tree/wip_v5 branch.

Ciao :-)

@stronk7 stronk7 closed this as completed Mar 16, 2024
@stronk7 stronk7 self-assigned this Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation task Some task to complete
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants