According to this site https://docs.rubocop.org/rubocop/development.html#implementation, it says cop code will be like this.
module RuboCop
module Cop
module Style
class SimplifyNotEmptyWithAny < Base
...
end
end
end
end
And I followed it in Project Root/lib/rubocop/cop/style/simplify_not_empty_with_any.rb
.
But when I command rails zeitwerk:check
, it did not work.
Hold on, I am eager loading the application.
bin/rails aborted!
NameError: uninitialized constant RuboCop::Cop::Style::Base (NameError)
class SimplifyNotEmptyWithAny < Base
^^^^
Did you mean? Base64
How can I solve it?
Do you have any ideas?
I tried reuiqre 'rubocop' or require 'rubocop/cop/base' but it did not solve.
[UPDATE] I tried it class SimplifyNotEmptyWithAny < RuboCop::Cop::Base
but got same error.
I think you should try with this one,