Commit Graph
1096 Commits
Author SHA1 Message Date
Issy Long 1f6168fe8a Change regexp.match?(string) to string.match?(regexp) everywhere
- Only try to call `.match?` on strings that aren't nil.
2019-10-13 23:22:51 +01:00
Issy Long 18e684fad7 Stringify dev-cmd/audit text variables when used in Regexp matching
- To have the audit commands continue to work, and the tests passing
  (the previous error was [1]), everywhere we're trying to
  `.match?(text)`, instead do `.match?(text.to_s)`.

[1] 5) Homebrew::FormulaAuditor#audit_file __END__ but no DATA
    Failure/Error: fa.audit_file

    TypeError:
      no implicit conversion of Homebrew::FormulaText into String
    # ./dev-cmd/audit.rb:267:in `match?'
    # ./dev-cmd/audit.rb:267:in `audit_file'
    # ./test/dev-cmd/audit_spec.rb:137:in `block (3 levels) in <module:Homebrew>'
2019-10-13 16:04:38 +01:00
Issy Long 69d84ebfd9 Auto-fix Lint/ErbNewArguments offenses 2019-10-13 16:04:29 +01:00
Issy Long 341ea60807 Auto-fix Style/RedundantBegin offenses
- This also required auto-fixes for Layout/EmptyLinesAroundBlockBody and
  Layout/InconsistentIndentation once the auto-fixer had got rid of the
  "redundant begin"s.
2019-10-13 16:04:27 +01:00
Issy Long b78028b9c2 Auto-fix Performance/RegexpMatch offenses 2019-10-13 16:04:26 +01:00
Dawid Dziurla 86feb5a9de audit: replace depends_on with uses_from_macos 2019-10-10 17:59:32 +02:00
Mike McQuaid 7ed95ab48e man: die if blank output received. 2019-10-08 16:37:45 +01:00
Tom Schoonjans 9fc495125d audit: add gcab 1.3 to whitelist 2019-10-08 10:00:28 +01:00
Markus Reiter e719744248 Refactor brew style. 2019-10-05 00:20:06 +02:00
Markus Reiter b1d0c61fea Update Gems. 2019-10-03 09:22:44 +02:00
Dawid Dziurla 8ff7601a92 define default prefix constants
also use them to detect if prefix line in bottle block is needed
2019-09-30 16:46:53 +02:00
Markus ReiterandGitHub 749b6ded72 Merge pull request #6491 from dawidd6/create-perl
create: add --perl option
2019-09-26 20:55:31 +02:00
Dawid Dziurla de4d08028e create: add --perl option 2019-09-26 20:12:35 +02:00
Gautham GoliandGitHub ae08b15cbe Merge pull request #6479 from GauthamGoli/argv-cleanup-5
cli_args: Fix options_only and flags_only
2019-09-26 11:49:19 +05:30
Dawid Dziurla b4c56937b1 create: add --rust option 2019-09-25 14:29:09 +02:00
Dawid Dziurla 7b1288f658 create: add --python option 2019-09-24 19:35:21 +02:00
Dawid Dziurla a243f084e6 create: --go-mod -> --go 2019-09-24 16:49:27 +02:00
Gautham Goli 393c8dfbf1 ARGV: Replace options_only and flags_only with Homebrew.args counterparts 2019-09-23 12:39:22 +05:30
Dawid Dziurla 08f51a5d5a create: add --go-mod option 2019-09-20 16:09:52 +02:00
Markus Reiter cba1c8ee97 Fix brew ruby -r. 2019-09-13 21:16:48 +02:00
Mike McQuaidandGitHub 963cc556d4 Revert "argv: move options_only to cli/args" 2019-09-13 09:34:43 +01:00
Mike McQuaid 4b30a61732 prof: use ruby-prof 0.18.0
This is the newest version that works with Ruby 2.3.

Also, update the `.gitignore` to hide it while we're here.
2019-09-11 13:57:20 +01:00
Gautham Goli 4586632855 argv: move options_only to cli/args 2019-09-07 21:32:50 +05:30
Sean Molenaar 8cb833f7da Audit bitbucket.com repositories 2019-09-05 20:56:25 +02:00
Steven PetersandGitHub d25a954dbe Merge pull request #6272 from SMillerDev/gitlab_audit
Audit gitlab.com repositories
2019-09-05 08:53:18 -07:00
Mike McQuaid 8755e79475 pull: fix Homebrew Testing pull regression.
Don't fail if we fail to parse an issue when pulling.

