Skip to content

False positives with Redundant check #5

@IsakSundeSingh

Description

@IsakSundeSingh

Great rule! Unfortunately the issue with operator precedence still exists, despite it being announced as fixed in #3.

It can be seen in this example code:

Applied from the fixes for the following errors:
NoLeftPizza: Redundant left pizza (<|) operator application

498| testEmptyString text =
499|     String.trim >> String.isEmpty <| text
500|     String.trim >> String.isEmpty text
500|

The "fix" is to remove the pipe (🍕 ) operator, but then the type of the function changes.

This happens using elm-review-noleftpizza 2.0.0 with node-elm-review 2.4.6 and elm-syntax 7.2.1.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions