Skip to content

rubocop-check-... and rubcop-autocorrect-... commands don't work if the path contains spaces #41

@stormwatch

Description

@stormwatch

The first argument passed to compilation-start ends up being somthing like:

bundle exec rubocop --format emacs /a/path/with spaces/something.rb

One solution would be to write quotation marks around the path:

bundle exec rubocop --format emacs "/a/path/with spaces/something.rb"

I am not sure about where to fix it, but probably involves wrapping some expresion inside shell-quote-argument.

Maybe here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions