Show warnings for methods longer than x lines in Xcode

134 Views Asked by At

Is there a way how to check source code files (Objective C) and show warning for methods/functions that are longer than x lines (where the x can be configured). Something that can be integrated in Xcode would be great.

I have looked into these two following static analyzers for C/C++/ObjC code if they provide such functionality but I couldn't find anything mentioned in the documentation:

Any ideas where to look further?

1

There are 1 best solutions below

1
On

Hmmm, looks like you could write an Xcode plugin to do that, sounds like it could be useful! I'll admit to not having done one before but I did find this link as a starting point.