And we did that in the codechecker (and coding style details).
Now it's time to introduce a new warning about that, aka detected not needed uses. When a file is 1-artifact and without side effects, better don't add the MOODLE_INTERNAL check.
The other side of the agreement, basically. So we stop getting too many, now unnecessary, checks in the new files.
In https://tracker.moodle.org/browse/MDLSITE-5967 it was decided that it's ok to omit the MOODLE_INTERNAL check for 1-artifact files without side effects.
And we did that in the codechecker (and coding style details).
Now it's time to introduce a new warning about that, aka detected not needed uses. When a file is 1-artifact and without side effects, better don't add the MOODLE_INTERNAL check.
The other side of the agreement, basically. So we stop getting too many, now unnecessary, checks in the new files.
Ciao :-)