credo icon indicating copy to clipboard operation
credo copied to clipboard

`# credo:disable-for-next-line` not working

Open nathanl opened this issue 1 year ago • 3 comments

I just updated to credo 1.7.11 from 1.7.8 and got a new Credo warning: Function takes too many parameters (arity is 9, max is 8).

The function already had credo:disable-for-next-line on the line before it.

  # credo:disable-for-next-line
  defp some_func(arg1, arg2, _, arg4, arg5, arg6, arg7, arg7, arg9)
    :do_stuff
  end

If I put # credo:disable-for-this-file at the top of the file, it disables the warning.

nathanl avatar Jan 28 '25 19:01 nathanl

Could not replicate with 1.7.11

quangngd avatar Jan 31 '25 13:01 quangngd

@nathanl I wasn't able to reproduce this either. Mmmh, any other info you can share?

rrrene avatar Feb 02 '25 18:02 rrrene

Any new input on this?

rrrene avatar Mar 18 '25 04:03 rrrene