[java-source-utils] Fix lgtm java/path-injection-local #1079
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context: e11d024
Commit e11d024 attempted to fix LGTM-reported
java/path-injection-local
warnings by using the comment// lgtm [java/path-injection-local]
.Unfortunately, this is insufficient: the comment also needs to provide a 25+ character justification for why the offending statement can be ignored. This justification was not provided.
Update the
// lgtm [java/path-injection-local]
comments to provide a justification, as required by tooling.Copying the longer justification from e11d024:
See also
JavaSourceUtils.cs
, which passes a value located within$(IntermediateOutputPath)
tojava-source-utils.jar --output-javadoc
. Allowing--output-javadoc
to contain directory separator chars is what makes this possible!