-
Improvement
-
Resolution: Done
-
Low
Policy: MOODLE_INTERNAL requirement
Since 13th March 2020, these rules apply:
- Remove the warning about missing MOODLE_INTERNAL check in 1-artifact files (that are the future). Single class/interface/trait ones.
- Keep the warning from old multi-artifact files and the error to files with side effects.
We should stop requiring MOODLE_INTERNAL for files which have no side-effects
Side effects include:
- requiring other files
- defining functions outside of classes
- etc.
Side effects do not include:
- defining classes, interfaces, or traits
- using the use stanza to alias a classname
- has to be done before
-
MDLSITE-5879 Respect PSR-1, and PSR-12 where no existing rule exists
- Closed
- will be (partly) resolved by
-
MDLSITE-6093 Codechecker behaviour to review MOODLE_INTERNAL requirement
- Resolved
-
MDL-68176 Remove MOODLE_INTERNAL from files without side-effects
- Closed
- will help resolve
-
MDL-61446 not clear if defined('MOODLE_INTERNAL') is due
- Closed