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

Improve support for reporting cop errors to rubocop. #452

Open
jasonkarns opened this issue Aug 29, 2022 · 2 comments
Open

Improve support for reporting cop errors to rubocop. #452

jasonkarns opened this issue Aug 29, 2022 · 2 comments
Labels
enhancement ✨ New feature or request

Comments

@jasonkarns
Copy link
Collaborator

When encountering bugs with rubocop cops, one would attempt to open Issues against rubocop.

Rubocop requests that issues include the output with:

rubocop --debug to include additional debug information;
and rubocop -V to include full version information.

  1. --debug

It appears that standardrb --debug does not generate any additional debug information. Whether it actually passes the flag along to rubocop is unclear. But the output of a scan is identical both with and without the flag.

  1. -V

-V does not emit version information at all. It triggers a regular scan. (So evidently, -V isn't even recognized as a valid option.) Ideally, -V would emit all the same information as rubocop -V, plus standardrb's own version. Ideally, it would be in the same format as rubocop's so one could standard -V | pbcopy and have the output paste-able into a rubocop issue.

Between these two items, I think #2 is arguable more important and valuable.

@jasonkarns
Copy link
Collaborator Author

@searls
Copy link
Contributor

searls commented Aug 29, 2022

💯 this makes perfect sense and would make life easier for our Rubocop-maintaining friends

@searls searls added the enhancement ✨ New feature or request label Aug 29, 2022
patrickbrown-dev added a commit to patrickbrown-dev/standard that referenced this issue Sep 28, 2022
This addresses the second feature mentioned in standardrb#452. For context,
when debugging a RuboCop issue a user is asked to supply the
output of `rubocop -V`, and this streamlines this process for
standard users.
patrickbrown-dev added a commit to patrickbrown-dev/standard that referenced this issue Sep 28, 2022
This addresses the second feature mentioned in standardrb#452. For context,
when debugging a RuboCop issue a user is asked to supply the
output of `rubocop -V`, and this streamlines this process for
standard users.
patrickbrown-dev added a commit to patrickbrown-dev/standard that referenced this issue Sep 28, 2022
This addresses the second feature mentioned in standardrb#452. For context,
when debugging a RuboCop issue a user is asked to supply the
output of `rubocop -V`, and this streamlines this process for
standard users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants