Browse Source

[Feature][Style] Make sure there is one and only one empty line at the end of each java file (#11520)

3.1.0-release
Eric Gao 2 years ago committed by GitHub
parent
commit
f93e93cfd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertConfig.java
  2. 3
      style/spotless_dolphinscheduler_formatter.xml

2
dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertConfig.java

@ -23,6 +23,7 @@ import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties("alert")
public final class AlertConfig {
private int port;
private int waitTimeout;
@ -42,5 +43,4 @@ public final class AlertConfig {
public void setWaitTimeout(final int waitTimeout) {
this.waitTimeout = waitTimeout;
}
}

3
style/spotless_dolphinscheduler_formatter.xml

@ -18,7 +18,7 @@
* limitations under the License.
*/
-->
<profiles version="13">
<profiles version="22">
<profile kind="CodeFormatterProfile" name="'DolphinScheduler Apache Current'" version="13">
<setting id="org.eclipse.jdt.core.compiler.source" value="1.8" />
<setting id="org.eclipse.jdt.core.compiler.compliance" value="1.8" />
@ -47,5 +47,6 @@
<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="106" />
<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="106" />
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call.count_dependent" value="16|5|80" />
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="insert"/>
</profile>
</profiles>

Loading…
Cancel
Save