ESTree AST should not be serialized when Armor is disabled

Description

In https://sonarsource.atlassian.net/browse/JS-166, we made sure to not serialize the AST when there is no consumer.

We assumed that the presence of a consumer means that it will do something with it.

That being said, we are in a development state, where armor is not always enabled. As an intermediate state, we need to make sure that, even if the Armor consumer is present, we only serialize the AST if the flag sonar.armor.internal.enabled is set to true.

Note that it is not possible to communicate this information at runtime on the Armor side since the Armor plugin will be executed afterward.

Activity

Show:
Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Sprint

Fix versions

Priority

Sentry

Created June 14, 2024 at 7:48 AM
Updated October 16, 2024 at 12:53 PM
Resolved June 14, 2024 at 12:06 PM