Skip to content

Instantly share code, notes, and snippets.

@RomainBoulay
Created February 23, 2015 15:54
Show Gist options
  • Save RomainBoulay/8135ab417989c7ec03ba to your computer and use it in GitHub Desktop.
Save RomainBoulay/8135ab417989c7ec03ba to your computer and use it in GitHub Desktop.
Complexity script - XCode iOS - Build Phases
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 wc -l | awk '$1 > 400 && $2 != "total" { print $2 ":1: warning: File has more than 400 lines, consider refactoring." }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment