Skip to content

Commit 9103d86

Browse files
authored
Add support for .lr and .lr.go files (#85)
Signed-off-by: Christian Zunker <[email protected]>
1 parent 9f8cdf2 commit 9103d86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

addlicense/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ func licenseHeader(path string, tmpl *template.Template, data LicenseData) ([]by
364364
lic, err = executeTemplate(tmpl, data, "/*", " * ", " */")
365365
case ".js", ".mjs", ".cjs", ".jsx", ".tsx", ".css", ".scss", ".sass", ".ts":
366366
lic, err = executeTemplate(tmpl, data, "/**", " * ", " */")
367-
case ".cc", ".cpp", ".cs", ".go", ".hh", ".hpp", ".m", ".mm", ".proto", ".rs", ".swift", ".dart", ".groovy", ".v", ".sv":
367+
case ".cc", ".cpp", ".cs", ".go", ".hh", ".hpp", ".m", ".mm", ".proto", ".rs", ".swift", ".dart", ".groovy", ".v", ".sv", ".lr":
368368
lic, err = executeTemplate(tmpl, data, "", "// ", "")
369369
case ".py", ".sh", ".bash", ".zsh", ".yaml", ".yml", ".dockerfile", "dockerfile", ".rb", "gemfile", ".ru", ".tcl", ".hcl", ".tf", ".tfvars", ".nomad", ".bzl", ".pl", ".pp", ".ps1", ".psd1", ".psm1":
370370
lic, err = executeTemplate(tmpl, data, "", "# ", "")

addlicense/main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ func TestLicenseHeader(t *testing.T) {
314314
},
315315
{
316316
[]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"},
317+
"f.rs", "f.swift", "f.dart", "f.groovy", "f.v", "f.sv", "f.php", "f.lr"},
318318
"// HYS\n\n",
319319
},
320320
{

0 commit comments

Comments
 (0)