From fc922726930e55b7b80348fe0522c404395a50ac Mon Sep 17 00:00:00 2001 From: ugurtepecik Date: Wed, 2 Aug 2023 22:53:27 +0300 Subject: [PATCH 1/3] fix: add missing infix operators --- lib/style/pipes.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/style/pipes.ex b/lib/style/pipes.ex index b7fb5108..bfc60de2 100644 --- a/lib/style/pipes.ex +++ b/lib/style/pipes.ex @@ -204,7 +204,7 @@ defmodule Styler.Style.Pipes do # most of these values were lifted directly from credoa's pipe_chain_start.ex @literal ~w(__block__ __aliases__ unquote)a @value_constructors ~w(% %{} .. <<>> @ {} ^ & fn from)a - @infix_ops ~w(++ -- && || in - * + / > < <= >= ==)a + @infix_ops ~w(++ -- && || in - * + / > < <= >= == and or not != !==)a @binary_ops ~w(<> <- ||| &&& <<< >>> <<~ ~>> <~ ~> <~> <|> ^^^ ~~~)a @valid_starts @literal ++ @value_constructors ++ @infix_ops ++ @binary_ops From 3c3c93a8057f900f2f50a894aa6d57ab5c6ae3a5 Mon Sep 17 00:00:00 2001 From: ugurtepecik Date: Wed, 2 Aug 2023 23:23:49 +0300 Subject: [PATCH 2/3] fix: remove 'not' operator from infix_ops list --- lib/style/pipes.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/style/pipes.ex b/lib/style/pipes.ex index bfc60de2..a7d659d7 100644 --- a/lib/style/pipes.ex +++ b/lib/style/pipes.ex @@ -204,7 +204,7 @@ defmodule Styler.Style.Pipes do # most of these values were lifted directly from credoa's pipe_chain_start.ex @literal ~w(__block__ __aliases__ unquote)a @value_constructors ~w(% %{} .. <<>> @ {} ^ & fn from)a - @infix_ops ~w(++ -- && || in - * + / > < <= >= == and or not != !==)a + @infix_ops ~w(++ -- && || in - * + / > < <= >= == and or != !==)a @binary_ops ~w(<> <- ||| &&& <<< >>> <<~ ~>> <~ ~> <~> <|> ^^^ ~~~)a @valid_starts @literal ++ @value_constructors ++ @infix_ops ++ @binary_ops From 855bbc0dd284c92b770a9d2971c46302c76800e2 Mon Sep 17 00:00:00 2001 From: ugurtepecik Date: Thu, 3 Aug 2023 20:02:10 +0300 Subject: [PATCH 3/3] fix: added '===' operator in infix_ops list --- lib/style/pipes.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/style/pipes.ex b/lib/style/pipes.ex index a7d659d7..c867dc4b 100644 --- a/lib/style/pipes.ex +++ b/lib/style/pipes.ex @@ -204,7 +204,7 @@ defmodule Styler.Style.Pipes do # most of these values were lifted directly from credoa's pipe_chain_start.ex @literal ~w(__block__ __aliases__ unquote)a @value_constructors ~w(% %{} .. <<>> @ {} ^ & fn from)a - @infix_ops ~w(++ -- && || in - * + / > < <= >= == and or != !==)a + @infix_ops ~w(++ -- && || in - * + / > < <= >= == and or != !== ===)a @binary_ops ~w(<> <- ||| &&& <<< >>> <<~ ~>> <~ ~> <~> <|> ^^^ ~~~)a @valid_starts @literal ++ @value_constructors ++ @infix_ops ++ @binary_ops