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

Type lists should be sets #22

Closed
marcandre opened this issue Jun 4, 2020 · 1 comment
Closed

Type lists should be sets #22

marcandre opened this issue Jun 4, 2020 · 1 comment
Milestone

Comments

@marcandre
Copy link
Contributor

E.g. TRUTHY_LITERALS

Although there's not much valid reason to use them directly, this could break some code relying on them, e.g. [...] - Set[...] TypeError (no implicit conversion of Set into Array), so v1 might be a good time...

@marcandre marcandre added this to the 1.0.0 milestone Jun 4, 2020
This was referenced Jun 6, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 7, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 7, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 9, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 10, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 10, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 10, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 10, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 10, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 10, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 11, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 11, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 24, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 24, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 25, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jun 25, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jul 7, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jul 7, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jul 7, 2020
marcandre added a commit to marcandre/rubocop-ast that referenced this issue Jul 7, 2020
@marcandre
Copy link
Contributor Author

This has been resolved for rubocop-ast, with most constants now private and the rest converted to Sets.

Closing this and related PRs.

ashkulz added a commit to prontolabs/pronto-rubocop that referenced this issue Feb 13, 2021
This was the first version to use rubocop-ast, and unfortunately
the dependency is loose enough that rubocop-ast versions >= 0.7.0
are allowed, which cause require 'rubocop' to fail with

  NoMethodError:
    undefined method `join' for #<Set: {:==, :===, :!=, :<=, :>=, :>, :<}>
  # rubocop-0.84.0/lib/rubocop/cop/style/redundant_conditional.rb:57:in `<class:RedundantConditional>'

This is due to rubocop/rubocop-ast#22
and it's too much effort to pin that dependency and hence easier
to just block the version instead.
ashkulz added a commit to prontolabs/pronto-rubocop that referenced this issue Feb 13, 2021
These were the first versions to use rubocop-ast, and unfortunately
the dependency is loose enough that rubocop-ast versions >= 0.7.0
are allowed, which cause require 'rubocop' to fail with

  NoMethodError:
    undefined method `join' for #<Set: {:==, :===, :!=, :<=, :>=, :>, :<}>
  in rubocop-0.84.0/lib/rubocop/cop/style/redundant_conditional.rb:57:in `<class:RedundantConditional>'

This is due to rubocop/rubocop-ast#22
so just block those versions directly. This has the unfortunate
side effect of requiring rubocop-ast for older versions which
don't require it.
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