I've tried multiple ways to pass a config file to revive, but it errors out every time:
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-fmt
- id: go-revive
args: [-config, .revive.toml]
cannot parse the config file: toml: line 1: expected '.' or '=', but got 'c' instead
cannot parse the config file: toml: line 1: expected '.' or '=', but got '/' instead
cannot parse the config file: toml: line 1: expected '.' or '=', but got 'c' instead
cannot parse the config file: toml: line 1: expected '.' or '=', but got 'm' instead
- id: go-revive
args: ["--", -config, .revive.toml]
- id: go-revive
args: ["--", "-config", ".revive.toml"]
- id: go-revive
args: ["-config .revive.toml"]