SOnar codesmell issue was there in Gatling java code

// code smell issue :
// Move the contents of this initializer to a standard constructor or to field initializers.
The above code was having Sonar cloud / sonar lint code smell issue - We cannot able to remove above one.

First, to me this so-called code smell is purely an opinion from the SonarSource team. I’d be curious of its ground.

Then, as stated, you can move this initializer block content into an explicit parameterless constructor. It will ne more verbose though.

In your stead, I would disable this Sonar rule.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.