diff --git a/.github/android-lint-file-matcher.json b/.github/android-lint-file-matcher.json deleted file mode 100644 index 157e577..0000000 --- a/.github/android-lint-file-matcher.json +++ /dev/null @@ -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" - } - ] - } - ] -} diff --git a/.github/android-lint-line-matcher.json b/.github/android-lint-line-matcher.json deleted file mode 100644 index d517176..0000000 --- a/.github/android-lint-line-matcher.json +++ /dev/null @@ -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 - } - ] - } - ] -} diff --git a/.github/gradle-matcher.json b/.github/gradle-matcher.json deleted file mode 100644 index b000336..0000000 --- a/.github/gradle-matcher.json +++ /dev/null @@ -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 - } - ] - } - ] -} diff --git a/.github/kotlin-error-matcher.json b/.github/kotlin-error-matcher.json deleted file mode 100644 index b3df3bb..0000000 --- a/.github/kotlin-error-matcher.json +++ /dev/null @@ -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" - } - ] -} diff --git a/.github/kotlin-warning-matcher.json b/.github/kotlin-warning-matcher.json deleted file mode 100644 index b9dfca7..0000000 --- a/.github/kotlin-warning-matcher.json +++ /dev/null @@ -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" - } - ] -} diff --git a/matchers.json b/matchers.json new file mode 100644 index 0000000..b777c28 --- /dev/null +++ b/matchers.json @@ -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" + } + ] +}