Linter vs formatter

·

1 min read

A formatter can be customised for simple things, such as "don't force upwrap optionals".

A linter allows you to set up customisable warnings for your project that are more meaningful than a formatter, as a linter actually understands your code.

So things like: sent a warning if the code does XYZ.

I don't actually know what you'd customise. With new Xcode, Xcode itself does a lot more warnings that a linter used to need to pick up.

But there is still stuff to put in a linter.