You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot configure severity for partial error code #7
One of the reasons we don't allow full pattern matching, but only category or error code is this: let say you have E, E1, E13 all set to different severity, you now have to build a hierarchy that ensures that you check for E13 first, then E1, and then E, and before that you have to check for all absolute error codes.
Activity
karthiknadig commentedon Sep 2, 2022
The check happens here,
code_typeis basically category. Pattern matching not supported:vscode-flake8/bundled/tool/server.py
Lines 108 to 118 in 42c7979
One of the reasons we don't allow full pattern matching, but only category or error code is this: let say you have
E,E1,E13all set to different severity, you now have to build a hierarchy that ensures that you check forE13first, thenE1, and thenE, and before that you have to check for all absolute error codes.Ref microsoft/vscode#40239
gschwaer commentedon Feb 15, 2023
It should be sufficient to iterate over the categories sorted by length from longest to shortest and pick the first that fits, right?