Skip to content

Commit 6709751

Browse files
authored
Merge pull request #3 from InfoSec812/support-yaml-files
Added support for YAML files with extensions of YML and YAML
2 parents 0194eb2 + 5c63b45 commit 6709751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func addLicense(path string, fmode os.FileMode, typ string, data *copyrightData)
121121
lic, err = prefix(typ, data, "/**", " * ", " */")
122122
case ".cc", ".cpp", ".cs", ".go", ".hh", ".hpp", ".java", ".m", ".mm", ".proto", ".rs", ".scala", ".swift", ".dart":
123123
lic, err = prefix(typ, data, "", "// ", "")
124-
case ".py", ".sh":
124+
case ".py", ".sh", ".yaml", ".yml":
125125
lic, err = prefix(typ, data, "", "# ", "")
126126
case ".el", ".lisp":
127127
lic, err = prefix(typ, data, "", ";; ", "")

0 commit comments

Comments
 (0)