Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SONARPHP-1344 Do not try to cache file hashes when cache is disabled #1030

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

nils-werner-sonarsource
Copy link
Contributor

No description provided.

@sonarsource-next
Copy link

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -100,7 +101,7 @@ public class PHPSensorTest {
@org.junit.Rule
public LogTester logTester = new LogTester();

private final SensorContextTester context = SensorContextTester.create(new File("src/test/resources").getAbsoluteFile());
private SensorContextTester context = SensorContextTester.create(new File("src/test/resources").getAbsoluteFile());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed this: Actually, there is no need to initialize this here, as we are calling resetContext() in the before() method anyway which resets this.

@nils-werner-sonarsource nils-werner-sonarsource merged commit 3ddc5a0 into master Jan 12, 2023
@nils-werner-sonarsource nils-werner-sonarsource deleted the SONARPHP-1344b branch January 12, 2023 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants