Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rubocop-md does not work with guard #44

Open
alexandru-calinoiu opened this issue Jun 2, 2020 · 0 comments
Open

Rubocop-md does not work with guard #44

alexandru-calinoiu opened this issue Jun 2, 2020 · 0 comments
Labels

Comments

@alexandru-calinoiu
Copy link

Hi,

I have configured rubocop-md on my project, it runs fine when I run rubocop form the terminal.

When I run it via guard, I get the following error

undefined method `for' for nil:NilClass
/home/calin/.rvm/gems/ruby-2.6.5@.cop_api/gems/rubocop-md-0.3.2/lib/rubocop/markdown/preprocess.rb:66:in `initialize'
/home/calin/.rvm/gems/ruby-2.6.5@.cop_api/gems/rubocop-md-0.3.2/lib/rubocop/markdown/rubocop_ext.rb:79:in `new'
/home/calin/.rvm/gems/ruby-2.6.5@.cop_api/gems/rubocop-md-0.3.2/lib/rubocop/markdown/rubocop_ext.rb:79:in `parse'
/home/calin/.rvm/gems/ruby-2.6.5@.cop_api/gems/rubocop-ast-0.0.3/lib/rubocop/ast/processed_source.rb:33:in `initialize'
/home/calin/.rvm/gems/ruby-2.6.5@.cop_api/gems/rubocop-ast-0.0.3/lib/rubocop/ast/processed_source.rb:18:in `new'
/home/calin/.rvm/gems/ruby-2.6.5@.cop_api/gems/rubocop-ast-0.0.3/lib/rubocop/ast/processed_source.rb:18:in `from_file'
/home/calin/.rvm/gems/ruby-2.6.5@.cop_api/gems/rubocop-0.84.0/lib/rubocop/runner.rb:365:in `get_processed_source'
/home/calin/.rvm/gems/ruby-2.6.5@.cop_api/gems/rubocop-0.84.0/lib/rubocop/runner.rb:121:in `block in file_offenses'
/home/calin/.rvm/gems/ruby-2.6.5@.cop_api/gems/rubocop-md-0.3.2/lib/rubocop/markdown/rubocop_ext.rb:52:in `file_offense_cache'
/home/calin/.rvm/gems/ruby-2.6.5@.cop_api/gems/rubocop-0.84.0/lib/rubocop/runner.rb:120:in `file_offenses'
@bbatsov bbatsov added the bug label Aug 26, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants