aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go30
1 files changed, 15 insertions, 15 deletions
diff --git a/config.go b/config.go
index 8146032..00164ba 100644
--- a/config.go
+++ b/config.go
@@ -19,19 +19,17 @@ file_copyright_text =
max_line_match = 10
[match-file-comment]
-pattern = "^.*\\.(adoc|asciidoc|c|cc|cpp|cs|dart|go|h|hh|hpp|java|js|jsx|jsonc|kt|kts|php|rs|sass|scss|swift|ts|tsx)$"
+pattern = "^.*\\.(adoc|asciidoc|c|cc|cpp|cs|dart|go|h|hh|hpp|java|js|jsx)$"
+pattern = "^.*\\.(jsonc|kt|kts|php|rs|sass|scss|swift|ts|tsx)$"
+pattern = "^(.*/)?(go.mod|go.work)$"
prefix = "//"
[match-file-comment]
-pattern = "^(.*/)?go.mod$"
-prefix = "//"
-
-[match-file-comment]
-pattern = "^.*\\.(aff|bash|csh|dockerfile|env|gitignore|hcl|ipynb|make|pl|pm|py|ps1|rb|sh|tf|yaml|yml|zsh)$"
-prefix = "#"
-
-[match-file-comment]
-pattern = "^(.*/)?[Mm]akefile$"
+pattern = "^.*\\.(aff|aww|bash|csh|d2|dockerfile|env|gitignore|gitmodules|hcl|ipynb)$"
+pattern = "^.*\\.(make|pl|pm|py|ps1|rb|sh|tf|toml|yaml|yml|zsh)$"
+pattern = "^(.*/)?([Dd]ockerfile|[Mm]akefile|robots.txt)$"
+# systemd.unit(5).
+pattern = "^.*\\.(automount|device|mount|path|scope|service|slice|socket|swap|target|timer)$"
prefix = "#"
[match-file-comment]
@@ -40,7 +38,7 @@ prefix = "/*"
suffix = "*/"
[match-file-comment]
-pattern = "^.*\\.(fxml|htm|html|html5|kml|markdown|md|xml)$"
+pattern = "^.*\\.(fxml|gohtml|htm|html|html5|kml|markdown|md|xml)$"
prefix = "<!--"
suffix = "-->"
@@ -59,10 +57,12 @@ prefix = "%"
# File name that match with this pattern will have the ".license" file
# created.
[match-file-comment]
-pattern = "^.*\\.(apk|app|bz2|csv|doc|docx|exe|gif|gz|jpeg|jpg|json|pdf|png|ppt|pptx|svg|svgz|tar|tgz|xls|xlsx|zip)$"
-
-[match-file-comment]
-pattern = "^(.*/)?go.sum$"
+pattern = "^.*\\.(apk|app|bz2|exe|gz|tar|tgz|zip)$"
+pattern = "^.*\\.(csv|doc|docx|json|pdf|ppt|pptx|xls|xlsx)$"
+pattern = "^.*\\.(bmp|gif|ico|jpeg|jpg|png|svg|svgz|webp)$"
+pattern = "^.*\\.(3gp|avi|flv|mkv|mp3|mp4|mpeg|mpg|mpg4)$"
+pattern = "^.*\\.(acc|ogg|mp3)$"
+pattern = "^(.*/)?(go.sum|go.work.sum)$"
[match-license]
pattern = "^(//+|#+|/\\*+|<!--+|--+)?\\s*(.*)governed by a BSD-style(.*)$"