Plugins, smurfs, style linting and checking.

Plugins, smurfs, style linting and checking.

par Gareth J Barnard,
Nombre de réponses : 4
Avatar Core developers Avatar Particularly helpful Moodlers Avatar Plugin developers

I like the new plugin checks that are performed as a part of the update / upload a plugin process on the plugins db as it drives quality.  However I have generated 'minimal' CSS files and would like a means of excluding them from the checks, i.e: https://moodle.org/plugins/pluginversion.php?id=13587&smurf=html#css with the CSS files of 'line 4'.  Is there a way please?  As it makes Essential look far worse than it actually is! sourire

Moyenne des évaluations  -
En réponse à Gareth J Barnard

Re: Plugins, smurfs, style linting and checking.

par David Mudrák,
Avatar Core developers Avatar Documentation writers Avatar Moodle HQ Avatar Particularly helpful Moodlers Avatar Peer reviewers Avatar Plugin developers Avatar Plugins guardians Avatar Testers Avatar Translators

In exceptional cases when the stylelint raises errors which you intentionally want to have, you can use a command to explicitly skip certain checks.

Please refer to how moodle core themes use

/* stylelint-disable ... */
Moyenne des évaluations Useful (3)
En réponse à David Mudrák

Re: Plugins, smurfs, style linting and checking.

par Dan Poltawski,

Related docs link about how to disable on all of the checks: https://docs.moodle.org/dev/Linting

Moyenne des évaluations Useful (3)