# New elm-review package releases

**URL:** <https://discourse.elm-lang.org/t/new-elm-review-package-releases/8258>\
**Category:** Show and Tell\
**Created:** [March 19, 2022, 9:37am UTC](https://discourse.elm-lang.org/t/new-elm-review-package-releases/8258 "2022-03-19T09:37:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfmengels](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/jfmengels/32/3124_2.png) [@jfmengels](https://discourse.elm-lang.org/u/jfmengels)\
**Post date:** [March 19, 2022, 9:37am UTC](https://discourse.elm-lang.org/t/new-elm-review-package-releases/8258/1 "2022-03-19T09:37:11Z")

</div>

Hey all,

I released a new few versions for `elm-review` and its packages over the last hour and month.

## [jfmengels/elm-review](https://package.elm-lang.org/packages/jfmengels/elm-review/latest/) (2.7.X)

Thanks to [Jie](https://github.com/jiegillet), there is now a new [Rule.filterErrorsForFiles](https://package.elm-lang.org/packages/jfmengels/elm-review/latest/Review-Rule#filterErrorsForFiles) function to precisely filter the files you wish to get errors for. This can be useful if you wish to enable a rule only in some files that match a pattern (all `Example.elm` files for instance). Jie used this function to integrate `elm-review` into [Exercism’s Elm track](https://exercism.org/tracks/elm) to make detailed feedback for user’s solutions, which is super cool 🕶

 ![Screen Shot 2022-03-10 at 9.32.02](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/2X/0/0fbe9e8ca898519e612f88ead46e43c8b6c1b970.png)

It also contains also a smaller issue to fix `elm-review --watch` not always updating when files get added or deleted.

## [elm-review-unused](https://package.elm-lang.org/packages/jfmengels/elm-review-unused/latest/) (1.1.21)

- Fixed some false positives in NoUnused.Exports (thanks @janiczek for all the help, [Don't report exposed custom types whose constructors are used elsewhere by jfmengels · Pull Request #62 · jfmengels/elm-review-unused · GitHub](https://github.com/jfmengels/elm-review-unused/pull/62))
- If you didn’t know, `elm-review` supports Lamdera (my own rules do at least), but there was an issue where `main` was reported as unused in Lamdera applications ([Module reported as unused when it contains main · Issue #54 · jfmengels/elm-review-unused · GitHub](https://github.com/jfmengels/elm-review-unused/issues/54))
- `NoUnused.Variables` now no longer removes let `_` declarations if the assigned value is a call to `Debug.log`. This is to prevent people from doing ugly hacks to keep `Debug.log`s around in files where those are okay to keep (examples/styleguides for instance). If you still wish to remove those, enabling `NoDebug.Log` will make sure everything gets cleaned up 🧹

## [elm-review-simplify](https://package.elm-lang.org/packages/jfmengels/elm-review-simplify/latest/) (2.0.8)

Now also simplifies these use-cases:

```elm
String.replace x y ""
--> ""

String.replace x x z
--> z

String.replace "x" "y" "z"
--> "z" -- only when resulting string is unchanged

Json.Decode.oneOf [a]
--> a

Parser.oneOf [a]
--> a

```

* * *

Hope you find these helpful 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [March 29, 2022, 9:37am UTC](https://discourse.elm-lang.org/t/new-elm-review-package-releases/8258/2 "2022-03-29T09:37:47Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
