-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Rubocop silently fails with small error in config file #7725
Comments
Output shows
|
@tejasbubane Hmm, I don't get this message. Here is my output:
|
I also get the (expected) error
(Ruby 2.7.1, RuboCop 0.85.1) |
@smackesey Are you still getting that error with latest rubocop? |
Just tested again with rubocop 0.85.1, ruby 2.7.1.
Still no error message for me. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
This will now (as of #9171, not released yet) output the following (it outputs on stderr so if you're still having this issue check that maybe you're not suppressing it):
I think this issue can be closed. (/cc @bbatsov) |
Rubocop seems to silently fail when there is a small typo in a configuration file.
Expected behavior
Rubocop should print an error message indicating that the config file did not parse correctly.
Actual behavior
Rubocop runs but does not actually perform any linting.
Steps to reproduce the problem
Create a directory with two files:
.rubocop.yml
test.rb
Now go to the directory and run
rubocop --debug test.rb
. You should see some debug output inidicating configuration loading but no linting output.RuboCop version
0.80.0 (using Parser 2.7.0.2, running on ruby 2.7.0 x86_64-darwin19)
The text was updated successfully, but these errors were encountered: