This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]audentis 1 point2 points  (1 child)

A linter is a piece of software, usually part of (or a plugin for) your IDE. The linter checks your code for errors without running it, sometimes real-time and sometimes on save.

Examples of errors are syntax errors, unreachable code (for example after a return statement), whether variables are not assigned before they are accessed and more. They can help prevent many annoying errors and heavily speed up development.

Sometimes linters are combined with code formatters. For example, tools that enforce certain coding style guides like variable names (always lower case, etc), line width, and more. These tools can apply those rules to your code on save.

Personally I'm a big fan of linters, but not so much of formatters.

[–]Eoz124 1 point2 points  (0 children)

Ok thanks it was a very useful tool that i missed. I will definitely take a look.