Implement intracomment stripping with a second round of java_scrub.
This is cleaner than using core.replace and regular expressions.
Behavior appears to be equivalent, including the removal of the full lines containing the stripping tags.
Tested:
copybara third_party/java_src/google_java_format/copy.bara.sky presubmit_piper_to_github 311003756 --init-history --squash --dry-run --git-destination-path /tmp/foo --force --piper-only-presubmit=false
copybara third_party/java_src/auto/opensource/copy.bara.sky presubmit_piper_to_github 311003756 --init-history --squash --dry-run --git-destination-path /tmp/foo --force --piper-only-presubmit=false --ignore-noop
copybara third_party/java_src/turbine/copy.bara.sky postsubmit_piper_to_github --init-history --squash --dry-run --git-destination-path /tmp/foo --force --piper-only-presubmit=false
copybara third_party/java_src/error_prone/opensource/copy.bara.sky postsubmit_piper_to_github --init-history --squash --dry-run --git-destination-path /tmp/foo --force --piper-only-presubmit=false
PiperOrigin-RevId: 311003756
1 file changed