Move all matchers to a single file

This commit is contained in:
Dave Olsthoorn 2020-08-26 17:43:31 +02:00
parent 2112bb34ef
commit 57977119c1
6 changed files with 72 additions and 99 deletions

View file

@ -1,19 +0,0 @@
{
// Example:
// /path/to/file/file.class: Warning: checkClientTrusted is empty, which could cause insecure network traffic due to trusting arbitrary TLS/SSL certificates presented by peers [TrustAllX509TrustManager]
"problemMatcher": [
{
"owner": "android-lint-file",
"pattern": [
{
"regexp": "^(.+):\\s+(Warning|Error):\\s+(.+)\\s+\\[(.+)\\]$",
"file": 1,
"severity": 2,
"message": 3,
"code": 4,
"kind": "file"
}
]
}
]
}

View file

@ -1,19 +0,0 @@
{
// Example:
// /path/to/file/build.gradle:55: Warning: A newer version of androidx.core:core-ktx than 1.2.0-beta01 is available: 1.2.0-rc01 [GradleDependency]
"problemMatcher": [
{
"owner": "android-lint-line",
"pattern": [
{
"regexp": "^(.+):(\\d+):\\s+(Warning|Error):\\s+(.+)\\s+\\[(.+)\\]$",
"file": 1,
"line": 2,
"severity": 3,
"message": 4,
"code": 5
}
]
}
]
}

View file

@ -1,23 +0,0 @@
{
// Example:
// warning unused-exclude-by-conf the exclude dependency is not in your dependency graph, so has no effect
// app/build.gradle:45
"problemMatcher": [
{
"owner": "gradle",
"pattern": [
{
"regexp": "^(error|quiet|warning|lifecycle|info|debug)\\s+(\\S+)\\s+(.+)$",
"severity": 1,
"code": 2,
"message": 3
},
{
"regexp": "^([^\\s]+):([\\d]+)$",
"file": 1,
"line": 2
}
]
}
]
}

View file

@ -1,19 +0,0 @@
{
// Example:
// e: /path/to/file/KotlinFile.kt: (14, 5): Val cannot be reassigned
"problemMatcher": [
{
"owner": "kotlin-error",
"pattern": [
{
"regexp": "^e:\\s+(\\S+):\\s+\\((\\d+),\\s+(\\d+)\\):\\s+(.+)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
],
"severity": "error"
}
]
}

View file

@ -1,19 +0,0 @@
{
// Example:
// w: /path/to/file/KotlinFile.kt: (14, 5): Parameter 'foo' is never used
"problemMatcher": [
{
"owner": "kotlin-warning",
"pattern": [
{
"regexp": "^w:\\s+(\\S+):\\s+\\((\\d+),\\s+(\\d+)\\):\\s+(.+)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
],
"severity": "warning"
}
]
}

72
matchers.json Normal file
View file

@ -0,0 +1,72 @@
{
"problemMatcher": [
{
"owner": "android-lint-file",
"pattern": [
{
"regexp": "^(.+):\\s+(Warning|Error):\\s+(.+)\\s+\\[(.+)\\]$",
"file": 1,
"severity": 2,
"message": 3,
"code": 4,
"kind": "file"
}
]
},
{
"owner": "android-lint-line",
"pattern": [
{
"regexp": "^(.+):(\\d+):\\s+(Warning|Error):\\s+(.+)\\s+\\[(.+)\\]$",
"file": 1,
"line": 2,
"severity": 3,
"message": 4,
"code": 5
}
]
},
{
"owner": "gradle",
"pattern": [
{
"regexp": "^(error|quiet|warning|lifecycle|info|debug)\\s+(\\S+)\\s+(.+)$",
"severity": 1,
"code": 2,
"message": 3
},
{
"regexp": "^([^\\s]+):([\\d]+)$",
"file": 1,
"line": 2
}
]
},
{
"owner": "kotlin-error",
"pattern": [
{
"regexp": "^e:\\s+(\\S+):\\s+\\((\\d+),\\s+(\\d+)\\):\\s+(.+)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
],
"severity": "error"
},
{
"owner": "kotlin-warning",
"pattern": [
{
"regexp": "^w:\\s+(\\S+):\\s+\\((\\d+),\\s+(\\d+)\\):\\s+(.+)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
],
"severity": "warning"
}
]
}