Skip to content
#

linters

Here are 172 public repositories matching this topic...

lawrence-dol
lawrence-dol commented Nov 19, 2021

It would be great to have a lint rule to flag when true or false is passed to a function.

As a solution the problem of a vague true/false value passed to a function, the "boolean trap", I have a habit of creating a self-documenting constant and using that instead.

Instead of redraw(true), I'll define const INLINE = true; and then use redraw(INLINE);.

Thanks for considering this

help wanted good first issue feature

Improve this page

Add a description, image, and links to the linters topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the linters topic, visit your repo's landing page and select "manage topics."

Learn more