Skip to content

Instantly share code, notes, and snippets.

@kseki
Created December 13, 2021 06:09
Show Gist options
  • Save kseki/091ed7c3f2f50f38b8f0d44b857e35d5 to your computer and use it in GitHub Desktop.
Save kseki/091ed7c3f2f50f38b8f0d44b857e35d5 to your computer and use it in GitHub Desktop.
Checking for duplicate method names in Rails helpers
#!/bin/sh
result=`find ./app/helpers -type f | xargs cat | awk '/def /{print $2}' | sed -e "s/(.*//g" | sort | uniq -c -d`
# TODO: result handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment