Skip to content

Commit 9831c59

Browse files
committed
Support adding license header for classes without package name
1 parent d78b6e3 commit 9831c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/main/java/com/diffplug/spotless/kotlin/KotlinConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
public final class KotlinConstants {
1919

2020
// '^' is prepended to the regex in LICENSE_HEADER_DELIMITER later in FormatExtension.licenseHeader(String, String)
21-
public static final String LICENSE_HEADER_DELIMITER = "(package |@file)";
21+
public static final String LICENSE_HEADER_DELIMITER = "(package |@file|import )";
2222

2323
private KotlinConstants() {}
2424
}

0 commit comments

Comments
 (0)