open-lms-open-source / moodle-plugin-ci

Assist with running a Moodle plugin in Travis CI
https://blackboard-open-source.github.io/moodle-plugin-ci/
GNU General Public License v3.0
42 stars 37 forks source link

Check for class name issues, ie core vs \local class paths #97

Open brendanheywood opened 5 years ago

brendanheywood commented 5 years ago

We should check that all classes are in a correct namespace, ie they are implementing a core thing, or they are "\local":

https://docs.moodle.org/dev/Coding_style#Rules_for_level2

https://docs.moodle.org/dev/Automatic_class_loading#Namespaces