From 76d3194b0bac4119b8401de9cb042ef2eb54cc1a Mon Sep 17 00:00:00 2001 From: Blake Kostner Date: Thu, 23 Mar 2023 17:41:50 -0600 Subject: [PATCH 1/3] fix: remove dialyzer problem matcher --- .github/elixir-matchers.json | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/elixir-matchers.json b/.github/elixir-matchers.json index fefac5f7..df01df60 100644 --- a/.github/elixir-matchers.json +++ b/.github/elixir-matchers.json @@ -57,22 +57,6 @@ "column": 3 } ] - }, - { - "owner": "elixir-dialyzerOutputDefault", - "severity": "warning", - "pattern": [ - { - "regexp": "^(.*):(\\d+):(.*)", - "file": 1, - "line": 2, - "code": 3 - }, - { - "regexp": "^(.*)$", - "message": 1 - } - ] } ] } From e0688a8905698bab1fa2950e91ff4e948007e0b7 Mon Sep 17 00:00:00 2001 From: Blake Kostner Date: Thu, 23 Mar 2023 17:46:56 -0600 Subject: [PATCH 2/3] remove dialyzer problem matcher test --- __tests__/problem-matchers.test.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/__tests__/problem-matchers.test.js b/__tests__/problem-matchers.test.js index 341f507a..e8d0d78e 100644 --- a/__tests__/problem-matchers.test.js +++ b/__tests__/problem-matchers.test.js @@ -6,7 +6,6 @@ async function all() { await testElixirMixCompileWarning() await testElixirMixTestFailure() await testElixirCredoOutputDefault() - await testElixirDialyzerOutputDefault() } async function testElixirMixCompileError() { @@ -74,24 +73,6 @@ async function testElixirCredoOutputDefault() { assert.equal(column, '7') } -async function testElixirDialyzerOutputDefault() { - const [messagePattern, filePattern] = problemMatcher.find( - ({ owner }) => owner === 'elixir-dialyzerOutputDefault', - ).pattern - - const firstOutput = 'lib/test.ex:15:invalid_contract' - const secondOutput = - 'The @spec for the function does not match the success typing of the function.' - - const [, file, line, code] = firstOutput.match(messagePattern.regexp) - assert.equal(file, 'lib/test.ex') - assert.equal(line, '15') - assert.equal(code, 'invalid_contract') - - const [, message] = secondOutput.match(filePattern.regexp) - assert.equal(message, secondOutput) -} - all() .then(() => process.exit(0)) .catch((err) => { From 1a99452b68bbc6f6a30083da270c6100651b0cef Mon Sep 17 00:00:00 2001 From: Blake Kostner Date: Thu, 23 Mar 2023 17:49:11 -0600 Subject: [PATCH 3/3] remove dist problem matcher --- dist/.github/elixir-matchers.json | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/dist/.github/elixir-matchers.json b/dist/.github/elixir-matchers.json index fefac5f7..df01df60 100644 --- a/dist/.github/elixir-matchers.json +++ b/dist/.github/elixir-matchers.json @@ -57,22 +57,6 @@ "column": 3 } ] - }, - { - "owner": "elixir-dialyzerOutputDefault", - "severity": "warning", - "pattern": [ - { - "regexp": "^(.*):(\\d+):(.*)", - "file": 1, - "line": 2, - "code": 3 - }, - { - "regexp": "^(.*)$", - "message": 1 - } - ] } ] }