Skip to content

rubocop on Windows: 22 files inspected, 22 offenses detected #315

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

Closed
jgfoster opened this issue Oct 13, 2021 · 4 comments · Fixed by #334
Closed

rubocop on Windows: 22 files inspected, 22 offenses detected #315

jgfoster opened this issue Oct 13, 2021 · 4 comments · Fixed by #334

Comments

@jgfoster
Copy link
Member

It complains about CR characters being present but the test does not fail. This raises a couple questions:

  • If we have an automated test that reports a problem but the framework doesn't tell us about it, then something is broken.
  • Why do 22 files have CR on Windows?
@ianfixes
Copy link
Collaborator

I wonder if this has anything to do with the text=auto setting that we had applied earlier in the git config

@jgfoster
Copy link
Member Author

jgfoster commented Oct 13, 2021

That's something that I'm investigating as part of #314 (and once we merge that we can revisit this). But even if it does explain the second issue it doesn't address the first issue of failing tests that aren't being reported by the CI system (see here for the problem).

@jgfoster
Copy link
Member Author

When rubocop and rspec are combined in one job, a failure in rubocop will be ignored. But if they are separated then the error will be caught. Compare the Linux workflow with the Windows workflow.

@ianfixes
Copy link
Collaborator

I think they should definitely be separated. Also, I should set something up for presenting the rubocop failures as line-level annotations in the diff, not just a pass/fail.

Note to self: https://github.com/marketplace/actions/rubocop-annotate-action

ianfixes added a commit to ianfixes/arduino_ci that referenced this issue Dec 17, 2022
ianfixes added a commit to ianfixes/arduino_ci that referenced this issue Dec 17, 2022
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

Successfully merging a pull request may close this issue.

2 participants