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:
parent
28ae2b46b4
commit
7d49ec0a4f
@ -7,3 +7,6 @@ issues:
|
||||
# go generate introduces these
|
||||
- path: expressions/scanner.go
|
||||
linters: [deadcode, unused, varcheck]
|
||||
linters:
|
||||
enable:
|
||||
- gofmt
|
||||
|
3
Makefile
3
Makefile
@ -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 ./...
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user