I have realised that the standard Moodle license boilerplate at the top of PHP files may not make much sense for contrib plugins, so I have created CONTRIB-9891 today to get some explanation from Moodle HQ.
There are two potential problems in my opinion:
- "This file is part of Moodle - http://moodle.org/" might be a trademark violation according to https://moodle.com/trademarks/, because it may give impression that the plugin is associated with Moodle
- "Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY" - is irrelevant, it should instead say the contrib plugin has no warranty
This question is more towards the Moodle HQ lawyers, but I thought that other contrib developers might be interested.