Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lint all the things!

Lint all the things!

My presentation about SwiftLint at NSBudapest April.

Gabor Nagy Farkas

April 26, 2018
Tweet

More Decks by Gabor Nagy Farkas

Other Decks in Technology

Transcript

  1. Agenda ▪ What is a linter? ▪ Why should you

    care? ▪ SwiftLint ▪ Demo ▪ Takeaway
  2. Benefits of linting your code ▪ Improves readability ▪ Consistency

    ▪ Acts as a pre-code review (catches obvious mistakes)
  3. SwiftLint ▪ Funded and created by Realm Inc ▪ Open

    Source ▪ Rules ▪ Stylistic e.g. syntactic sugar, empty parenthesis vs Void etc. ▪ Code Quality e.g. cyclomatic complexity, weak delegate, method/line/ file length etc. ▪ Opt-in ▪ Autocorrect ▪ Configuration