Support *.BUILD files
bazel build files for external repos -- eg. used in conjunction with `http_archive` -- are often named <repo>.BUILD
This commit is contained in:
2
main.go
2
main.go
@@ -295,7 +295,7 @@ func licenseHeader(path string, tmpl *template.Template, data licenseData) ([]by
|
||||
lic, err = executeTemplate(tmpl, data, "/**", " * ", " */")
|
||||
case ".cc", ".cpp", ".cs", ".go", ".hcl", ".hh", ".hpp", ".m", ".mm", ".proto", ".rs", ".swift", ".dart", ".groovy", ".v", ".sv":
|
||||
lic, err = executeTemplate(tmpl, data, "", "// ", "")
|
||||
case ".py", ".sh", ".yaml", ".yml", ".dockerfile", "dockerfile", ".rb", "gemfile", ".tcl", ".tf", ".bzl", ".pl", ".pp", "build":
|
||||
case ".py", ".sh", ".yaml", ".yml", ".dockerfile", "dockerfile", ".rb", "gemfile", ".tcl", ".tf", ".bzl", ".pl", ".pp", "build", ".build":
|
||||
lic, err = executeTemplate(tmpl, data, "", "# ", "")
|
||||
case ".el", ".lisp":
|
||||
lic, err = executeTemplate(tmpl, data, "", ";; ", "")
|
||||
|
||||
Reference in New Issue
Block a user