Open alexandru-calinoiu opened 4 years ago
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'
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