owncloud / moodle-repository_ocis

GNU General Public License v3.0
3 stars 0 forks source link

boilerplate is missing / improper. #93

Closed purnendudash closed 6 months ago

purnendudash commented 7 months ago

All plugin file should have some common explicit GPL license statement. Kindly check and include the same.

For more information on this see: https://moodledev.io/general/community/plugincontribution/checklist#boilerplate

https://github.com/owncloud/moodle-repository_ocis/blob/7631344101dc97554f4f06915fe0933450dacb76/version.php#L2

individual-it commented 7 months ago

Sorry I don't understand. The statement is in lines 4-7: https://github.com/owncloud/moodle-repository_ocis/blob/7631344101dc97554f4f06915fe0933450dacb76/version.php#L4-L7

purnendudash commented 7 months ago

Kindly check this - https://moodledev.io/general/development/policies/codingstyle#files

individual-it commented 7 months ago

I'm still not sure what you are talking about :-(

Is this about // The ocis repository for Moodle is free software: you can redistribute it and/or modify vs // This file is part of Moodle - http://moodle.org/ ?

We had this discussion in https://github.com/owncloud/moodle-repository_ocis/issues/31 and it looks to me that the earlier is also used in other plugins: https://github.com/maths/moodle-qtype_stack/blob/master/question.php

danmarsden commented 7 months ago

Thanks @individual-it - the fact this has a gpl statement means it's not an approval blocker in the plugins database, but keep in mind Moodle's codechecker tools which check for compliance with the standard guidelines looks for our standard template text - so if you decide to implement #24 - (which I hope you do, because it helps a lot with stuff like this.) you will get a bunch of errors related to this so you might want to consider using the standard templates.

Of course - you don't need to use github ci to check your compliance with the standards - you can install: https://moodle.org/plugins/local_codechecker and: https://moodle.org/plugins/local_moodlecheck

to run some of the tests locally -

individual-it commented 7 months ago
danmarsden commented 7 months ago

nice work - keep in mind that the github actions runs a bunch of other checks as well - so just because codechecker and moodelcheck are passing - won't mean that the standard github actions will pass as they run a bunch of other tests as well.

I think here's the part where it triggers the boilerplate test: https://github.com/moodlehq/moodle-plugin-ci/blob/main/tests/Command/CodeCheckerCommandTest.php#L100

danmarsden commented 7 months ago

well - that's not the part that triggers it, but it's where it triggers the report on the failure.

individual-it commented 6 months ago

fixed by #102 The CI now runs moodle github actions