Skip to content

Follow the agreed policy for file and class phpdoc blocks in 1-artifact filesΒ #66

@stronk7

Description

@stronk7

This is about to implement the new policy agreed @ MDLSITE-2804. Basically:

  • In 1-artifact php files (class, interface, trait), normally under classes dir, but also out from them.
  • Verify that a class phpdoc exists and have all the required elements (package, copyright, license + optional category).
  • Ensure that the file phpdoc is optional for those files (but validate it if present).
  • Other PHP files will continue requiring a file php doc block.

Edited, note to self: Need to verify that this doesn't happen anymore:

lib/classes/oauth2/service/issuer_interface.php.
(#30) Package is not specified for function init. It is also not specified in file-level phpdocs.
(#37) Package is not specified for function create_endpoints. It is also not specified in file-level phpdocs.
(#45) Package is not specified for function discover_endpoints. It is also not specified in file-level phpdocs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions