Skip to content

Replace Rhino JS engine with QuickJS4J (WebAssembly-based)#1512

Draft
andreaTP wants to merge 1 commit into
alfio-event:mainfrom
andreaTP:quickjs-poc
Draft

Replace Rhino JS engine with QuickJS4J (WebAssembly-based)#1512
andreaTP wants to merge 1 commit into
alfio-event:mainfrom
andreaTP:quickjs-poc

Replace Rhino JS engine with QuickJS4J (WebAssembly-based)

e0e6a18
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Apr 14, 2026 in 1m 8s

Annotations

Check warning on line 108 in src/test/java/alfio/extension/ScriptingExecutionServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWuXZsxKqmBQFrl&open=AZ2MIvWuXZsxKqmBQFrl&pullRequest=1512

Check warning on line 39 in src/main/resources/alfio/extension/mailchimp.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'event' is deprecated.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWIXZsxKqmBQFrS&open=AZ2MIvWIXZsxKqmBQFrS&pullRequest=1512

Check warning on line 76 in src/main/java/alfio/extension/SimpleHttpClientApi.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvVnXZsxKqmBQFrJ&open=AZ2MIvVnXZsxKqmBQFrJ&pullRequest=1512

Check failure on line 104 in src/main/resources/alfio/extension/mailchimp.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected var, use let or const instead.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWIXZsxKqmBQFre&open=AZ2MIvWIXZsxKqmBQFre&pullRequest=1512

Check failure on line 45 in src/main/resources/alfio/extension/mailchimp.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected var, use let or const instead.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWIXZsxKqmBQFrX&open=AZ2MIvWIXZsxKqmBQFrX&pullRequest=1512

Check warning on line 112 in src/main/java/alfio/extension/SimpleHttpClientApi.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvVnXZsxKqmBQFrN&open=AZ2MIvVnXZsxKqmBQFrN&pullRequest=1512

Check warning on line 73 in src/main/resources/alfio/extension/mailchimp.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use `.includes()`, rather than `.indexOf()`, when checking for existence.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWIXZsxKqmBQFra&open=AZ2MIvWIXZsxKqmBQFra&pullRequest=1512

Check warning on line 202 in src/main/java/alfio/extension/ScriptingExecutionService.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Either log this exception and handle it, or rethrow it with some contextual information.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvSrXZsxKqmBQFrE&open=AZ2MIvSrXZsxKqmBQFrE&pullRequest=1512

Check warning on line 94 in src/main/java/alfio/extension/SimpleHttpClientApi.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvVnXZsxKqmBQFrL&open=AZ2MIvVnXZsxKqmBQFrL&pullRequest=1512

Check warning on line 43 in src/main/resources/alfio/extension/mailchimp.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'event' is deprecated.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWIXZsxKqmBQFrW&open=AZ2MIvWIXZsxKqmBQFrW&pullRequest=1512

Check failure on line 84 in src/main/resources/alfio/extension/mailchimp.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected var, use let or const instead.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWIXZsxKqmBQFrb&open=AZ2MIvWIXZsxKqmBQFrb&pullRequest=1512

Check warning on line 49 in src/main/java/alfio/extension/SimpleHttpClientApi.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvVnXZsxKqmBQFrG&open=AZ2MIvVnXZsxKqmBQFrG&pullRequest=1512

Check warning on line 103 in src/main/resources/alfio/extension/mailchimp.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Function 'send' has too many parameters (8). Maximum allowed is 7.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWIXZsxKqmBQFrd&open=AZ2MIvWIXZsxKqmBQFrd&pullRequest=1512

Check warning on line 107 in src/test/java/alfio/extension/ScriptingExecutionServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWuXZsxKqmBQFrk&open=AZ2MIvWuXZsxKqmBQFrk&pullRequest=1512

Check warning on line 40 in src/main/resources/alfio/extension/mailchimp.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'event' is deprecated.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWIXZsxKqmBQFrT&open=AZ2MIvWIXZsxKqmBQFrT&pullRequest=1512

Check failure on line 42 in src/main/resources/alfio/extension/mailchimp.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected var, use let or const instead.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWIXZsxKqmBQFrU&open=AZ2MIvWIXZsxKqmBQFrU&pullRequest=1512

Check warning on line 100 in src/test/java/alfio/extension/ScriptingExecutionServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWuXZsxKqmBQFrj&open=AZ2MIvWuXZsxKqmBQFrj&pullRequest=1512

Check warning on line 95 in src/main/resources/alfio/extension/mailchimp.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWIXZsxKqmBQFrc&open=AZ2MIvWIXZsxKqmBQFrc&pullRequest=1512

Check warning on line 39 in src/main/resources/alfio/extension/mailchimp.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Consider moving declaration of 'firstName' as it is referenced outside current binding context.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWIXZsxKqmBQFrR&open=AZ2MIvWIXZsxKqmBQFrR&pullRequest=1512

Check warning on line 103 in src/main/java/alfio/extension/SimpleHttpClientApi.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvVnXZsxKqmBQFrM&open=AZ2MIvVnXZsxKqmBQFrM&pullRequest=1512

Check warning on line 121 in src/main/java/alfio/extension/SimpleHttpClientApi.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvVnXZsxKqmBQFrO&open=AZ2MIvVnXZsxKqmBQFrO&pullRequest=1512

Check warning on line 130 in src/main/java/alfio/extension/SimpleHttpClientApi.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvVnXZsxKqmBQFrP&open=AZ2MIvVnXZsxKqmBQFrP&pullRequest=1512

Check warning on line 89 in src/test/java/alfio/extension/ScriptingExecutionServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWuXZsxKqmBQFrg&open=AZ2MIvWuXZsxKqmBQFrg&pullRequest=1512

Check warning on line 98 in src/test/java/alfio/extension/ScriptingExecutionServiceTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the declaration of thrown exception 'java.lang.Exception', as it cannot be thrown from method's body.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvWuXZsxKqmBQFri&open=AZ2MIvWuXZsxKqmBQFri&pullRequest=1512

Check warning on line 58 in src/main/java/alfio/extension/SimpleHttpClientApi.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace generic exceptions with specific library exceptions or a custom exception.

See more on https://sonarcloud.io/project/issues?id=alfio-event_alf.io&issues=AZ2MIvVnXZsxKqmBQFrH&open=AZ2MIvVnXZsxKqmBQFrH&pullRequest=1512