From 4ba36d147f79c6d877f45ccaf7cf174276474176 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 27 Aug 2020 09:58:40 -0700 Subject: [PATCH] samples: add presubmit lint check (#216) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore(java_templates): add lint/static analysis presubmit checks for samples * chore(java_templates): add lint/static analysis presubmit checks for samples * chore: fix trailing whitespace Source-Author: Jeff Ching Source-Date: Mon Aug 17 14:29:16 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: c3caf0704f25a0c365f1c315e804a30b87c62a75 Source-Link: https://github.com/googleapis/synthtool/commit/c3caf0704f25a0c365f1c315e804a30b87c62a75 * chore(java_templates): stop running pmd/spotbugs checks for samples This was creating too much noise. We will revisit with other options and/or tune these checks. Source-Author: Jeff Ching Source-Date: Wed Aug 19 12:26:49 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 9602086c6c5b05db77950c7f7495a2a3868f3537 Source-Link: https://github.com/googleapis/synthtool/commit/9602086c6c5b05db77950c7f7495a2a3868f3537 * chore: fix line length Co-authored-by: Jeff Ching --- .../main/java/com/example/texttospeech/SynthesizeTextBeta.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/texttospeech/snippets/src/main/java/com/example/texttospeech/SynthesizeTextBeta.java b/texttospeech/snippets/src/main/java/com/example/texttospeech/SynthesizeTextBeta.java index f9154adf198..d4087a05d9e 100644 --- a/texttospeech/snippets/src/main/java/com/example/texttospeech/SynthesizeTextBeta.java +++ b/texttospeech/snippets/src/main/java/com/example/texttospeech/SynthesizeTextBeta.java @@ -35,7 +35,8 @@ /** * Google Cloud TextToSpeech API sample application. Example usage: mvn package - * exec:java-Dexec.mainClass='com.example.texttospeech.SynthesizeTextBeta' -Dexec.args='--text "hello"' + * exec:java-Dexec.mainClass='com.example.texttospeech.SynthesizeTextBeta' -Dexec.args='--text + * "hello"' */ public class SynthesizeTextBeta {