mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 15:22:16 -05:00
Fix Google Java Format tests and return code, and show output only if changed (#3810)
This commit is contained in:
parent
c26ca9fb2c
commit
053a52e2f6
6 changed files with 8 additions and 11 deletions
7
.automation/test/google_java_format/gjf_good_1.java
Normal file
7
.automation/test/google_java_format/gjf_good_1.java
Normal file
|
@ -0,0 +1,7 @@
|
|||
/** Represents a good Java file. */
|
||||
public static class JavaGood {
|
||||
// Prints "Hello, World" to the terminal window.
|
||||
private void helloWorld() {
|
||||
System.out.println("Hello, World");
|
||||
}
|
||||
}
|
|
@ -9,5 +9,4 @@ public class Application {
|
|||
public static void main(final String[] args) {
|
||||
SpringApplication.run(Application.class, args);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
/**
|
||||
* Represents a good Java file.
|
||||
*/
|
||||
public static class JavaGood {
|
||||
// Prints "Hello, World" to the terminal window.
|
||||
private void helloWorld() {
|
||||
System.out.println("Hello, World");
|
||||
}
|
||||
}
|
|
@ -911,7 +911,7 @@ fi
|
|||
LINTER_COMMANDS_ARRAY['GITLEAKS']="gitleaks detect --no-banner --no-git -c ${GITLEAKS_LINTER_RULES} -v -s"
|
||||
LINTER_COMMANDS_ARRAY['GHERKIN']="gherkin-lint -c ${GHERKIN_LINTER_RULES}"
|
||||
LINTER_COMMANDS_ARRAY['GO']="golangci-lint run --fast -c ${GO_LINTER_RULES}"
|
||||
LINTER_COMMANDS_ARRAY['GOOGLE_JAVA_FORMAT']="java -jar /usr/bin/google-java-format"
|
||||
LINTER_COMMANDS_ARRAY['GOOGLE_JAVA_FORMAT']="java -jar /usr/bin/google-java-format --dry-run --set-exit-if-changed"
|
||||
LINTER_COMMANDS_ARRAY['GROOVY']="npm-groovy-lint -c ${GROOVY_LINTER_RULES} --failon warning --no-insight"
|
||||
LINTER_COMMANDS_ARRAY['HTML']="htmlhint --config ${HTML_LINTER_RULES}"
|
||||
LINTER_COMMANDS_ARRAY['JAVA']="java -jar /usr/bin/checkstyle -c ${JAVA_LINTER_RULES}"
|
||||
|
|
Loading…
Reference in a new issue