We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Lint/EmptyFile (added in 0,90.0) throws an error when the html formatter is used.
Lint/EmptyFile
html
Enable the cop in a .rubocop.yml
.rubocop.yml
Lint/EmptyFile: Enabled: true
Ensure the project has an empty .rb file.
.rb
Run
$ rubocop --format html --out results.html
The following error occurs:
index 0 outside of array bounds: 0...0 /home/dev/.rvm/gems/ruby-2.6.6/gems/parser-2.7.1.4/lib/parser/source/buffer.rb:270:in `fetch' ...
$ rubocop
It works as expected.
$ [bundle exec] rubocop -V 0.90.0 (using Parser 2.7.1.4, rubocop-ast 0.3.0, running on ruby 2.6.6 x86_64-linux)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Lint/EmptyFile
(added in 0,90.0) throws an error when thehtml
formatter is used.Steps to Reproduce
Enable the cop in a
.rubocop.yml
Ensure the project has an empty
.rb
file.Run
The following error occurs:
Run
It works as expected.
Environment
The text was updated successfully, but these errors were encountered: