This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
ERROR: Caused by: Line 5 of report refers to a file with an unknown language (TypeScript file) #142
Labels
Comments
Is it because // sonar-scanner.js
const scanner = require('sonarqube-scanner');
scanner(
{
serverUrl: 'http://sonarqube.test.lan',
token: 'xxxxxx',
options: {
'sonar.login': 'xxxxxx',
'sonar.host.url': 'http://sonarqube.test.lan',
'sonar.projectName': 'umi4-web-demo',
'sonar.projectKey': 'umi4-web-demo',
'sonar.sources': '.',
'sonar.projectBaseDir': '.',
'sonar.javascript.lcov.reportPaths': './coverage/lcov.info',
'sonar.testExecutionReportPaths': './coverage/test-reporter.xml',
'sonar.sourceEncoding': 'UTF-8',
'sonar.eslint.reportPath': './report.json',
'sonar.tests.inclusions': '**/*.test.tsx,**/*.test.ts',
'sonar.exclusions': '**/*.test.tsx',
},
},
() => process.exit(),
); |
yujingxiacai
changed the title
ERROR: Caused by: Line 5 of report refers to a file with an unknown language (typescript file)
ERROR: Caused by: Line 5 of report refers to a file with an unknown language (TypeScript file)
Jul 25, 2022
Hey @yujingxiacai, Sonar should support TypeScript. |
Closing this as stale. Feel free to reopen in new information comes up. |
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version:
Error:
Hello, have someone know this,
No error when i change
dp_function.test.ts
todp_function.test.js
。it haunted me for a long time😂lol
The text was updated successfully, but these errors were encountered: