Skip to content

Commit

Permalink
Added support for YAML files with extensions of YML and YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
InfoSec812 committed Mar 16, 2018
1 parent 04bf3e3 commit 5c63b45
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 5c63b45

Please sign in to comment.