PLC-lang/rusty

Sort error codes within their categories when printing with `plc config diagnostics`

开放

#1,158 创建于 2024年3月15日

 (1 条评论) (1 个反应) (0 位负责人)Rust (71 个派生)auto 404
enhancementgood first issuelow-priority

仓库指标

星标
 (351 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Is your feature request related to a problem? Please describe. Currently, if you want to see the error severity configuration and print it via plc config diagnostics, the error codes will be in a random order within their respective severity. If you then write the output to a json file, it will look something like this:

{
    "warning": [
        "E013",
        "E022",
        "E047",
        "E014",
        "E015",
        "E090",
        "E004",
        "E042",
        "E023",
        "E049",
        "E091",
        "E039",
        "E093",
        "E024",
        "E016"
    ],

    ...
}

Describe the solution you'd like Sort the error codes in their categories ascendingly, to make it easier to find the codes you are looking for.

贡献者指南