We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f8cdf2 commit 9103d86Copy full SHA for 9103d86
addlicense/main.go
@@ -364,7 +364,7 @@ func licenseHeader(path string, tmpl *template.Template, data LicenseData) ([]by
364
lic, err = executeTemplate(tmpl, data, "/*", " * ", " */")
365
case ".js", ".mjs", ".cjs", ".jsx", ".tsx", ".css", ".scss", ".sass", ".ts":
366
lic, err = executeTemplate(tmpl, data, "/**", " * ", " */")
367
- case ".cc", ".cpp", ".cs", ".go", ".hh", ".hpp", ".m", ".mm", ".proto", ".rs", ".swift", ".dart", ".groovy", ".v", ".sv":
+ case ".cc", ".cpp", ".cs", ".go", ".hh", ".hpp", ".m", ".mm", ".proto", ".rs", ".swift", ".dart", ".groovy", ".v", ".sv", ".lr":
368
lic, err = executeTemplate(tmpl, data, "", "// ", "")
369
case ".py", ".sh", ".bash", ".zsh", ".yaml", ".yml", ".dockerfile", "dockerfile", ".rb", "gemfile", ".ru", ".tcl", ".hcl", ".tf", ".tfvars", ".nomad", ".bzl", ".pl", ".pp", ".ps1", ".psd1", ".psm1":
370
lic, err = executeTemplate(tmpl, data, "", "# ", "")
addlicense/main_test.go
@@ -314,7 +314,7 @@ func TestLicenseHeader(t *testing.T) {
314
},
315
{
316
[]string{"f.cc", "f.cpp", "f.cs", "f.go", "f.hh", "f.hpp", "f.m", "f.mm", "f.proto",
317
- "f.rs", "f.swift", "f.dart", "f.groovy", "f.v", "f.sv", "f.php"},
+ "f.rs", "f.swift", "f.dart", "f.groovy", "f.v", "f.sv", "f.php", "f.lr"},
318
"// HYS\n\n",
319
320
0 commit comments