Skip to content

Fix SonarQube code quality issues #41

Fix SonarQube code quality issues

Fix SonarQube code quality issues #41

Triggered via pull request November 11, 2025 21:12
Status Failure
Total duration 34s
Artifacts

pr-tests.yml

on: pull_request
Matrix: test
Audit Examples
0s
Audit Examples
PR Checks Summary
4s
PR Checks Summary
Fit to window
Zoom out
Zoom in

Annotations

41 errors and 8 warnings
Test on Node.js 20.x: src/module-system/module-system.ts#L1583
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 20.x: src/module-system/module-system.ts#L1576
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 20.x: src/lexer.ts#L574
'code' is possibly 'undefined'.
Test on Node.js 20.x: src/lexer.ts#L574
'code' is possibly 'undefined'.
Test on Node.js 20.x: src/lexer.ts#L573
'code' is possibly 'undefined'.
Test on Node.js 20.x: src/lexer.ts#L573
'code' is possibly 'undefined'.
Test on Node.js 20.x: src/codegen.ts#L794
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 20.x: src/codegen.ts#L756
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 20.x: src/codegen.ts#L620
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 20.x: src/codegen.ts#L601
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 24.x: src/module-system/module-system.ts#L1583
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 24.x: src/module-system/module-system.ts#L1576
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 24.x: src/lexer.ts#L574
'code' is possibly 'undefined'.
Test on Node.js 24.x: src/lexer.ts#L574
'code' is possibly 'undefined'.
Test on Node.js 24.x: src/lexer.ts#L573
'code' is possibly 'undefined'.
Test on Node.js 24.x: src/lexer.ts#L573
'code' is possibly 'undefined'.
Test on Node.js 24.x: src/codegen.ts#L794
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 24.x: src/codegen.ts#L756
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 24.x: src/codegen.ts#L620
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 24.x: src/codegen.ts#L601
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 23.x: src/module-system/module-system.ts#L1583
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 23.x: src/module-system/module-system.ts#L1576
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 23.x: src/lexer.ts#L574
'code' is possibly 'undefined'.
Test on Node.js 23.x: src/lexer.ts#L574
'code' is possibly 'undefined'.
Test on Node.js 23.x: src/lexer.ts#L573
'code' is possibly 'undefined'.
Test on Node.js 23.x: src/lexer.ts#L573
'code' is possibly 'undefined'.
Test on Node.js 23.x: src/codegen.ts#L794
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 23.x: src/codegen.ts#L756
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 23.x: src/codegen.ts#L620
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 23.x: src/codegen.ts#L601
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 22.x: src/module-system/module-system.ts#L1583
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 22.x: src/module-system/module-system.ts#L1576
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 22.x: src/lexer.ts#L574
'code' is possibly 'undefined'.
Test on Node.js 22.x: src/lexer.ts#L574
'code' is possibly 'undefined'.
Test on Node.js 22.x: src/lexer.ts#L573
'code' is possibly 'undefined'.
Test on Node.js 22.x: src/lexer.ts#L573
'code' is possibly 'undefined'.
Test on Node.js 22.x: src/codegen.ts#L794
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 22.x: src/codegen.ts#L756
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 22.x: src/codegen.ts#L620
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
Test on Node.js 22.x: src/codegen.ts#L601
Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
PR Checks Summary
Process completed with exit code 1.
Test on Node.js 20.x: src/cli/program.ts#L591
Async arrow function has a complexity of 16. Maximum allowed is 15
Test on Node.js 20.x: src/cli/localized-program.ts#L70
Arrow function has a complexity of 16. Maximum allowed is 15
Test on Node.js 24.x: src/cli/program.ts#L591
Async arrow function has a complexity of 16. Maximum allowed is 15
Test on Node.js 24.x: src/cli/localized-program.ts#L70
Arrow function has a complexity of 16. Maximum allowed is 15
Test on Node.js 23.x: src/cli/program.ts#L591
Async arrow function has a complexity of 16. Maximum allowed is 15
Test on Node.js 23.x: src/cli/localized-program.ts#L70
Arrow function has a complexity of 16. Maximum allowed is 15
Test on Node.js 22.x: src/cli/program.ts#L591
Async arrow function has a complexity of 16. Maximum allowed is 15
Test on Node.js 22.x: src/cli/localized-program.ts#L70
Arrow function has a complexity of 16. Maximum allowed is 15