diff --git a/src/linter/html/linter.ts b/src/linter/html/linter.ts index 109faee00..acbe1e4a2 100644 --- a/src/linter/html/linter.ts +++ b/src/linter/html/linter.ts @@ -18,7 +18,7 @@ export default async function lintHtml({workspace, context}: LinterParameters) { htmlResources.push(resource); })); } else { - htmlResources = await workspace.byGlob("**/{*.html}"); + htmlResources = await workspace.byGlob("**/*.html"); } await Promise.all(htmlResources.map(async (resource: Resource) => { diff --git a/test/fixtures/linter/projects/com.ui5.troublesome.app/webapp/test/testsuite.qunit.html b/test/fixtures/linter/projects/com.ui5.troublesome.app/webapp/test/testsuite.qunit.html index 97f8b3954..b122577a8 100644 --- a/test/fixtures/linter/projects/com.ui5.troublesome.app/webapp/test/testsuite.qunit.html +++ b/test/fixtures/linter/projects/com.ui5.troublesome.app/webapp/test/testsuite.qunit.html @@ -8,6 +8,12 @@ QUnit test suite for the UI5 Application: com.ui5.troublesome.app + + diff --git a/test/lib/linter/snapshots/linter.ts.md b/test/lib/linter/snapshots/linter.ts.md index f595d0d8d..6de116c18 100644 --- a/test/lib/linter/snapshots/linter.ts.md +++ b/test/lib/linter/snapshots/linter.ts.md @@ -727,6 +727,24 @@ Generated by [AVA](https://avajs.dev). messages: [], warningCount: 0, }, + { + coverageInfo: [], + errorCount: 0, + fatalErrorCount: 0, + filePath: 'webapp/test/testsuite.qunit.html', + messages: [ + { + column: 3, + fatal: undefined, + line: 12, + message: 'Use of unsafe inline script', + messageDetails: 'Content Security Policy (https://ui5.sap.com/#/topic/fe1a6dba940e479fb7c3bc753f92b28c)', + ruleId: 'ui5-linter-csp-unsafe-inline-script', + severity: 1, + }, + ], + warningCount: 1, + }, { coverageInfo: [ { diff --git a/test/lib/linter/snapshots/linter.ts.snap b/test/lib/linter/snapshots/linter.ts.snap index 4136ec1b7..6dc044101 100644 Binary files a/test/lib/linter/snapshots/linter.ts.snap and b/test/lib/linter/snapshots/linter.ts.snap differ