Celebrate King's Day with TNW 🎟 Use code GEZELLIG40 on your Business, Investor and Startup passes today! This offer ends on April 29 →

This article was published on November 17, 2015

The Luft plugin for Xcode tells you when your code is getting out of control


The Luft plugin for Xcode tells you when your code is getting out of control

Developers that deal with Xcode know how frustrating a long, winding View Controller can be. To help you recognize when you should move some code into other files, Luft subtly alerts you that your View Controller is getting out of hand.

It’s not a buggy pop-up alert or series of annoying dings, either. Luft simply changes the color of your gutter depending on how many lines of code you’ve written.

screenshot

For view Controllers with less than 150 lines of code, the gutter stays green. If you’re between 150 and 300 lines, expect it to turn yellow. Over 300 lines and your gutter turns red.

The <3 of EU tech

The latest rumblings from the EU tech scene, a story from our wise ol' founder Boris, and some questionable AI art. It's free, every week, in your inbox. Sign up now!

You don’t have to make any changes, either. Luft simply lets you know when things are unruly. If you’d rather live in spaghetti code, be my guest — but don’t complain when it comes time to update your app.

Luft can be downloaded via GitHub.

➤ Luft [GitHub]

Get the TNW newsletter

Get the most important tech news in your inbox each week.

Published
Back to top