Page MenuHomePhabricator

Linter: introduce severity level for error categories
Closed, ResolvedPublic

Description

After reading through the WP:CHECKWIKI list of errors (T152817), I think it would be a good idea to have different levels of severity for linter categories. @MZMcBride also suggested this on wikitech-l: https://lists.wikimedia.org/pipermail/wikitech-l/2016-October/086855.html

Event Timeline

Python's flake8 has a pretty neat categorization system using W, E, and F with positive integers. It might be too technical to emulate directly, but perhaps it'll provide some inspiration for a similar system.

For now I think just 'error' and 'warning' should be good enough? We can add more levels as needed.

Change 327410 had a related patch set uploaded (by Legoktm):
Add severity for error categories

https://gerrit.wikimedia.org/r/327410

Change 327410 merged by jenkins-bot:
Add severity for error categories

https://gerrit.wikimedia.org/r/327410