DEV Community

Cover image for Linting your Code
chryzcode
chryzcode

Posted on

2

Linting your Code

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 đź‘‹.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

đź‘‹ Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay