-
Notifications
You must be signed in to change notification settings - Fork 418
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
Different output when running credo with the --read-from-stdin
option
#1082
Comments
Thx for reporting this 👍 Unfortunately, I can not reproduce this on my machine. One thing I noticed is that the mix credo --read-from-stdin < filename.ex --strict should probably be mix credo --strict --read-from-stdin < filename.ex Could you check that? |
@rrrene sorry for the late response, tried that and the output is the same (as It should probably be). I think "the problem" is in this line, it only happens in the Not sure if anything should be done about it, but that seems to be the reason of the different output using this option, and as I'm using the vsCode extension and it seems to* use it, this warning is always present in the |
@GiovanniHessel94 ah, you are right. 👍 The filename can be passed and it seems that the integration you are using is not making use of that feature. |
I'll open an issue in their repo, so I think we can close this one. Thanks! |
Hey I'm having an issue and I couldn't find anything related to it. Sorry if it has already being addressed somewhere else.
Environment
mix credo -v
):1.7.1-ref.main.eb7b5a4800+uncommittedchanges
elixir -v
):Expected outcome
I expected to have the same output when running the commands
mix credo filename.ex --strict
andmix credo --read-from-stdin < filename.ex --strict
in the same file.Actual outcome
It seems that with the
--read-from-stdin
option it detects thereadability:Credo.Check.Readability.ModuleDoc
while without the option it doesn't.The text was updated successfully, but these errors were encountered: