You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recreate the analysis engine whenever we fetch the singleton instance of SonarLintEngine. That's bad for two reasons.
There should not be any side-effect when we fetch the singleton instance.
Recreation is necessary for tests so we should instead refactor our tests to invoke recreateAnalysisEngine before each test case.
The text was updated successfully, but these errors were encountered:
algomaster99
changed the title
Constructor of SonarLint engine should not produce any side-effects
Constructor of SonarLintEngine should not produce any side-effects
Feb 2, 2022
Reference: #696 (comment)
We recreate the analysis engine whenever we fetch the singleton instance of
SonarLintEngine
. That's bad for two reasons.recreateAnalysisEngine
before each test case.The text was updated successfully, but these errors were encountered: