aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/audit.rb
AgeCommit message (Collapse)Author
2015-11-25audit: only run brew style when on Ruby 2.0.Mike McQuaid
2015-11-23audit: check position of 'revision' and 'keg_only'Martin Afanasjew
Closes Homebrew/homebrew#46178. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-11-16audit: respect umask in formula file mode checkMartin Afanasjew
Closes Homebrew/homebrew#45837. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-16audit: add godep and sphinx-doc to build time depsXu Cheng
Closes Homebrew/homebrew#46031. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-11ruby 1.8: address syntax warnings in Homebrew coreMartin Afanasjew
Closes Homebrew/homebrew#45849. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-01audit: don't flag Gnome devel releases < 1.0.Mike McQuaid
2015-10-30audit: flag any desc that starts with the formula nameBaptiste Fontaine
The previous version didn’t work with descs like: "TheFormula serves a web page"
2015-10-30audit: uniformize the desc problemsBaptiste Fontaine
Closes Homebrew/homebrew#45492. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-30audit: flag descs starting with the formula nameBaptiste Fontaine
Closes Homebrew/homebrew#45493. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-24audit: add bottle modifier checksDominyk Tiller
* Checks for placement of the bottle modifier variable. * Checks there isn't a bottle modifier and a bottle do block - The former makes the latter redundant. Closes Homebrew/homebrew#45146. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-23audit: merge the template comments checksBaptiste Fontaine
Closes Homebrew/homebrew#45263. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-23audit: warn about unknown bottle modifiersBaptiste Fontaine
This prevents typos like `bottle :uneeded` or `bottle :disable` Closes Homebrew/homebrew#45264. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-18MacOS: full_version addedBaptiste Fontaine
Closes Homebrew/homebrew#44988. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10audit: use ARGV.resolved_formulaXu Cheng
There are audit rules which check cellar. Therefore, we need `ARGV.resolved_formula` to get proper spec and prefix. Closes Homebrew/homebrew#44781. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-08handle TapFormulaWithOldnameAmbiguityErrorXu Cheng
Closes Homebrew/homebrew#44705. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07audit: fix GitHub repository auditDaniel Lee Harple
In the data returned from the GitHub API, “watchers_count” is actually the number of stars. See https://developer.github.com/v3/activity/starring/#starring-vs-watching Closes Homebrew/homebrew#44477. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07audit: add check for 'head' and 'head do' both presentAndrew Janke
Closes Homebrew/homebrew#44626. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-09-13mpich2 is renamed as mpichXu Cheng
2015-09-13audit: handle tap aliasesXu Cheng
2015-09-08audit: cache formula names during audit_formula_nameXu Cheng
Before `audit_formula_name: 15.094845999999986` After `audit_formula_name: 0.5617120000000043` Closes Homebrew/homebrew#43663. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-08audit: simplify remote_official_tapsXu Cheng
2015-08-25audit: spelling fixDaniel Lee Harple
Closes Homebrew/homebrew#43273. Signed-off-by: Tim D. Smith <git@tim-smith.us>
2015-08-22core file style updateXu Cheng
2015-08-18unnecessary calls to .select simplifiedBaptiste Fontaine
These are minor perf optimizations. Closes Homebrew/homebrew#43028. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-11audit: enforce https on [*.]archive.orgViktor Szakats
Also: * one minor regexp tweak Closes Homebrew/homebrew#42761. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-10audit: catch insecure bitbucketDominyk Tiller
2015-08-10audit: add rules for namingVlad Shablinsky
- restrict old names as names of new formulae - warn about dependencies on old names
2015-08-10audit: prune redundant codeDominyk Tiller
2015-08-10audit: flag insecure launchpadDominyk Tiller
2015-08-09audit: allow assert `!.*.include?`.Mike McQuaid
Came up on Homebrew/homebrew#34573.
2015-08-06audit: add check for indefinite articleAlexis Hildebrandt
at the beginning of desc. Closes Homebrew/homebrew#42404. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-06favor flat_map over map...flattenXu Cheng
2015-08-06more core file style updated by rubocopXu Cheng
2015-08-05audit: simplify command-line spelling checkAlexis Hildebrandt
Closes Homebrew/homebrew#42403. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-05audit: flag plaintext mirrorserviceDominyk Tiller
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-02online audit: use GET instead of HEADBaptiste Fontaine
I also removed the `-L` flag which is already present in `HOMEBREW_CURL_ARGS`. Closes Homebrew/homebrew#42352. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-07-22audit: more fix on no-compat modeXu Cheng
2015-07-22audit: rename audit_patches to audit_legacy_patchesXu Cheng
2015-07-22audit: fix for no-compat modeXu Cheng
2015-07-18audit: recognise head-only and devel-only taps.Rainer M. Krug
add wildcard into expressions to identify head-only and dev-only taps to avoid "head-only" and "devel-only" errors when formula is in *head-only or *devel-only tap Closes Homebrew/homebrew#41289. Closes Homebrew/homebrew#41413. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-18audit: missing spaces added in blocks order reportBaptiste Fontaine
Closes Homebrew/homebrew#41783. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-07-14audit: recommend use of assert_match.Mike McQuaid
It produces significantly easier output to debug than doing `assert` and `.include?` (which just shows if it passed or failed). Closes Homebrew/homebrew#41662. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-14audit: clarify desc calculationDominyk Tiller
2015-07-12audit --online: check homepage reachabilityBaptiste Fontaine
Closes Homebrew/homebrew#41607. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-07-09audit: deprecate sha1 always.Mike McQuaid
Rather than just when --strict is set. We're asking people to do these on most PRs now anyway so feels better to let them find this out with `brew audit`. Closes Homebrew/homebrew#41523. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-09audit: include date for Ruby 1.8.Mike McQuaid
2015-07-09audit: better way to handle --online for audit_formula_nameXu Cheng
2015-07-09audit: add --online flag.Mike McQuaid
Also add it to the manpage and brew-test-bot. Closes Homebrew/homebrew#41516. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-08audit: github repo: verify stable formula is set .Mike McQuaid