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

New Check: Unsafe Enum.at in pipeline (Similar to MapGetUnsafePass) #87

Open
JohnnyCurran opened this issue Jan 23, 2023 · 0 comments
Open

Comments

@JohnnyCurran
Copy link

What do you want Credo to do?

  • Add a check for unsafe Enum.at when it is not given a safe default argument
  • We have had several errors caused by Enum.at calls in pipelines which could have been avoided had there been a default argument or caught by Credo

Which existing behaviour would change?

  • Add a check that functions similarly to MapGetUnsafePass that would prevent Enum.at calls in pipelines that do not have a default value
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

1 participant