File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
1212 "github.com/cybozu-private/pre-commit-jsonnet/lib"
1313)
1414
15- const JSONNET_LINT_CMD = "jsonnet-lint"
15+ const jsonnetLintCmd = "jsonnet-lint"
1616
1717type CmdResult struct {
1818 err error
@@ -34,7 +34,7 @@ func execJsonnetLint(f string, opts []string) error {
3434 args = append (args , opts ... )
3535 args = append (args , "--" )
3636 args = append (args , f )
37- cmd := execabs .Command (JSONNET_LINT_CMD , args ... )
37+ cmd := execabs .Command (jsonnetLintCmd , args ... )
3838 cmd .Stderr = & stderr
3939 err := cmd .Run ()
4040 if err != nil {
@@ -47,7 +47,7 @@ func execJsonnetLint(f string, opts []string) error {
4747func main () {
4848 opts , files := lib .ParseArgs (os .Args [1 :])
4949
50- if _ , err := execabs .LookPath (JSONNET_LINT_CMD ); err != nil {
50+ if _ , err := execabs .LookPath (jsonnetLintCmd ); err != nil {
5151 log .Fatalln (err )
5252 }
5353
You can’t perform that action at this time.
0 commit comments