Skip to content

Commit d8f1cad

Browse files
committed
feat(buck): add support for buck2 files (#188)
ISSUE: #188 Buck2 is a hermetic build system similar to Bazel but written in Rust. CHANGELOG: - [ ] Update comment group for '#' style comments. - [ ] Update test to ensure detection works.
1 parent 1a754c1 commit d8f1cad

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ func licenseHeader(path string, tmpl *template.Template, data licenseData) ([]by
320320
lic, err = executeTemplate(tmpl, data, "", "// ", "")
321321
case
322322
".awk",
323+
".buckconfig", "buck",
323324
".bzl", ".bazel", "build", ".build",
324325
".dockerfile", "dockerfile",
325326
".ex", ".exs",

main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ func TestLicenseHeader(t *testing.T) {
345345
{
346346
[]string{
347347
"f.awk",
348+
"f.buckconfig", "buck",
348349
"f.bzl", "f.bazel", "build", "f.build",
349350
"f.dockerfile", "dockerfile",
350351
"f.ex", "f.exs",

0 commit comments

Comments
 (0)