Skip to content

Instantly share code, notes, and snippets.

@stellimatt
Created September 26, 2016 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stellimatt/25f6ff56b4f86798d7b73a6738fcc15a to your computer and use it in GitHub Desktop.
Save stellimatt/25f6ff56b4f86798d7b73a6738fcc15a to your computer and use it in GitHub Desktop.
def execute_jslint(working_directory:)
Dir.chdir(working_directory) do
puts "Running jslint on #{working_directory}..."
results = `find . -name "*.js" -print0 | xargs -0 jslint`
puts results
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment