Skip to content

Instantly share code, notes, and snippets.

@asus4
Last active April 17, 2017 20:21
Show Gist options
  • Save asus4/358e9090d9398fc63a09 to your computer and use it in GitHub Desktop.
Save asus4/358e9090d9398fc63a09 to your computer and use it in GitHub Desktop.
cpplint script for XCode openFrameworks.- TARGET -> Build Phases -> New Run Script Phase- Change /bin/bash to /bin/zsh
# or exclude libs/ folder
find src -name "?*.*" ! -regex ".*libs.*" -exec /usr/local/bin/cpplint --filter=-build/header_guard,-runtime/references {} \;
if type "/usr/local/bin/cpplint" > /dev/null 2>&1
then
# ignores
# build/header_guard to use #pragma once
# runtime/references to use ofxGui
/usr/local/bin/cpplint --filter=-build/header_guard,-runtime/references src/**/*.*
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment