diff --git a/src/language/linter.js b/src/language/linter.js index 6415c1d1..ab4f5e18 100644 --- a/src/language/linter.js +++ b/src/language/linter.js @@ -424,7 +424,7 @@ module.exports = class Linter { } if (rules.QualifiedCheck) { - if (!statement.some(part => part.value && [`LIKEDS`, `QUALIFIED`].includes(part.value.toUpperCase()))) { + if (!statement.some(part => part.value && [`LIKEDS`, `LIKEREC`, `QUALIFIED`].includes(part.value.toUpperCase()))) { errors.push({ range: new vscode.Range(statementStart, statementEnd), offset: undefined, diff --git a/tests/suite/index.js b/tests/suite/index.js index 49fd7029..411a3bd5 100644 --- a/tests/suite/index.js +++ b/tests/suite/index.js @@ -1342,6 +1342,26 @@ module.exports = { }); }, + qualified1: async () => { + const lines = [ + `**FREE`, + `Dcl-Ds Kx Likerec(TitXe :*Key);`, + `Dcl-s MyVariable2 Char(20);`, + ``, + `Dsply MyVariable2;`, + ``, + `Return`, + ].join(`\n`); + + const parser = new Parser(); + const cache = await parser.getDocs(URI, lines); + const { errors } = Linter.getErrors(lines, { + QualifiedCheck: true, + }, cache); + + assert.strictEqual(errors.length, 0, `Expect length of 0`); + }, + fixed1: async () => { const lines = [ ``,