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

rubocop: In-line disables for Style/{Class,Global}Vars #142292

Merged
merged 2 commits into from
Mar 6, 2023

Conversation

issyl0
Copy link
Member

@issyl0 issyl0 commented Mar 4, 2023

  • We're working to remove the global Excludes: from RuboCop configuration in Homebrew/brew (see issue 14685 over there).
  • This file in Cask was the only place where class vars weren't already in-line disabled. So, to be able to clean up the configuration stanza in rubocop: Trim exclude paths without offenses; move some more config brew#14878, I've added some.
  • I feel like these scripts are ancient, but I'l leave deciding on cleanup to actual Cask maintainers! Nah, these aren't ancient, these are actually used! 😳 It's the ones in developer/cgi that looked ancient!

Important: Do not tick a checkbox if you haven’t performed its action. Honesty is indispensable for a smooth review process.

In the following questions <cask> is the token of the cask you're submitting.

After making any changes to a cask, existing or new, verify:

Additionally, if adding a new cask:

  • Named the cask according to the token reference.
  • Checked the cask was not already refused.
  • Checked the cask is submitted to the correct repo.
  • brew audit --new-cask <cask> worked successfully.
  • brew install --cask <cask> worked successfully.
  • brew uninstall --cask <cask> worked successfully.

@issyl0
Copy link
Member Author

issyl0 commented Mar 4, 2023

[Correctable] Unnecessary disabling of Style/ClassVars.

Yes RuboCop, that's because Homebrew/brew#14878 isn't merged yet. 🐔 🥚

@issyl0 issyl0 changed the title dev/generate_cask_token: In-line RuboCop Style/ClassVars disables rubocop: In-line disables for Style/{Class,Global}Vars Mar 4, 2023
@reitermarkus
Copy link
Member

Maybe just allow “Unnecessary disabling.” temporarily.

reitermarkus
reitermarkus previously approved these changes Mar 5, 2023
@reitermarkus reitermarkus added the ci-retry Continuously re-runs CI until it succeeds or is cancelled. label Mar 5, 2023
@reitermarkus reitermarkus enabled auto-merge (rebase) March 5, 2023 04:17
@p-linnane
Copy link
Member

/rebase

issyl0 and others added 2 commits March 6, 2023 16:21
- We're working to remove the global `Excludes:` from RuboCop configuration in `Homebrew/brew` (see issue 14685 over there).
- This file in Cask was the only place where class vars weren't already in-line disabled. So, to be able to clean up the configuration stanza in Homebrew/brew (PR 14878), I've added some.
- We're working to remove the global `Excludes:` from RuboCop configuration in `Homebrew/brew` (see issue 14685 over there).
- This file in Cask was the only place where global vars weren't already in-line disabled. So, to be able to clean up the configuration stanza in Homebrew/brew PR 14878, I've added some.
@BrewTestBot BrewTestBot removed the ci-retry Continuously re-runs CI until it succeeds or is cancelled. label Mar 6, 2023
@reitermarkus reitermarkus merged commit 658d55d into Homebrew:master Mar 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants