aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
AgeCommit message (Collapse)Author
2017-05-03Merge pull request #2531 from GauthamGoli/audit_cops_options_refactorMike McQuaid
audit: Allow skipping/selective running of cops and cops refactor
2017-05-03Add `--only-cops`,`--except-cops` options for brew style and simplify cop namesGautham Goli
2017-05-02audit: match start of string, not lineDominyk Tiller
2017-05-02audit: whitelist 'Firefox' in keg_only_styleDominyk Tiller
2017-05-02Add `--only-cops`,`--except-cops` options for brew auditGautham Goli
Also refactor audit cops into two "departments" - FormulaAudit - FormulaAuditStrict
2017-05-02Let cops run without --strict flagGautham Goli
2017-05-01audit: add audit_keg_only_styleDominyk Tiller
2017-04-28audit: formally ban go get usageDominyk Tiller
There's been an informal ban for a while but let's be punchier because this crops up still.
2017-04-27audit: tweak dependency option audit.Mike McQuaid
Make sure that `if build.with?` isn't caught.
2017-04-26audit: fix audit of new formulae.Mike McQuaid
When auditing new formulae without `--new-formula` the `audit_revision_and_version_scheme` method fails ungracefully. Instead, set some better defaults so fewer checks are needed. Fixes #2551.
2017-04-25audit: fix use of search_tap method.Mike McQuaid
This was removed in #2540 but this call site was note updated to use the `search_taps` method instead.
2017-04-24Merge pull request #2465 from GauthamGoli/audit_components_port_rubocopMike McQuaid
audit: audit_components method to rubocops and tests
2017-04-23Fix audit version_scheme and revision checks.Mike McQuaid
Another attempt at fixing `brew audit` issues around detecting `revision` and `version_scheme` changes correctly. First done in #1754 and #2086 (reverted in #2099 and #2100). To ease future debugging a `ph` helper has been added to print a hash and a series of RSpec tests to verify that the `revision`, `version_scheme` and `version` formula version audits behave as expected. Fixes #1731.
2017-04-22Port audit_components method to rubocops and add corresponding testsGautham Goli
2017-04-22Merge pull request #2526 from MikeMcQuaid/audit-gnu-mirror-flipMike McQuaid
audit: flip GNU mirror preference.
2017-04-22audit: flip GNU mirror preference.Mike McQuaid
Now that both the primary and mirror URLs use HTTPS we can flip these around so the primary URL is the primary URL and we don't have problems with waiting for mirror propagation.
2017-04-22audit: lookup unversioned formulae with Formulary.Mike McQuaid
This means that if e.g. the unversioned formulae exists in another tap this audit won't produce a false positive.
2017-04-22Merge pull request #2482 from MikeMcQuaid/audit-dependency-optionsMike McQuaid
audit: ensure default dependencies don't use options.
2017-04-21audit: ensure dependencies don't use options.Mike McQuaid
Option dependencies are nasty as they cause unnecessary builds from source.
2017-04-21audit: new formulae should not require patches.Mike McQuaid
We may under some circumstances accept these anyway but it's better to nudge people into the right behaviours on local `audit`s.
2017-04-19audit: fix swapped audit messagesSteven Peters
2017-04-18audit: allow skipping audit methods.Mike McQuaid
Add `--only` and `--except` methods which can be used to selectively enable or disable audit groups.
2017-04-17Merge pull request #2477 from MikeMcQuaid/audit-more-universalMike McQuaid
audit: check for more universal usage.
2017-04-17Merge pull request #2473 from MikeMcQuaid/audit-language-module-requirementsMike McQuaid
audit: deprecate language module requirements.
2017-04-10audit: don't recommend version aliases on --devel.Mike McQuaid
As requested in #11462 by @neutric as this produces confusing, incorrect output.
2017-04-10audit: deprecate language module requirements.Mike McQuaid
Make `brew audit` complain about language module requirements because they provide a crappy user experience compared to vendoring and we’re not really fixing bugs in them any more.
2017-04-10audit: check for more universal usage.Mike McQuaid
Also check for `ENV.universal_binary` and `build.universal?`. The prior is still required for `wine` and the latter should never be required any longer.
2017-04-05Merge pull request #2242 from GauthamGoli/audit_custom_copsMike McQuaid
Port audit_desc audit rules to a cop
2017-04-04audit: fix core formula alias check.Mike McQuaid
Was missing a formula object being passed.
2017-03-30Merge pull request #2399 from MikeMcQuaid/unversioned-formulae-checkMike McQuaid
audit: check for unversioned formulae.
2017-03-29audit: Fix cctools invocation check regular expression.William Woodruff
Additionally, ignore the cctools formula itself, since it obviously needs to check cctools invocations.
2017-03-28Merge pull request #1828 from woodruffw/audit-cctoolsWilliam Woodruff
audit: Check for invocations of cctools.
2017-03-26audit: bump whitelisted elm-format version to 0.6.0-alphailovezfs
2017-03-26audit: check for unversioned formulae.Mike McQuaid
If we're adding a versioned formulae we want to ensure that there's also an unversioned one too.
2017-03-26indentingRaza Hussain
2017-03-26changing if conditionRaza Hussain
2017-03-26simplify the regex and make a line max 80 char longRaza Hussain
2017-03-21Merge pull request #1732 from zmwangx/hint-migrationsMike McQuaid
Hint at new location of migrated formulae
2017-03-21Merge pull request #2365 from MikeMcQuaid/audit-provided-by-macosMike McQuaid
audit: check system dupe deps on new formulae.
2017-03-20blacklist: move to missing_formula class instead.Mike McQuaid
This will allow extending this class so it can be used by more than just blacklisting.
2017-03-19audit: deprecate depends_on :tex.Mike McQuaid
This has known issues with our `ghostscript` formula, we can't test it on CI and is a ludicrously heavy dependency that in many cases can be avoided by upstream providing prebuilt documentation.
2017-03-19audit: check system dupe deps on new formulae.Mike McQuaid
Provide a gentle nudge to users to check if these dependencies are definitely required.
2017-03-16audit: online - limit download time based on HTTPS determinationJCount
Previously, the http_content_headers_and_checksum method always downloaded the entire url, including headers. These downloads periodically hang, outputting false positives or wreaking havoc on the CI. Therefore, use curl's --max-time arg to prevent this by setting a hard limit of 600 seconds when the entire file is going to be used to detect whether the url can be changed to use the HTTPS protocol instead of HTTP. Otherwise, if the url already is HTTPS, limit the download time to 25 seconds since only the headers, not contents, matter.
2017-03-12Revert "audit: exempt wine's deps from the universal deprecation"ilovezfs
2017-03-11Add `Formatter::pluralize`.Markus Reiter
2017-03-08Merge pull request #2252 from zmwangx/audit-no-warn-brew-mirror-urlMike McQuaid
audit: do not warn about reachability of `brew mirror`ed URL
2017-03-05audit: freeze versioned_conflicts_whitelistJCount
2017-03-05audit: deconstruct versioned_conflicts_whitelist using splatJCount
2017-03-05audit: whitelist bash-completion@* to use conflicts_withJCount
this is necessary because they install conflicting scripts into HOMEBREW_PREFIX/etc/profile.d
2017-03-05Merge pull request #2262 from MikeMcQuaid/subversion-https-auditMike McQuaid
Don't check Subversion HTTPS pre-Sierra.