420 Commits

Author SHA1 Message Date
Gautham Goli
959b88266d
ARGV: Replace usages of ARGV.resolved_formulae with Homebrew.args 2020-01-02 13:56:19 +00:00
Gautham Goli
685a6b4da6 ARGV: Replace usages of ARGV.named with Homebrew.args.named 2019-12-18 20:38:21 +05:30
EricFromCanada
f0270a585c desc/audit: remove messages obviated by new arg parser 2019-12-13 15:23:38 -05:00
Mike McQuaid
96e0686d78
Merge pull request #6778 from bayandin/audit-check-resources-uniq-name
dev-cmd/audit: check resource name does not match formula name
2019-11-26 16:25:47 +00:00
Tom Schoonjans
e704bf7184 audit: add libepoxy 1.5.4 to whitelist 2019-11-26 10:26:17 +00:00
Alexander Bayandin
349f37be68 dev-cmd/audit: check resource name does not match formula name 2019-11-26 01:02:27 +00:00
George Waters
8221e32ad4 Fix Audit check for env :std
When performing a strict audit of a formula in the core tap, it was
possible that the check for `env :std` would not happen.
2019-11-13 20:33:43 -05:00
Markus Reiter
6521dbbad7
Merge pull request #6682 from reitermarkus/openjdk
Allow `JAVA_HOME` in formulae depending on `openjdk`.
2019-11-06 23:24:54 +01:00
Jonathan Chang
ae9638a80a audit: better check for forked repo
Co-Authored-By: Steven Peters <scpeters@openrobotics.org>
2019-11-04 13:17:48 +11:00
Markus Reiter
b31c5cb137 Allow JAVA_HOME in formulae depending on openjdk. 2019-11-03 18:25:06 +01:00
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
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
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
Sean Molenaar
8cb833f7da
Audit bitbucket.com repositories 2019-09-05 20:56:25 +02:00
Sean Molenaar
0cca6cb8bd
Audit gitlab.com repositories 2019-09-05 12:14:33 +02: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
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
ee314617f7 manpages: update command usage strings 2019-08-20 08:55:54 -04:00
EricFromCanada
6520785307 manpages: grammar fixes 2019-08-20 08:26:26 -04: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
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
EricFromCanada
7812f6984e audit: whitelist openssl@1.1 in new formulae 2019-07-15 23:00:58 -04:00
Mike McQuaid
531ef86ad2
dev-cmd/audit: fix brew style. 2019-06-25 17:57:43 +01:00
Mike McQuaid
22914dc782
audit: remove unused unstable/devel whitelist entries. 2019-06-10 09:02:19 +01:00
Mike McQuaid
afc63578e0
audit: make bind check more consistent. 2019-06-10 09:01:58 +01:00
Jan Viljanen
57fa2137b2 audit: check bind for development versions 2019-06-10 07:11:43 +02:00
Mike McQuaid
c4f72312ce
Fixup brew style failures. 2019-04-30 09:19:18 +01:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files. 2019-04-20 13:27:36 +09:00
Mike McQuaid
e40b171127
Rename cli_parser to cli/parser. 2019-04-17 22:16:50 +09:00
EricFromCanada
fa6404e0f5 grammar fixes 2019-04-13 21:29:32 -04:00
FX Coudert
7baec87297
Merge pull request #5827 from fxcoudert/allow-head
Allow head in new formulas
2019-03-04 16:15:40 +01:00
Shaun Jackman
82da3b43cc audit: Keg-only :provided_by_macos dep okay on Linux
Disable this brew audit error on Linux:
* Dependency 'zlib' may be unnecessary as it is provided by macOS;
try to build this formula without it.
2019-03-02 13:29:49 -08:00
FX Coudert
b796174d2c Allow head in new formulas 2019-03-02 10:56:27 +01:00
Mike McQuaid
e095da4d01
rubocop: enable Layout/EmptyLineAfterGuardClause. 2019-02-21 12:55:49 +00:00
Mike McQuaid
d64429a736
rubocop: enable Style/IfUnlessModifier. 2019-02-21 12:55:49 +00:00
Mike McQuaid
ae7492f3b5
Remove "undocumented options" that are documented options. 2019-02-16 20:07:28 +00:00
Mike McQuaid
bbea109926
dev-cmd: remove --help headers and tweak docs. 2019-01-30 21:39:28 +00:00
Claudia
c2bbd9df7e
Remove unneeded curl_openssl_or_deps invocation
This fixes a regression introduced in #5626 [1], which removed `curl_openssl_or_deps` and left a single call in the code.

[1]: https://github.com/Homebrew/brew/pull/5626
2019-01-28 08:10:37 +01:00
Mike McQuaid
efd69b16ed
audit: no longer need openssl/curl HTTP mirrors.
Mavericks' `curl` can download these fine over HTTPS.
2019-01-27 16:25:40 +00:00
Mike McQuaid
db7fd7b7a2
Tweak audits
- Ensure that new formulae problems aren't duplicated
- Now that homebrew/core will imminently not have options adjust the
  various audits so they make more sense (and exclude taps)
- Exclude taps from more preferential audits
2019-01-22 13:30:24 +00:00
Mike McQuaid
f15f665b98
audit: ensure postgresql previous version exists.
This will avoid https://github.com/Homebrew/homebrew-core/issues/34879
in future.
2018-12-09 19:31:19 +00:00
Mike McQuaid
ab0b2304f7
audit: allow {open,libre}ssl@* to use :provided_by_macos. 2018-12-07 10:27:17 +00:00
Andrew Janke
eb7d7a20df audit: Relax versioning audits for non-official taps 2018-11-08 12:53:43 -08:00