-
-
Notifications
You must be signed in to change notification settings - Fork 276
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 RSpec/DescribedClass
cop
#1741
Comments
We don't know if it is a class name or a constant name? For example, if we use |
Do we care if the |
Ah, I see. I was mistaken. |
This change makes a lot of our CI pipelines fail, with typical example being a gem autogenerated by RSpec.describe MyNewGem do
it 'has a version number' do
expect(MyNewGem::VERSION).not_to be_nil
end
end For things like these I would prefer full name for verbosity and explicitness. |
There’s the |
:( We prefer |
I would also like a configuration option to disable this change, as it breaks Sorbet type checking, which doesn't support dynamic constant references: https://sorbet.org/docs/error-reference#5001 |
Describe the solution you'd like
Rubocop
The text was updated successfully, but these errors were encountered: