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

Enable Lint/MixedCaseRange cop #548

Closed
wants to merge 3 commits into from
Closed

Conversation

larouxn
Copy link
Contributor

@larouxn larouxn commented Jun 26, 2023

Proposing we enable the new Lint/MixedCaseRange cop as it should ensure better (correct) regex ranges i.e. [A-Za-z] not [A-z]. The latter contains characters beyond the former.

Note, this cop was added in the latest RuboCop release 1.53.0 which just came out last week, hence the temporary bump within this PR. Will rebase this PR once this repo is updated to RuboCop 1.53.0, which should make the changelog simply the rubocop.yml and config Enabled: false/pendingenabled: true.

larouxn and others added 3 commits June 26, 2023 10:51
This automated commit dumps the contents of the full RuboCop config.
[dependabot skip]
@larouxn larouxn requested a review from a team as a code owner June 26, 2023 01:58
@larouxn larouxn self-assigned this Jun 26, 2023
@github-actions github-actions bot added the config change Changes the Rubocop config by enabling, disabling, or reconfiguring one or many cops label Jun 26, 2023
@larouxn larouxn changed the title Enable lint mixed range cop Enable Lint/MixedCaseRange cop Jun 26, 2023
@larouxn larouxn marked this pull request as draft June 26, 2023 01:58
@larouxn
Copy link
Contributor Author

larouxn commented Jun 26, 2023

Considering the CI complexities here re: other cops, I'm thinking we should fetch the Dependabot RuboCop 1.52.0 → 1.53.0 bump and simply enable this cop in there along with enabling/disabling the other new cops. Thus, closing this PR.

@larouxn larouxn closed this Jun 26, 2023
@larouxn larouxn deleted the enable_lint_mixed_range_cop branch June 26, 2023 02:13
@sambostock
Copy link
Contributor

Enabled in #550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config change Changes the Rubocop config by enabling, disabling, or reconfiguring one or many cops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants