Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Run RuboCop on unsaved (virtual) files #3

Open
mrcljx opened this issue Nov 19, 2014 · 0 comments
Open

Run RuboCop on unsaved (virtual) files #3

mrcljx opened this issue Nov 19, 2014 · 0 comments

Comments

@mrcljx
Copy link
Owner

mrcljx commented Nov 19, 2014

RuboCop runs on the files that is saved to disk - if you have unsaved changes, the RuboCop annotations might be confusing.

In an early prototype of the plugin I didn't use the files on the file-system but wrote the content of the current Document (saved or unsaved) to /tmp first and then executed RuboCop on that file. The issue here is, that the exclude setting in the RuboCop-config would be "ignored" or it would cause other unwanted behaviour.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant