Method: Codeqa::Checkers::CheckRubySyntax#check
- Defined in:
- lib/codeqa/checkers/check_ruby_syntax.rb
#check ⇒ Object
17 18 19 20 21 22 |
# File 'lib/codeqa/checkers/check_ruby_syntax.rb', line 17 def check with_existing_file do |filename| command = "/usr/bin/env ruby -c '#{filename}' 1>/dev/null 2>/dev/null" errors.add(nil, 'Ruby syntax error') unless system(command) end end |