[try to] detect go based on header

This commit is contained in:
Jesse Portnoy
2023-07-29 03:57:41 +01:00
parent ae80bdd9b7
commit b3b9a479de
+1 -1
View File
@@ -2,7 +2,7 @@ filetype: go
detect:
filename: "\\.go$"
header: "^package\\s.*"
header: "(^package\\s.*)"
rules:
# Conditionals and control flow