You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gentoo Linux using desktop/plasma profile for version 23.0 and with kernel version 6.6.41.
What were you trying to do?
I'm trying to add pin (^) operator to pattern-matching.
Expected outcome
The pin operator does not affects ABC size or at least it should increase only by one no matter how much pin operators are used.
Actual outcome
When calling credo on a simple function each pin (^) operator by default increases ABC size by 1 which is ridiculous. Using a pin operator does not makes code less clean/readable and is terribly important in pattern-matching.
The text was updated successfully, but these errors were encountered:
Eiji7
changed the title
ABCSize refactor check
By default each pin operator increases size in ABCSize refactor check
Oct 6, 2024
Environment
mix credo -v
):elixir -v
):What were you trying to do?
I'm trying to add
pin
(^
) operator to pattern-matching.Expected outcome
The pin operator does not affects
ABC
size or at least it should increase only by one no matter how much pin operators are used.Actual outcome
When calling
credo
on a simple function each pin (^
) operator by default increasesABC
size by1
which is ridiculous. Using a pin operator does not makes code less clean/readable and is terribly important in pattern-matching.The text was updated successfully, but these errors were encountered: