Staging
v0.8.1
swh:1:snp:635f4099902912592851108bcac178ff574f7c5f
Raw File
Tip revision: 9242376906b604697f278453ab853861fee2c150 authored by Guido van Rossum on 10 November 2020, 05:36:05 UTC
Some suggestions for the descriptors howto.
Tip revision: 9242376
sphinx.json
{
    "problemMatcher": [
        {
            "owner": "sphinx-problem-matcher",
            "pattern": [
                {
                    "regexp": "^(.*):(\\d+):\\s+(\\w*):\\s+(.*)$",
                    "file": 1,
                    "line": 2,
                    "severity": 3,
                    "message": 4
                }
            ]
        },
        {
            "owner": "sphinx-problem-matcher-loose",
            "pattern": [
                {
                    "_comment": "A bit of a looser pattern, doesn't look for line numbers, just looks for file names relying on them to start with / and end with .rst",
                    "regexp": "(\/.*\\.rst):\\s+(\\w*):\\s+(.*)$",
                    "file": 1,
                    "severity": 2,
                    "message": 3
                }
            ]
        },
        {
            "owner": "sphinx-problem-matcher-loose-no-severity",
            "pattern": [
                {
                    "_comment": "Looks for file names ending with .rst and line numbers but without severity",
                    "regexp": "^(.*\\.rst):(\\d+):(.*)$",
                    "file": 1,
                    "line": 2,
                    "message": 3
                }
            ]           
        }
    ]
}
back to top