Aide:Erreurs de lint
Quand Parsoid analyse le wikicode d'une page, il identifie certains modèles dans le wikicode qui sont peut-être des erreurs. Cette page décrit les problèmes potentiels.
Les erreurs de lint sont affichées actuellement par l'extension Linter, voir Aide:Extension:Linter . Dans le futur, elle pourront être aussi affichées quand vous modifiez votre signature dans Préférences , voir Nouvelles exigences pour les signatures des utilisateurs .
Documentation des erreurs de lint
Erreurs de lint de priorité haute
- deletable-table-tag (Balise de tableau qui devrait être supprimée)
- pwrap-bug-workaround (Contournement de l’anomalie de délimitation de paragraphe)
- self-closed-tag (Balises auto-fermantes)
- tidy-whitespace-bug (Anomalie d’analyse des blancs)
- html5-misnesting (Balise mal imbriquée avec des rendus différents en HTML5 et HTML4)
- tidy-font-bug (Ancien comportement des balises de police encapsulant un lien)
- multiple-unclosed-formatting-tags (Multiples balises de mise en forme non fermées)
- multiline-html-table-in-list (Tableau multilignes dans une liste)
- unclosed-quotes-in-heading (Guillemets non fermés dans un titre)
- misc-tidy-replacement-issues (Problèmes divers)
- duplicate-ids (Identifiants en double)
Erreurs de lint de priorité moyenne
- bogus-image-options (Options de fichier erronées)
- fostered (Contenu mal placé)
- misnested-tag (Balises mal imbriquées)
- multi-colon-escape (Échappement de deux-points multiples)
- wikilink-in-extlink (Liens dans les liens)
Erreurs de lint de priorité basse
- empty-heading (Titres vides)
- missing-end-tag (Balise de fin manquante)
- missing-end-tag-in-heading (Balise de fin manquante dans le titre)
- stripped-tag (Balises vides)
- obsolete-tag (Balises HTML obsolètes)
- night-mode-unaware-background-color (Règle de style inline définie pour la couleur d'arrière-plan sans couleur de texte correspondante)
Hidden lint issues
Hidden lint issues have priority set to none in the linter extension. Conceptually, these are a different class of issues than the previous categories and cover the following areas.
- They might be early explorations and experiments at defining a problematic wikitext usage -- the hidden nature lets developers / product teams fine tune the linting logic and the scope of the lint and also allow for engage in a discussion without needing immediate action and fixups. Eventually, these might either be undeployed OR promoted to a non-hidden lint issue for fixup by editors and bots.
- They might be a result of content analyses that might be used in other ways other than surfacing it in the Linter UI. In this case, the Linting product is being used for its analysis and storage capabilities and is not meant to feed direct action by editors and hence will never be promoted to a non-hidden lint issue.
Impact on wikignome workflows
With the inclusion of hidden issues as a concept, the goal is to minimize (and if possible, fully eliminate) any impact on existing workflows of wikignomes. In T334527, we worked through the places in APIs and UIs where hidden lints were showing up. If hidden lints are interfering with your workflow, add a comment to that task or file a new task against the Linter extension. What remains to be done is suppressing hidden lints from quarry results.
Suppressing hidden lints from quarry results
Additionally, editors who query the linter database replicas directly via quarry are recommended to update their queries to exclude the hidden issues in the where clause. Right now, this is going to be cumbersome and will require the enumeration of ids of hidden lint issues. But, we'll investigate providing easier options here, see T334527.
For an example of how to exclude specific linter issues from a query, see the join page on page.page_id
line in the query at w:Wikipedia:Linter/reports/Articles by Lint Errors.
List of hidden lint issues
Here is the current known list of hidden lint issues along with the lint issue ids in the database for use in SQL queries with quarry.
- fostered-transparent (id 24)
- large-tables (id 20)
- missing-image-alt-text (id 23)