Skip to content
New issue

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

.rubocop.yml is not working on windows 10 #2439

Closed
vinyar opened this issue Nov 17, 2015 · 6 comments
Closed

.rubocop.yml is not working on windows 10 #2439

vinyar opened this issue Nov 17, 2015 · 6 comments

Comments

@vinyar
Copy link

vinyar commented Nov 17, 2015

__Environment: __
Rubocop version: 0.35.1
Chef Development Kit Version: 0.10.0
chef-client version: 12.5.1
berks version: 4.0.1
kitchen version: 1.4.2

Workflow:
rubocop --auto-gen-config
touch .rubocop.yml
paste inherit_from: .rubocop_todo.yml into .rubocop.yml

Result:
(Windows) The .rubocop.yml file is seemingly ignored, and all of the syntax errors are still flagged.
(OSX) The exact same steps result in expected behavior (0 errors)

Testing:

  • providing an invalid filename to inherit_from: blabla_todo.yml does throw an error, which means the inherit statement is being processed, but for some reason doesn't take effect on windows.
  • rubocop --config .rubocop.yml does not make a different. All of the errors are reported.
  • rubocop --config .rubocop_todo.yml however does work as expected, and comes back with zero offenses.
@alexdowad
Copy link
Contributor

@vinyar I don't have a Windows 10 machine, so I can't reproduce this problem. But if you are willing to debug it and come up with a fix, I can guide you through the process. Do you want to try?

@alexdowad
Copy link
Contributor

Ping @vinyar.

@vinyar
Copy link
Author

vinyar commented Jan 1, 2016

I went on PTO last week leaving my workstation at repair center. I'll see if I can find a way to setup a repro somewhere.

@alexdowad
Copy link
Contributor

@vinyar, are you still interested in debugging this problem?

@jonas054
Copy link
Collaborator

I think there's a chance that the problem was solved by #2665. Please re-open if it wasn't.

@vinyar
Copy link
Author

vinyar commented Mar 16, 2016

will do, and I am still interested, just not working on any windows project atm.

Also, @alexdowad in case you didn't know, there are a couple w10 images here:
https://atlas.hashicorp.com/boxes/search?utf8=%E2%9C%93&sort=&provider=&q=windows+10

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

No branches or pull requests

3 participants