Skip to content

Commit

Permalink
Support adding license header for classes without package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Omico committed Jul 28, 2022
1 parent d78b6e3 commit 9831c59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public final class KotlinConstants {

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

private KotlinConstants() {}
}

0 comments on commit 9831c59

Please sign in to comment.