Skip to content

Instantly share code, notes, and snippets.

@cyupa
Last active August 29, 2015 14:07
Show Gist options
  • Save cyupa/a81a921ef7ed10934a17 to your computer and use it in GitHub Desktop.
Save cyupa/a81a921ef7ed10934a17 to your computer and use it in GitHub Desktop.
XCodebuild OCLint commans
#XCodebuild
xcodebuild -scheme SCHEME_NAME -workspace WORKSPACE_NAME.xcworkspace | tee xcodebuild.log
#Database generator
oclint-xcodebuild xcodebuild.log
#Reporter
oclint-json-compilation-database -e exclude_this_folder* -e Pods* -- -report-type html -o report.html -max-priority-2=15 -max-priority-3=30 -rc CYCLOMATIC_COMPLEXITY=4 -rc LONG_CLASS=200 -rc LONG_LINE=120 -rc LONG_METHOD=60 -rc NPATH_COMPLEXITY=20 -rc NESTED_BLOCK_DEPTH=3 -rc TOO_MANY_PARAMETERS=5 -rc LONG_VARIABLE_NAME=30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment