Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode and checking for code convention

How can I configure xcode to check my source code if it respects standard apple (or github) objective c code convention?

If something does not match - would be nice to get some kind of warning...

thanks

like image 893
Alan Harper Avatar asked Jul 04 '13 19:07

Alan Harper


1 Answers

I've met the followings links:

  • ClangFormat-Xcode - XCode plugin, based on ClangFormat

  • ocstyle - code-style checker, can be used on Continous Integration server

  • StrictCode - Source code formatter for Mac. that costs 20$

  • Objective-Clean

These are other links & references you may find interesting:

  1. http://uncrustify.sourceforge.net/
  2. http://universalindent.sourceforge.net/features.php
  3. https://github.com/benoitsan/BBUncrustifyPlugin-Xcode
like image 84
Nick7 Avatar answered Nov 02 '22 13:11

Nick7