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

FIX (PMD): @W-15708421@: Read PMD results from outfile instead of stdout. #1551

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

jfeingold35
Copy link
Collaborator

@jfeingold35 jfeingold35 commented Jul 24, 2024

Fixes Issue #1439 .

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yarn build makes these code format changes, and I'm sick of manually removing them so I'm adding them in this PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't add a net-new test, because this behavior is a little hard to reliably and permanently test for. I can try to do that if people would like, though.

this.logger.trace(`About to run PMD rules. Targets: ${targetPaths.length}, Selected rules: ${selectedRules}`);

const stdout = await (await PmdWrapper.create({
await (await PmdWrapper.create({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does it make sense to put the stdout in as a trace log (if it is non-empty) instead of just dropping it? It might help with debugging purposes in the future.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good call. I'll do that.

@jfeingold35 jfeingold35 merged commit 7a3a4cc into dev Jul 24, 2024
13 checks passed
@jfeingold35 jfeingold35 deleted the d/W-15708421 branch August 7, 2024 15:29
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