Add support for Terraform files

This commit is contained in:
Morgante Pell
2018-07-20 18:01:17 -04:00
parent 6709751243
commit 76852768cb
3 changed files with 19 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ func addLicense(path string, fmode os.FileMode, typ string, data *copyrightData)
return nil
case ".c", ".h":
lic, err = prefix(typ, data, "/*", " * ", " */")
case ".js", ".css":
case ".js", ".css", ".tf":
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, "", "// ", "")