-
Notifications
You must be signed in to change notification settings - Fork 44
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
codeclimate-rubocop not catching issues #266
Comments
@fede-moya happy holidays! 🎄 ☃️ just wondered if you happened to have any time to look at this -- it feels like (i hope) a simple fix :D |
@imajes happy holidays! we are having issues reproducing this bug. Could you please share a sample code where you're experiencing this issue? If you don't feel comfortable sharing over here. Please, send an email to [email protected] so we can take a look at what's going on. Thank you! |
@ale7714 thanks for replying! I pinged you back via the RLS slack -- it may be easier to zoom or something to quickly dive in. Thank you for being so awesome and on top of all these things! ❤️ |
Could be the case that the code we discussed is not valid ruby code ? As we discussed, our theory was right and you are not seeing any rubocop issues because the I have run the parser latest version, def hello(
a,
b,
)
puts "#{a} - #{b}"
end
hello("Parameter A", "Parameter B") hello.rb:4:1: error: unexpected token tRPAREN
hello.rb:4: )
hello.rb:4: ^ Which is exactly the same parser error that I remember seeing in the logs. Also trying to run that also cause and error >> ruby hello.rb
hello.rb:4: syntax error, unexpected ')'
hello.rb:6: syntax error, unexpected `end', expecting end-of-input All those problems go away if we remove the comma after argument def hello(
a,
b
)
puts "#{a} - #{b}"
end
hello("Parameter A", "Parameter B") Might that extra comma got introduced by mistake ? 🤔 |
@fede-moya i triple checked, and there's no dangling comma. Sorry man. it's not the error :( |
Hey climateers,
I'm noticing that for some reason i'm not able to get the codeclimate-rubocop analyzer to be able to find/determine errors.
here's a comparison:
However, when run via CC:
I can't figure out how better to debug this... but it's clear that running via codeclimate isn't getting it done.
relevant portion of
.codeclimate.yml
:halps? :) (sorry @ale7714 , but cc'ing you in because i know y'all super busy, but i am blocked on this - thanks)
The text was updated successfully, but these errors were encountered: