Skip to content

Instantly share code, notes, and snippets.

@wshihadeh
Created May 12, 2020 08:21
Show Gist options
  • Select an option

  • Save wshihadeh/5ee76d27f5c7a99ebeef25ad45da97d7 to your computer and use it in GitHub Desktop.

Select an option

Save wshihadeh/5ee76d27f5c7a99ebeef25ad45da97d7 to your computer and use it in GitHub Desktop.
RubySyntax
RubySyntax:
enabled: true
description: 'Check ruby syntax'
required_executable: 'ruby'
command: [
'ruby',
'-e',
'ARGV.each { |applicable_file| ruby_c_output = `ruby -c #{applicable_file}`; puts ruby_c_output unless $?.success? }'
]
include:
- '**/*.gemspec'
- '**/*.rb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment