gcc-problem-matcher icon indicating copy to clipboard operation
gcc-problem-matcher copied to clipboard

Ignore certain folders from being matched

Open tmayoff opened this issue 1 year ago • 2 comments

Since Github only shows 10 warnings in a run, it'd be nice if they were all from the actual project and not from a dependency, being able to ignore third_party, external, subprojects folders would be nice

tmayoff avatar Apr 19 '23 15:04 tmayoff

+1 i have a project with quite a few libs and all the warnings i am getting are from them and not my own code

marauder2k7 avatar Jul 26 '23 14:07 marauder2k7

I ended up creating my own problem matcher, this also adds the changes from here as well.

{
    "problemMatcher": [
        {
            "owner": "gcc-problem-matcher",
            "pattern": [
                {
                    "regexp": "^(..\/)(.*?)(?<!(subprojects|external|\/usr).*):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
                    "file": 2,
                    "line": 4,
                    "column": 5,
                    "severity": 6,
                    "message": 7
                }
            ]
        }
    ]
}

tmayoff avatar Nov 10 '23 18:11 tmayoff