While we're here, do some general code cleanup of stuff that's hard to
follow, named confusingly or duplicated unnecessarily.
2019-09-05 14:21:45 +01:00
Sean Molenaar 0cca6cb8bd Audit gitlab.com repositories 2019-09-05 12:14:33 +02:00
Mike McQuaidandGitHub 78d74a8b29 Merge pull request #6403 from EricFromCanada/custom-global-options
man: include global options with customized descriptions
2019-09-02 14:17:03 +01:00
Mike McQuaid 4add1d1cb3 Check binary URL resources with RuboCop
- Migrate the existing binary URL audit to a RuboCop.
- Check resources as well as main URLs
- Also check for "macos" and "osx" in URLs
- Add whitelists for URLs and formulae
2019-09-02 10:50:49 +01:00
Mike McQuaid 9291fe583e audit: fix --display-cop-names. 2019-09-02 10:48:19 +01:00
EricFromCanada 2477773259 man: include global options with customized descriptions 2019-08-25 23:59:47 -04:00
EricFromCanada 3ed9b35f70 man: allow multi-line paragraphs for comment-based docs 2019-08-20 12:56:21 -04:00
Mike McQuaidandGitHub c1960b2fd6 Merge branch 'master' into man-page-text 2019-08-20 14:42:24 +01:00
EricFromCanada 8a8359cdd4 manpages: sentence rewording for readability
Use active voice when applicable, better verbs & adjectives, preposition usage, proper tense, etc.
2019-08-20 09:05:45 -04:00
EricFromCanada b4303cd983 manpages: fix command & option descriptions 2019-08-20 09:03:33 -04:00
EricFromCanada ee314617f7 manpages: update command usage strings 2019-08-20 08:55:54 -04:00
EricFromCanada 6340792f78 manpages: output formatting fixes 2019-08-20 08:28:35 -04:00
EricFromCanada 6520785307 manpages: grammar fixes 2019-08-20 08:26:26 -04:00
EricFromCanada a3e0647797 manpages: whitespace fixes 2019-08-20 08:24:20 -04:00
Mike McQuaid 86538a444a dev-cmd/update-test: various consistency fixes. 2019-08-19 20:38:19 +01:00
Chongyu Zhu e30a9cf007 audit: whitelist numpy@1.16 without being versioned keg only 2019-08-09 18:44:18 +08:00
Tom Schoonjans 3a6a75ac0e gnome_devel_whitelist: add gtk-doc 1.31
Necessary for https://github.com/Homebrew/homebrew-core/pull/42851
2019-08-06 11:45:42 +01:00
Mike McQuaidandGitHub b6e7b66949 Merge pull request #6333 from tschoonj/gtk-mac-integration-whitelist
gnome_devel_whitelist: add gtk-mac-integration 2.1.3
2019-07-28 11:00:16 +01:00
Tom Schoonjans 40c3184f82 gnome_devel_whitelist: add gtk-mac-integration 2.1.3
This fixes the error produced by `brew audit gtk-mac-integration --online`:

Error: 1 problem in 1 formula detected
gtk-mac-integration:
  * 2.1.3 is a development release

This problem is currently blocking https://github.com/Homebrew/homebrew-core/pull/42536
2019-07-28 09:00:17 +01:00
Markus Reiter efb6172a18 Make brew ruby exit with the status of the executed command. 2019-07-28 02:14:35 +02:00
DarthSim ddc032d989 Fix run_audit result in bump-formula-pr 2019-07-18 18:13:00 +06:00
Mike McQuaidandGitHub 3938faddc1 Merge pull request #6299 from chrmoritz/bumpFormulaPrUpdateAlias
bump-formula-pr: add update-alias option to rename formula aliases if necessary
2019-07-18 08:56:25 +01:00
Christian Moritz 170c6e0c70 bump-formula-pr: refactor audit to own method to reduce complexity 2019-07-18 01:31:25 +02:00
Christian Moritz 2d9e7922b9 bump-formula-pr: rename versioned alias if necessary 2019-07-17 23:55:29 +02:00
EricFromCanada 7812f6984e audit: whitelist openssl@1.1 in new formulae 2019-07-15 23:00:58 -04:00