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

audit: more *_predicate nudging/tweaks #3293

Merged
merged 2 commits into from
Oct 17, 2017
Merged

audit: more *_predicate nudging/tweaks #3293

merged 2 commits into from
Oct 17, 2017

Conversation

DomT4
Copy link
Contributor

@DomT4 DomT4 commented Oct 9, 2017

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?

CC @ilovezfs.

Homebrew/homebrew-core#19213 (comment)

problem "Use `assert_predicate <path_to_file>, :executable?` instead of `#{Regexp.last_match(1)}`"
end

if line =~ /(assert !File\.executable\?|assert !\(.*\)\.executable\?)/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might not need this line really, because why would you logically check something was not executable? Thoughts welcome.

@MikeMcQuaid
Copy link
Member

Given #3313 I think this should probably be integrated in there instead.

@ilovezfs
Copy link
Contributor

Given it seems to be working fine I'm not sure why it needs to be made fancier and block on that happening.

@MikeMcQuaid
Copy link
Member

Ok then. Once #3313 goes in, though, future changes will need to be to the Rubocop.

@MikeMcQuaid MikeMcQuaid merged commit 77f3fcf into Homebrew:master Oct 17, 2017
@DomT4 DomT4 deleted the predicate_audit branch October 17, 2017 22:11
@DomT4
Copy link
Contributor Author

DomT4 commented Oct 17, 2017

Thanks for merging! I was happy either way. At some point I'm going to have to sit down & wrap my head around the Rubocop format for everything, but I'll take being able to put that off for a little longer 🙈.

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants