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

Stop requiring the file phpdoc block for 1-artifact files #69

Merged

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Feb 16, 2021

Now we detect all the classes, interfaces and traits in a file
and, if there is only one, then we stop requiring the file
phpdoc block.

This was agreed @ https://tracker.moodle.org/browse/MDLSITE-2804
and #66
was created to implement it.

Note this doesn't address the whole agreement, but just the
detail about stop requiring the file phpdoc block, because it
is specially annoying and recurring in new files (that use to
be 1-artifact ones).

Now we detect all the classes, interfaces and traits in a file
and, if there is only one, then we stop requiring the file
phpdoc block.

This was agreed @ https://tracker.moodle.org/browse/MDLSITE-2804
and moodlehq#66
was created to implement it.

Note this doesn't address the whole agreement, but just the
detail about stop requiring the file phpdoc block, because it
is specially annoying and recurring in new files (that use to
be 1-artifact ones).
@stronk7 stronk7 force-pushed the stop_requiring_filedoc_for_1_artifact branch from 67af57c to 30d4a80 Compare February 16, 2021 17:27
Copy link
Member

@sarjona sarjona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this!! A lot of Moodle developers (including me) will love you a little bit more after this (if that's possible) :-P
The patch looks great and it's great you've covered with some unit tests. Good job (as usual) :-*

@sarjona sarjona merged commit f232ce4 into moodlehq:master Feb 17, 2021
@stronk7 stronk7 deleted the stop_requiring_filedoc_for_1_artifact branch February 17, 2021 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants