Skip to content

Commit

Permalink
Merge pull request #3 from InfoSec812/support-yaml-files
Browse files Browse the repository at this point in the history
Added support for YAML files with extensions of YML and YAML
  • Loading branch information
x1ddos committed Jul 13, 2018
2 parents 0194eb2 + 5c63b45 commit 6709751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func addLicense(path string, fmode os.FileMode, typ string, data *copyrightData)
lic, err = prefix(typ, data, "/**", " * ", " */")
case ".cc", ".cpp", ".cs", ".go", ".hh", ".hpp", ".java", ".m", ".mm", ".proto", ".rs", ".scala", ".swift", ".dart":
lic, err = prefix(typ, data, "", "// ", "")
case ".py", ".sh":
case ".py", ".sh", ".yaml", ".yml":
lic, err = prefix(typ, data, "", "# ", "")
case ".el", ".lisp":
lic, err = prefix(typ, data, "", ";; ", "")
Expand Down

0 comments on commit 6709751

Please sign in to comment.