Method: PreCommit::Checks::GoFmt#run_check

Defined in:
lib/plugins/pre_commit/checks/go_fmt.rb

#run_check(file) ⇒ Object


17
18
19
20
# File 'lib/plugins/pre_commit/checks/go_fmt.rb', line 17

def run_check(file)
  cmd = "gofmt -l #{file} 2>&1"
  %x[ #{cmd} ]
end