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

JS-385 Fix SonarLint ITS #4889

Merged
merged 2 commits into from
Nov 1, 2024
Merged

JS-385 Fix SonarLint ITS #4889

merged 2 commits into from
Nov 1, 2024

Conversation

vdiez
Copy link
Contributor

@vdiez vdiez commented Nov 1, 2024

@vdiez vdiez requested a review from zglicz November 1, 2024 11:11
@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title Fix SonarLint ITS JS-385 Fix SonarLint ITS Nov 1, 2024
Copy link

sonarqube-next bot commented Nov 1, 2024

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Copy link
Contributor

@zglicz zglicz left a comment

Choose a reason for hiding this comment

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

Nice, also the tests take 9 minutes now. Makes more sense.

[INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running com.sonar.javascript.it.plugin.sonarlint.tests.SonarLintTest [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 459.2 s -- in com.sonar.javascript.it.plugin.sonarlint.tests.SonarLintTest [INFO] Running com.sonar.javascript.it.plugin.sonarlint.tests.SonarLintTestCodeAnalysisTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 49.52 s -- in com.sonar.javascript.it.plugin.sonarlint.tests.SonarLintTestCodeAnalysisTest [INFO]

@@ -61,14 +60,6 @@ private static Pattern pluginFilenameMatcher() {
: Pattern.compile("sonar-javascript-plugin-[0-9.]*(?:-SNAPSHOT)?\\.jar");
}

public static Path homeDir() {
try {
return Path.of(requireNonNull(TestUtils.class.getResource("TestUtils.txt")).toURI());
Copy link
Contributor

Choose a reason for hiding this comment

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

couldn't make this work, huh?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we could, but @alban-auzeill mentioned that it makes no sense to use the path of an existing resource to build the homedir, and it's much easier to go directly to the artifact path, as we know where it is. This homeDir method was only used to locate the artifact.

@vdiez vdiez merged commit 12baa4d into master Nov 1, 2024
20 of 21 checks passed
@vdiez vdiez deleted the fix-sonarlint branch November 1, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants