[swift-evolution] Proposal: Require functions to have a cyclomatic complexity of <= 10.

davesweeris at mac.com davesweeris at mac.com
Mon Feb 1 13:22:11 CST 2016

You’ve missed my point… (although, to be fair, it should’ve read “640k”)

Saying, as a language restriction, that you can’t have a cyclomatic complexity > 10 is like saying that you can’t have more than x functions in a file, y lines of code in a function, or n properties in a struct. Why? What’s the point?

- Dave Sweeris

> On Feb 1, 2016, at 08:28, Amir Michail <a.michail at me.com> wrote:
>> On Jan 31, 2016, at 6:10 PM, David Sweeris <davesweeris at mac.com> wrote:
>> -1 because 64k isn't actually always enough for everyone.
> I’ve been using the implementation of cyclomatic complexity in swiftlint and have not encountered any limitations that I couldn’t overcome by refactoring my code.
>> - Dave Sweeris
>>> On Jan 31, 2016, at 08:45, Amir Michail via swift-evolution <swift-evolution at swift.org> wrote:
>>> I think that this one metric built into the language would have a huge impact on Swift development and for the better.
>>> _______________________________________________
>>> swift-evolution mailing list
>>> swift-evolution at swift.org
>>> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160201/cfbca564/attachment.html>

More information about the swift-evolution mailing list