Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nathanl opened this issue Jan 28, 2025 · 2 comments
Open

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

nathanl opened this issue Jan 28, 2025 · 2 comments

Comments

@nathanl
Copy link
Contributor

nathanl commented Jan 28, 2025

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.

@quangngd
Copy link
Contributor

Could not replicate with 1.7.11

@rrrene
Copy link
Owner

rrrene commented Feb 2, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants