1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-26 17:24:42 +01:00

Enable gofmt linter

This commit is contained in:
Oliver Steele 2021-06-26 15:24:21 +08:00
parent 28ae2b46b4
commit 7d49ec0a4f
3 changed files with 8 additions and 2 deletions

View File

@ -7,3 +7,6 @@ issues:
# go generate introduces these
- path: expressions/scanner.go
linters: [deadcode, unused, varcheck]
linters:
enable:
- gofmt

View File

@ -17,6 +17,9 @@ coverage: ## test the package, with coverage
deps: ## list dependencies
@go list -f '{{join .Deps "\n"}}' ./... | grep -v `go list -f '{{.ImportPath}}'` | grep '\.' | sort | uniq
format: ## list dependencies
@go fmt
generate: ## re-generate lexers and parser
go generate ./...

View File

@ -42,8 +42,8 @@ func TestEngine_ParseAndRenderString(t *testing.T) {
func TestEngine_ParseAndRenderString_ptr_to_hash(t *testing.T) {
params := map[string]interface{}{
"message": &map[string]interface{}{
"Text": "hello",
"jsonNumber" : json.Number("123"),
"Text": "hello",
"jsonNumber": json.Number("123"),
},
}
engine := NewEngine()