-
Notifications
You must be signed in to change notification settings - Fork 415
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
Readability.LargeNumbers false positives #229
Comments
The problem is that pre Elixir 1.3.2 we use an unreliable function to retrieve the fragment:
The solution will be to deprecate this check for Elixir |
Thanks for telling me what's wrong. How do you go about deprecating checks in Credo? I've been making enough noise over here I'd be happy to help |
We don't have a mode of operation for this yet. The Dogma project, which I contributed to before creating Credo has integrated something like this after we ran into the same issue. The question is if we can adapt the approach for Credo without changing the architecture or if we want to "invent" a new module attribute for checks to show their Elixir compatibility (and then filter checks before-hand). |
This seems like a fun thing to tackle! I'd imagine that we're going to have more of these in the future as well, and since I was just in the I'll put together a quick version of it on my plane ride home tomorrow and see what you all think 😉 |
@devonestes That'd be great. It would help to have some quick&dirty implementation of this, so we can discuss the direction which we are going to take 👍 |
I think we can close this issue now, right @rrrene? |
@devonestes Yes. |
Precheck
Environment
mix credo -v
): 0.5.2elixir -v
): 1.3.0What where you trying to do?
I have lists with lots of floats and large numbers. Sometimes credo is giving me false positives on needing underscores.
For this data, the first 7 lines are all fine, but it's compalning about the last 5.
In each of the last 5 lines, the 5th item in the line is being reported as not having underscores
The text was updated successfully, but these errors were encountered: