Writing linter rules why, how and when
NorfolkDevelopers NorfolkDevelopers
5.53K subscribers
572 views
0

 Published On Premiered Apr 7, 2023

Static analysis tools, or linters, are awesome tools for catching bugs and finding code smells in your project. Instead of looking at what values things have at run time or what the types of these values are, this tool looks at how the code is written. This particular angle gives it a special position to report specific problems and, by the same occasion, grant unique kinds of guarantees. The most useful linters provide the ability to create custom rules, enabling developers to find code that your team has agreed not to write, or create guarantees about parts of the code that would not be possible to get through other means like API design or testing.

In this presentation, we will look at why linters hold a unique position in our tooling and why you should be writing custom rules for your projects. We will learn how a linter works (not necessarily your favorite one) and how rules are written. Lastly, we will explain when this tool is appropriate and when it is inappropriate, and how to keep you and your teammates from being frustrated by linters.

Elm developer. Author of elm-review. Co-host of Elm Radio. Speaking at nor(DEV): con 2023 in Norfolk, UK.

Check out Elm Radio at https://elm-radio.com/

Norfolk Developers Conference 2023

We gathered in Norwich to learn, discuss, and network with an eclectic bunch of the best of East Anglia's tech scene, joined by a group of international conference veterans. 35 sessions, kicking off on the 23rd February 2023, and closing 24th February 2023. Two days of talks on mobile, web, game, data science, humans, startups & more.

Read more at: https://nor.dev/con

Norfolk Developers aka nor(DEV):

We are very lucky in Norfolk to have a thriving and highly active tech community.

You might want to try something new or wish to take your software development up to the next level. We want to jump into the detail and bring you practical value. We want to make it easy for you to access knowledge, progress and prosper in the highly specialised and valuable field of software engineering.

Join the Conversation!

Our community goes beyond our regular events, we're a thriving support network. Our membership include those that are just starting out, juniors, seniors, and the curious. Join us on your preferred platform:

https://nor.dev/discord
https://nor.dev/twitter

show more

Share/Embed