stil4m / elm-analyse

A tool that allows you to analyse your Elm code, identify deficiencies and apply best practices.
https://stil4m.github.io/elm-analyse/
MIT License
417 stars 56 forks source link

Feature Request: allow customizing warnings/errors #173

Open tillydray opened 6 years ago

tillydray commented 6 years ago

Similar to hlint in Haskell, it would be nice to be able to add custom warnings/errors.

As an example, in our codebase we have a wrapper function around onClick that enforces adding an id to each clickable element. We want to make it very difficult to use onClick directly, so it would be nice if elm-analyse would complain if someone uses onClick outside of our helper module.

akoppela commented 6 years ago

Yes, in our company we have several custom linters. And it's always nice to have a way to write custom linters. At the moment we use Elm worker and elm-syntax to write linters.