Remove Dialyzer-specific problem matcher (#182)

a255120 · Blake Kostner · 2023-03-29 13:43

3 files +0 -51
Message
{commit_body(@commit)}

Files changed

modified .github/elixir-matchers.json
+0 −16
@@ -57,22 +57,6 @@
57 57 "column": 3
58 58 }
59 59 ]
60 },
61 {
62 "owner": "elixir-dialyzerOutputDefault",
63 "severity": "warning",
64 "pattern": [
65 {
66 "regexp": "^(.*):(\\d+):(.*)",
67 "file": 1,
68 "line": 2,
69 "code": 3
70 },
71 {
72 "regexp": "^(.*)$",
73 "message": 1
74 }
75 ]
76 60 }
77 61 ]
78 62 }
modified __tests__/problem-matchers.test.js
+0 −19
@@ -6,7 +6,6 @@ async function all() {
6 6 await testElixirMixCompileWarning()
7 7 await testElixirMixTestFailure()
8 8 await testElixirCredoOutputDefault()
9 await testElixirDialyzerOutputDefault()
10 9 }
11 10
12 11 async function testElixirMixCompileError() {
@@ -74,24 +73,6 @@ async function testElixirCredoOutputDefault() {
74 73 assert.equal(column, '7')
75 74 }
76 75
77 async function testElixirDialyzerOutputDefault() {
78 const [messagePattern, filePattern] = problemMatcher.find(
79 ({ owner }) => owner === 'elixir-dialyzerOutputDefault',
80 ).pattern
81
82 const firstOutput = 'lib/test.ex:15:invalid_contract'
83 const secondOutput =
84 'The @spec for the function does not match the success typing of the function.'
85
86 const [, file, line, code] = firstOutput.match(messagePattern.regexp)
87 assert.equal(file, 'lib/test.ex')
88 assert.equal(line, '15')
89 assert.equal(code, 'invalid_contract')
90
91 const [, message] = secondOutput.match(filePattern.regexp)
92 assert.equal(message, secondOutput)
93 }
94
95 76 all()
96 77 .then(() => process.exit(0))
97 78 .catch((err) => {
modified dist/.github/elixir-matchers.json
+0 −16
@@ -57,22 +57,6 @@
57 57 "column": 3
58 58 }
59 59 ]
60 },
61 {
62 "owner": "elixir-dialyzerOutputDefault",
63 "severity": "warning",
64 "pattern": [
65 {
66 "regexp": "^(.*):(\\d+):(.*)",
67 "file": 1,
68 "line": 2,
69 "code": 3
70 },
71 {
72 "regexp": "^(.*)$",
73 "message": 1
74 }
75 ]
76 60 }
77 61 ]
78 62 }

Parents: ffd9aff