Skip to main content

Command Palette

Search for a command to run...

Linting your Code

Published
•1 min read
Linting your Code
O

Hi, I'm Olanrewaju Alaba👋,

A passionate and results-driven software engineer with a knack for problem-solving and a love for creating efficient and scalable solutions with the latest industry trends and technologies.

A technical writer passionate about transforming complex concepts into clear, user-friendly documentation, I bring a wealth of experience in creating content that bridges the gap between technology and end-users.

Hello techies👋,

This article will be addressing an underrated process just as last week's, Why Write Tests? but it will be centred on Linting.

Firstly, what is linting?

Linting is an automated checking of source code for programmatic and stylistic errors.

We all tend to make little mistakes like wrong indentation(whitespace), omitting necessary symbols etc. This is where the importance of linting comes in.

Let's talk a little about the importance,

  • As aforementioned, it helps to syntactically correct codes, saves debugging stress
  • It formats and properly arrange the codes, making them readable and more accessible(neat code)

Linting Tools

These are tools(packages) used to lint codes.

There are a lot of linting tools and they are actually connected to programming languages. A linting tool can only lint specific languages not all.

Examples of linting tools

These are some languages and some of their linting tool.

- Python

  • PEP
  • Black

- HTML and CSS

  • Prettier

- Javascript

  • JSLint
  • ESLint

- PHP

  • Phplint

- Java

  • Checkstyle
  • Lightrun

- Flutter

  • Flutter lints

Thanks for reading through this article and I hope you found it useful, you can connect with me on;

Bye 👋.

Y

Thank you for the examples you gave, I use PHP and I never knew of phplint before

1
O

Oh, I'm glad you found it useful 😊

1
D

Thank you, Chris, for a great list of linting tools! Can't wait to learn more about each one.

1
O

I'm glad you found it useful 😊

O

Oh great, thank you Chris!

1
O

I'm glad you found it useful 😊

More from this blog

C

chryzcode

49 posts

Software Engineer || Technical Writer