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

Fix extension NAME with hyphens error message #26

Open
cllns opened this issue Dec 17, 2024 · 0 comments
Open

Fix extension NAME with hyphens error message #26

cllns opened this issue Dec 17, 2024 · 0 comments

Comments

@cllns
Copy link

cllns commented Dec 17, 2024

rubocop-extension-generator rubocop-my-example

Will show an error:

Usage: rubocop-extension-generator NAME

The NAME must start with rubocop-, like rubocop-rspec.

In this case, the problem is that it should be rubocop-my_example (to fit RubyGems guidelines for naming gems), not that it doesn't begin with rubocop-.

I see two options:

  1. Detecting this mistake and having a different error message for that case
  2. Just adding a line about this issue to the existing error message, to cover both cases
@cllns cllns changed the title Extension name with hyphens has wrong error message Fix extension NAME with hyphens error message Dec 17, 2024
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

1 participant